Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

In the first code example, there is a crossfade animation that happens between changes. import sys import gi # Require specifically GTK 4.0 and Adwaita 1 gi.require_version('Gtk', '4.0') gi....
person's user avatar
  • 109
1 vote
1 answer
89 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
0 votes
0 answers
51 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
1 vote
1 answer
45 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
0 answers
13 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
2 votes
1 answer
85 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
1 vote
0 answers
44 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
0 answers
89 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
89 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
0 votes
1 answer
47 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
43 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
-3 votes
1 answer
106 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
0 votes
0 answers
33 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
0 votes
0 answers
32 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
1 answer
113 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
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
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
1 vote
1 answer
80 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
52 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
66 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
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
497 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
2 votes
1 answer
104 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
2 answers
301 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
64 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