8,550 questions
3
votes
0
answers
81
views
Problems justifying text in GTK
System: Linux, Language: C, Toolkit: GTK
I am working to create an emulator for an embedded machine's display. The display is a smart 800x400 pixel RGB display.
The machine sends commands to control ...
Advice
0
votes
1
replies
48
views
GTK3 GtkSearchEntry placeholder text CSS selector
What is the GtkSearchEntry placeholder text CSS selector? I know it exists and is undocumented. Been reading the GTK3 source for 2 days now but I can't make heads or tails from it.
I'm styling an ...
0
votes
0
answers
54
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__(...
1
vote
0
answers
46
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
....
1
vote
1
answer
47
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 ...
0
votes
0
answers
50
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 ...
0
votes
0
answers
17
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 {
...
0
votes
1
answer
51
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....
0
votes
0
answers
44
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 ...
1
vote
1
answer
77
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 ...
0
votes
1
answer
54
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 ...
0
votes
0
answers
53
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",
"...
0
votes
1
answer
75
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 ...
0
votes
0
answers
80
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 ...
0
votes
1
answer
67
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 ...