Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
135 views

I'm currently writing some Gtk with gtk-rs. I'm trying to move widgets in a grid by removing and attaching it, but as I re-attaching the child, it doesn't move at all in UI, although the position ...
BowenDean's user avatar
0 votes
0 answers
34 views

I'm fresh new to ags. I have read about the Gnim documents and figured out the JSX usage. So basically nested jsx tags in a parent tag is like pass children as the prop children of the parent, that's ...
BowenDean's user avatar
2 votes
1 answer
78 views

here's the issue: I'm compiling my application in an Ubuntu Docker container; I've compiled in a similar environment before, and can compile on my local machine. When I compile within the container, ...
Oliver Cox's user avatar
Advice
0 votes
1 replies
73 views

I have installed on Windows 11 Winlibs MinGW-w64 for the GCC compiler to write C programs. I have the following version: GCC 15.2.0 (with POSIX threads) + MinGW-w64 14.0.0 (UCRT) - release 7 The ...
jeroen2009's user avatar
0 votes
1 answer
182 views

The following mwe fails with message: file type PDF document is not supported // gcc pdf_mwe.c -o pdf_mwe `pkg-config --cflags --libs gtk+-3.0 evince-view-3.0 evince-document-3.0` #include <gtk/...
Dov's user avatar
  • 8,674
0 votes
0 answers
25 views

I use a geany 1.37 on Windows to generate the tags file of the gtk3 library set CFLAGS=-ID:/BuildTools/gtk+-bundle_3.6.4-20130513_win32/include/gtk+-3.0 -ID:/BuildTools/gtk+-bundle_3.6.4-...
njggc's user avatar
  • 1
3 votes
1 answer
81 views

I'm doing a small Python / Gtk4 program. The layout is relatively simple : there is a upper zone with inputs and a "add" button, then a ColumnView that displays the added items, and finally ...
Kilobug's user avatar
  • 91
1 vote
1 answer
81 views

I'm doing a small Python / Gtk4 program. The layout is relatively simple : there is a upper zone with inputs and a "add" button, then a ColumnView that displays the added items, and finally ...
Kilobug's user avatar
  • 91
0 votes
1 answer
39 views

I'm trying to install PyGObject and GTK3 using gvsbuild by following the steps outlined here: https://github.com/wingtk/gvsbuild I've managed to build/install GTK3 with gvsbuild but when I run the ...
Mazianos's user avatar
0 votes
0 answers
31 views

I've built an app in GTK. It runs as expected on multiple machines. However, when I run it via Broadway (https://docs.gtk.org/gtk4/broadway.html) there's a strange phenomenon: When you click a ...
Oliver Cox's user avatar
2 votes
0 answers
87 views

I am trying to develop a PyGObject application but experiencing a strange behavior. I’ve created a demo for you to reproduce it. This is the code: import gi gi.require_version("Gtk", "4....
ismailarilik's user avatar
  • 2,460
4 votes
1 answer
115 views

Specifically, I am trying to constrain a label to have a width no greater than a (class derived of a) scale. Both are placed within a (class derived of a) grid. TLDR: How do I pass the widgets as ...
AKArien's user avatar
  • 43
1 vote
2 answers
102 views

Following the instructions below, last week I was able to compile and run a basic Hello, but this morning I cannot even get the simplest application below to compile: g++ reallysimple.cpp -o gtk_app '...
Stephen Elliott's user avatar
3 votes
1 answer
127 views

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 ...
Felix.leg's user avatar
  • 843
4 votes
1 answer
105 views

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 ...
Code Dalek's user avatar
Advice
0 votes
1 replies
105 views

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 ...
sxkx's user avatar
  • 642
0 votes
0 answers
68 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
0 answers
54 views

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

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
65 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
  • 41
0 votes
0 answers
28 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
1 answer
91 views

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

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,411
0 votes
1 answer
60 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.2k
0 votes
0 answers
76 views

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
  • 391
0 votes
1 answer
112 views

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

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

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,639
1 vote
1 answer
177 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
109 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
91 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
56 views

I'm working on Flatpak Python app, that needs to also interact with some host filesystem elements. While the application is running, another process, running outside of flatpak environment creates new ...
Damian Dudycz's user avatar
0 votes
0 answers
108 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
1 answer
46 views

I am working on a plugin written in C using Gtk for a Linux application. I only get errors when attempting to reload the plugin. So here are the step: Load plugin - no error Unload plugin - no error ...
xBACP's user avatar
  • 621
0 votes
0 answers
154 views

I'm building a cross-platform C application with a GTK-based GUI that performs cryptographic functions (like AES encryption/decryption using OpenSSL). I'm developing primarily on Windows using CLion ...
Prasanth Vaindam's user avatar
1 vote
0 answers
448 views

I have seen this question, but the problem is a little bit different. I was compiling GTK4 app with the following cmake and got the error cmake_minimum_required(VERSION 3.0) project(TestGTK LANGUAGES ...
Eric Nien's user avatar
0 votes
1 answer
185 views

I recently started using code::blocks on Linux (Linux Mint). I've been trying to install GTK and its dependencies for C++. I started by downloading each of the dependencies as a .tar.xz file, and then ...
Bob the Cob's user avatar
2 votes
1 answer
70 views

I am currently debugging an issue where gtk_notebook_remove_page(GTK_NOTEBOOK(nbook), page); is crashing the program. Looking into the implementation of the function gtk_notebook_remove_page, I have ...
Kim Minseo's user avatar
2 votes
1 answer
82 views

I want to pass additional arguments into a function when using G_CALLBACK, for example this is a simple line of code that will trigger callback_function when the popup button is clicked: GtkWidget *...
Kim Minseo's user avatar
0 votes
1 answer
302 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,728
0 votes
1 answer
65 views

I'm developing a Gedit plugin in Python using Gtk. The plugin is supposed to add "🔮 Generate" and "📝 Summarize" items to the right-click context menu in the editor. However, the ...
Maifee Ul Asad's user avatar
1 vote
0 answers
62 views

I am attempting to implement drag-and-drop following the example from the Gtkmm book here: https://gnome.pages.gitlab.gnome.org/gtkmm-documentation/sec-dnd-example.html In the DragSource's prepare ...
xBACP's user avatar
  • 621
0 votes
1 answer
65 views

I am trying to implement drag-n-drop with Gtkmm4. Inside DragSource's prepare signal callback I return a ContentProvider: // ... char* buffer; gsize length; file->load_contents(buffer, length); ...
xBACP's user avatar
  • 621
1 vote
2 answers
95 views

I'm trying to write a gtkmm frontend for a project; it's my first time working with GUI. It seems that reading floating point numbers from files is problematic: I either only get to read the integer ...
l1ivi1l's user avatar
0 votes
0 answers
50 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
39 views

I am using gtkmm 4 and need to make a subclass of ToggleButton look just like a tab of a Notebook. I have found out that most themes use the selector notebook > header > tabs > tab for those, ...
roundabout's user avatar
1 vote
0 answers
66 views

I would like to retrieve the snapshot of a webview in an application in Linux, and there should be no extra window popping up. Therefore, I decided to use Webkit2 and Gtk Offscreen Window to achieve ...
wc0328's user avatar
  • 11
0 votes
1 answer
172 views

I have a Java project that uses Java-GI Gtk/Adw bindings. It uses a maven plugin to generate a .desktop, metainfo.xml and .yml manifest. Then I run flatpak-builder: flatpak-builder --force-clean --...
CraigFoote's user avatar
1 vote
0 answers
91 views

I installed the gtk library using MSYS2 MINGW64. Gtk files appeared in the folder C:\msys64\mingw64\bin , also added to the PATH "C:\msys64\mingw64\bin ". After that, I created the file &...
N4triom Klendwork's user avatar

1
2 3 4 5
172