Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
0 replies
29 views

In Gtk4, I want to plot something into a DrawingArea, and want the colors to depend on the theme. Since StyleContext is now deprecated from Gtk 4.10, how could this be achieved? Gtk docs simply say &...
knipknap's user avatar
  • 6,244
0 votes
0 answers
37 views

I tried using the GTK inspector to try and find the correct css node for but to no avail I tried every selector i could think of like .GtkSourceView.sourceview.view text .current-line or even ...
fabinho's user avatar
  • 31
-1 votes
1 answer
58 views

About three years ago I tried to follow the GTK3 tutorial for Common Lisp. I had different problems then, but many of the examples worked without any complains. Now I took the time to reconsider it, ...
Demihm Seinname's user avatar
1 vote
1 answer
104 views

I have started developing a small app in Rust using GTK4 bindings on Linux Mint. I have created the following resources.gresource.xml in the project directory: <?xml version="1.0" ...
user31753457's user avatar
4 votes
1 answer
36 views

I don't get any errors. There is just page 1 visible without the switcher... Tried on 2 different machines running Fedora. Already checked api.pygobject.gnome.org and asked the stupid ai. Can someone ...
jonny's user avatar
  • 33
0 votes
0 answers
54 views

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
0 votes
0 answers
50 views

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
1 vote
1 answer
52 views

I have a simple GTK4 C program that displays a dropdown with 3 choices and a label. The callback for the dropdown notify::selected-item event passes the label as the 2nd argument. The callback is ...
LesFromIL's user avatar
0 votes
1 answer
32 views

When I make an appimage of my simple gtk4 application and run it on certain distros like fedora the svg icons don't render properly. It looks like this: https://i.imgur.com/3cKKkjx.png The basic code ...
zagortenay333's user avatar
0 votes
0 answers
17 views

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
0 answers
43 views

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
2 votes
1 answer
91 views

I'm creating a Gtk4 app in python 3 and I want to trigger a state change when the user mouses over the ApplicationWindow but I'm banging my head against a wall trying to figure out what signal string ...
Ardemus's user avatar
  • 61
0 votes
1 answer
54 views

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
1 vote
0 answers
45 views

Whenever I use a GtkBox to hold a WebKitWebView, it does not display on screen. However when directly appending the WebKitWebView as the child of the window, it does. This works: GtkWidget *...
darkplasma's user avatar
1 vote
1 answer
96 views

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
95 views

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
0 votes
0 answers
66 views

When I turn off monitor (by power button), my gtk4 app gets closed with no output and return code 0. From what I've read, it might be some interaction between wayland and gtk4, but I've found no fix ...
Dekakaruk's user avatar
  • 767
0 votes
0 answers
95 views

I am using gtk4 for building a gui application. However I am facing issue upon running a sample code for testing. use gtk4 as gtk; use gtk::prelude::*; use gtk::{glib, Application, ApplicationWindow, ...
Parvez Wadhvaniya's user avatar
1 vote
0 answers
108 views

I'm trying to keep number of connected Bluetooth devices by listening for dbus changes. I can get list of known devices by contacting ObjectManager of Bluez daemon, and keep it in sync by listening ...
Dekakaruk's user avatar
  • 767
0 votes
1 answer
52 views

Trying to create gtkmm 4 header unit using g++ 15 with: g++ -std=c++23 -fmodules -fsearch-include-path -fmodule-header gtkmm.h `pkg-config --cflags gtkmm-4.0` I get the following error: /usr/...
programmer's user avatar
0 votes
1 answer
146 views

I have a GTK4 Adwaita application built with GJS. I'm trying to add a PreferencesDialog that pops up over the ApplicationWindow but blocks interaction with the window, similar to a lot of other ...
devklick's user avatar
  • 2,698
0 votes
1 answer
44 views

I am passing the sender of on async channel to a modal window so that the modal window can send messages to the parent window: ... let (tx, rx): (Sender<ApplicationMessage>, Receiver<...
ferd tomale's user avatar
0 votes
0 answers
63 views

I have the following ui for gtk4 and rust: main_window.ui .... <template class="MainWindow" parent="GtkApplicationWindow"> <property name="default-width&...
ferd tomale's user avatar
-3 votes
1 answer
111 views

I have gone through the examples for gtk4 and I am trying to show a 2nd window modally. I am showing the main window as a composite template and would like to show a dialog that is also a composite ...
ferd tomale's user avatar
1 vote
0 answers
41 views

Consider a CustomWidget, which contains 3 buttons. This widget is a final class, and its buttons are private. How is it possible to a widget that holds CustomWidget listen to buttons clicked signal? ...
Xut's user avatar
  • 13
0 votes
0 answers
39 views

I am working on a GTK4 application using Python, and I am trying to justify (fill) the text in a Gtk.TextView. While the text is justified properly for most lines, the last line of the text block is ...
Mostafa Khaled Aly Hassan's user avatar
1 vote
1 answer
51 views

I want to implement a choice with a DropDown, clicking on the DropDown to execute a connect_closure, reading doc I guess the choice is in the paramspec, but I am unable to retrieve the choice in the ...
tresgros pipo's user avatar
0 votes
0 answers
36 views

I'm writing a GTK4 application, and it consumes very high CPU load. Digging in a bit, it turned out that I have enormously high amount of this system call (strace snippet): recvmsg(14, {msg_namelen=0},...
Lev's user avatar
  • 101
0 votes
0 answers
51 views

I create an test_object which contains a function _finalize. G_DECLARE_FINAL_TYPE(TestObject, test_object, TEST, OBJECT, GObject) .... void test_object_finalize(GObject* object) { GObjectClass *...
Yaroslav's user avatar
  • 101
0 votes
1 answer
114 views

I've googled about this quite a bit. I've put a number of examples of what I tried https://stromberg.dnsalias.org/svn/gtk-4-menu/trunk - I'm going to quote the closest one immediately below in case ...
dstromberg's user avatar
  • 7,243
0 votes
0 answers
64 views

To style the headers in a Gtk::ColumnView I had been using CSS to make the headers a fixed width font so that I could crudely centre them. I had also set the font style to bold. I have recently ...
SRB's user avatar
  • 18
0 votes
0 answers
49 views

Gtk documentation on migrating to Gtk4 mentions that Tabular menus were rarely used and complicated the menu code, so they have not been brought over to GtkPopoverMenu. If you need complex layout in ...
Treslav's user avatar
  • 41
1 vote
1 answer
69 views

(Using GTK 4.8 on Debian) I created a file filter for specific image suffixes: GtkFileFilter *file_filter = gtk_file_filter_new (); gtk_file_filter_add_suffix (file_filter, "png"); ...
9-Pin's user avatar
  • 482
1 vote
0 answers
70 views

I am trying to move GtkWindow via GtkGestureLongPress. I want to implement it in VTE base terminal app. My script is given below. The problem is - I ran the ping(ping 127.0.0.1) command in the ...
dibyendu's user avatar
  • 452
0 votes
0 answers
98 views

It seems to be working if only GTK4 widgets are used. If i add libadwaita widgets though the thing builds fine but crashes during runtime. Libadwaita bindings work fine when used without Gtk.Builder ...
cathodebirdtube's user avatar
1 vote
1 answer
84 views

I am trying to remove the selected item from a column view. I found this demo script from this site, which was explained by another user for the sort function. It has 2 columns, I want, when I click ...
dibyendu's user avatar
  • 452
0 votes
0 answers
84 views

I'm going to wrap a function same as windows api: GetOpenFileName using gtk3. However, at some cases, calling gtk_init results in crash. #include "gtkdlghelper.h" #include <gtk/gtk.h> ...
黄建雄's user avatar
0 votes
0 answers
56 views

I have a sample GTK4 application where a list of entries is arranged vertically in a scrolled window. When I test the application using a mouse by continuously scrolling the window, the app does not ...
Smritha's user avatar
1 vote
1 answer
72 views

I am trying to create a preferences window for my app. I want the child-window (preferences) to open above the parent-window (main-window) and in the middle of the parent-window. But the problem is, ...
dibyendu's user avatar
  • 452
1 vote
1 answer
71 views

I want to use GtkText widget inside GtkPopover. But the problem is, when I try to copy text from GtkText widget by right clicking (via GtkText default context menu); then GtkPopover autohide stops ...
dibyendu's user avatar
  • 452
0 votes
2 answers
102 views

I am trying to change the font size of a GtkText widget by applying PangoAttribute and changing PangoAttrList. I am also using a GtkSpinButton to update the font size. But the problem is, when i click ...
dibyendu's user avatar
  • 452
1 vote
1 answer
63 views

I am using GtkStackSwitcher and GtkStack widget in gtk4, trying to add window close icon/button and label together in GtkStackSwitcher (page). I tried the demo script below. It is adding the page with ...
dibyendu's user avatar
  • 452
0 votes
1 answer
90 views

I'm working with GTK4 and libadwaita, and I'm trying to use an icon with the Adw.EntryRow widget. However, I noticed that the document-edit-symbolic icon seems to be missing. Here's a simplified code ...
Growing Developer's user avatar
0 votes
1 answer
510 views

I'm learning GTK, and I'm trying to get its hello world example program compile on my ubuntu 24.04 system, but I got this following message: > gcc $(pkg-config --cflags gtk4) -o hello-world-gtk ...
Cinverse's user avatar
  • 333
0 votes
0 answers
70 views

I'm trying to develop a widget in gtk4 as follows: let container = Box::new(Orientation::Horizontal, 0); let workspace_num = Label::new(Some("11")); let workspace_num_box = gtk4::Box::new(...
Bishal's user avatar
  • 1
2 votes
1 answer
107 views

based on this exemple example-columnview-with-strings-gtk4-c I test this new widget with my data below a mwe code in order to select part with error I have an error when I implement 7 callcak "...
Manmax's user avatar
  • 301
1 vote
1 answer
201 views

since Gtk 4.10 it's a little difficult to implement an gtk dialog the only source found is reddit with just an little bug void gtk_alert_dialog_set_buttons ( GtkAlertDialog* self, const char* const* ...
Manmax's user avatar
  • 301
1 vote
2 answers
307 views

I have a Gtk.Label in an app I am working on migrating from Gtk3 to Gtk4. In Gtk3, Label had a set_angle method that allowed rotating a label about its center. That was removed in Gtk4, but there isn'...
Thayne's user avatar
  • 7,079
1 vote
0 answers
100 views

I have a special input method installed on my Linux laptop, Chewing from Fcitx 5 for Chinese traditional. But when I type something inside the GtkTextView, only English alphabets appears. I found ...
Eric Nien's user avatar
1 vote
0 answers
67 views

I am using webitgtk6 #include <webkit/webkit.h> Here are printing result functions static void print_finished(WebKitPrintOperation *operation, gpointer user_data) { g_print("Done\n&...
Bret Joseph's user avatar

1
2 3 4 5
8