Skip to main content
0 votes
0 answers
44 views

When can I reliably query the preferred size of a GTK4 Entry upon

I have the following PyGObject code as an MWE: import gi gi.require_version("Gtk", "4.0") from gi.repository import Gtk, GLib class FontSizeApp(Gtk.Application): def __init__(...
John's user avatar
  • 41
1 vote
0 answers
44 views

how to manage the lifecycle of a gdk.Pixbuf?

I am dipping my feet into gtk/gdk and golang. I have wirtten a Program creating an image per second by providing a new pixmap to the Image widget via var theImage *gtk.Image var nextFrame *gdk.Pixbuf ....
Impatient Hippo's user avatar
1 vote
1 answer
38 views

Are GTK2 default translations accessible from Python

When using GTK2 with Python, there are some things like 'gtk-yes', 'gtk-open' which help in getting e.g. button names translated to the according user language. What I am searching for are more of ...
Jaleks's user avatar
  • 670
0 votes
0 answers
46 views

Linter Errors When Overriding Container's orientation Methods in Python GTK4

Problem Statement I'm subclassing Gtk4 container widgets so I can add functionality to various property changes. For this question I'll use set_orientation from Gtk.Box and the Gtk.Orientable ...
Ardemus's user avatar
  • 61
0 votes
0 answers
11 views

gtk4-rs dispose_template dispose doesn't dispose non-bound widgets

Dispose tempalte disposes only bound widgets. Is there a way to dispose all children graph? Here are the details. Object implementation: #[derived_properties] impl ObjectImpl for MyWidget { ...
Dennis Tretyakov's user avatar
0 votes
1 answer
44 views

How to Create a File Tree in GTK-RS/Relm4?

I've been struggling with this for a while, and I've almost got it- but not quite. This is what I have so far: pub fn load_folder_view(state: &mut State) { let path = state.current_folder_path....
Cyncrovee's user avatar
0 votes
0 answers
39 views

GTK4 Grid - remove spacing between rows

I have created GTK Grid using gtk_grid_new and set both column and row spacing to 0 (gtk_grid_set_column_spacing and gtk_grid_set_row_spacing), however for some reason I still get 1px spacing between ...
Aleksa Ristic's user avatar
1 vote
1 answer
65 views

How can I remove the border on a GTK tooltip?

I am trying to precisely control the content of a GTK tooltip, but whatever I do, there is always a border remaining. My real content is much more advanced, but the problem is 100% reproduced with ...
Jerome's user avatar
  • 2,401
0 votes
1 answer
50 views

How do I pass through the click on a GtkEditableLabel to the GtkColumnView row containing it?

I have a Gtk.ColumnView where cells are represented by Gtk.EditableLabels. Keyboard navigation works fine, clicking in the cells to edit them works fine, tab navigation works fine. However, clicking ...
Glyph's user avatar
  • 32.1k
0 votes
0 answers
51 views

CMake with vcpkg: find_package(GTK4 REQUIRED CONFIG) fails — GTK4Config.cmake not found

I’m trying to build a simple GTK4 demo project with CMake and vcpkg. I'm on the macOS 15.6.1 vcpkg.json { "name": "gtk-demo", "version": "1.0.0", "...
Source's user avatar
  • 381
0 votes
1 answer
60 views

Package an application using Flatpak that uses `zenity --file-selection` (or the GTK file selection dialog)

I have an application that uses zenity --file-selection to allow the user to select a file using a GUI. This works very nicely until I package my application using Flatpak, as unfortunatly the ...
Mike T.'s user avatar
  • 417
0 votes
0 answers
68 views

GTK Attempting To Catch Key Press in Eventbox, Lacking Understanding

I'm trying to modify the popular waybar program (which can be found here). Waybar is a highly customizable status bar that organizes various visual elements into "modules", which can respond ...
Chichri's user avatar
  • 35
0 votes
1 answer
62 views

How to fix Gtk.FileChooserDialogue height and resizing issues?

I am experiencing a strange phenomenon with the Gtk.FileChooserDialogue widget (Gtk3). I can't get it to appear at the correct height. Output state height is 500px but its height is definitely much ...
Sun Bear's user avatar
  • 8,499
1 vote
1 answer
78 views

:hover style is applied to button's label instead of button in gtk4 css

I have a css file like this in a gtk4 application. I am expecting the GtkButton to change its color when the mouse hovered over it. headerbar button { border-radius: 20px; border-style: none; ...
Eric Nien's user avatar
1 vote
0 answers
86 views

How do you apply transformations to an arbitrary GTK widget which will not trigger layout recomputations?

Since GTK's CSS implementation doesn't support transform: property for arbitrary widgets, you have to do it other ways. E.g., you can apply a GskTransform to a widget, but unfortunately it only works ...
dqvid's user avatar
  • 51

15 30 50 per page
1
2 3 4 5
571