8,550 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
31
views
Using GTK in Mojo [closed]
I am trying to figure out if theres a way to use GTK (for GUI development) in the Mojo programming language.
So far, I havent been able to find any documentation, tutorials, or examples showing how ...
3
votes
1
answer
97
views
How GTK draws widgets on title bar?
In GTK based applications it becomes common to put some custom widgets directly inside a window's title bar. How GTK manages to do that behind the scenes? I'm especially interested in its XWindow/X11 ...
3
votes
0
answers
86
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
60
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
57
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
48
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
49
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
53
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
22
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
62
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
47
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
87
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
55
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
62
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
81
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 ...