Questions tagged [gtk3]

The GIMP ToolKit (GTK+) in its version 3.x. GTK+ is a highly usable, feature-rich toolkit for creating graphical user interfaces (GUIs) that boasts cross platform compatibility and an easy to use API.

GTK+ is written in C, but has bindings to many other popular programming languages such as C++ (), Python (), and C# among others. GTK+ is licensed under the GNU LGPL 2.1, allowing development of both free and proprietary software with GTK+ without any license fees or royalties.

"GTK" stands for GIMP Tool Kit; it was originally developed to serve as the widget set for The GIMP, the GNU Image Manipulation Program. In the intervening years its usage has expanded greatly.

The latest version is GTK+ 3, released in January, 2011.

For questions not specifically regarding GTK 3, please use instead.

Reference documentation in C

Reference documentation in Python

3219 questions
1
vote
2 answers

Can you create a custom GTK Assistant with your own buttons?

I want to create a custom GTK Assistant with my own buttons to control moving forward and back pages. I also don't want to end the program so the pages will be constantly looped through. I haven't been able to find anything on line about this, any…
Joe
  • 37
  • 8
1
vote
1 answer

GTK SourceView scroll to mark not working

I'm trying to fill a SourceView's buffer with text and then scroll to make a specific line visible, like this: lines = '....'.split('\n') line_number = 76 # For instance, assuming lines has at least this many lines buffer = view.get_buffer() for…
Tom
  • 7,269
  • 1
  • 42
  • 69
1
vote
1 answer

gtkmm: stack together elements in the container widget (Box)

I want to create some kind of toolbar, consisting of buttons. I used ButtonBox, and put inside some toggle buttons, color button and one regular button. I want to accomplish two things: Make buttons stick together despite window width, without…
SuperPrower
  • 111
  • 1
  • 12
1
vote
2 answers

Gtk3 and cairo animation twitch

I've made a very simple animation with gtk3 and cairo. Once a sec it's a little bit twitch. It's really annoying and it doesn't look well. Why it happens and how can I fix this? #include #include static int width, height, …
delxa
  • 99
  • 1
  • 8
1
vote
2 answers

Python3-Gtk3. Iconview. Drag multiple items

I've already added the code for drag and drop to the iconview widget, but I haven't found any method for dragging two or more items: every time an item is selected, the previous selection is cleaned.
franky99
  • 53
  • 1
  • 6
1
vote
2 answers

Gtk3 and cairo g_timeout_add doesn't work

I've made very simple animation with gtk3 and cairo. I've got g_timeout_add and it should call draw function every 1ms, but it call draw much slower than should. Why it happens and how can I fix it? #include #include gboolean…
delxa
  • 99
  • 1
  • 8
1
vote
0 answers

GTK+3.0 compatible c++ wrapper version of gtkmm

I have to migrate a very large application developed in GTK 2.4 version to GTK 3.0. The current application uses Gtkmm version 2.4 in Ubuntu. As GTKMM is the c++ wrapper of GTK+ , could someone tell me , whether and which version of Gtkmm will…
1
vote
2 answers

Set language of GTK Buttons to a different language - Linux - Python

How can I set the default language of the Gtk3 Stock Buttons to another language? I tried: sudo apt-get install language-pack-en language-pack-gnome-en But: import locale from pprint import…
oxidworks
  • 1,563
  • 1
  • 14
  • 37
1
vote
1 answer

How to get invalid region of GtkDrawingArea in its draw signal handler

In the Reference Manual of GtkDrawingArea, it says Draw signals are normally delivered when a drawing area first comes onscreen, or when it’s covered by another window and then uncovered. You can also force an expose event by adding to the “damage…
TitanSnow
  • 33
  • 3
1
vote
1 answer

GTK3 and cairo too slow

I've made a very simple animation with GTK3 and cairo and it's too slow for this simple graphics. I don't understand why it's so slow. I tried to use gtk_widget_queue_draw_area, but result is the same, nothing changes. Who can explain me, why it's…
delxa
  • 99
  • 1
  • 8
1
vote
1 answer

Funcanimation not working inside figcanvas

I want to build an interface with certain real-time graphs showing the results of some experiments. For this, I decided to use a combination of glade(UI), gtk, python, and matplotlib. I was working with some basics and I was able to plot some…
Warlock
  • 164
  • 3
  • 18
1
vote
1 answer

Freehand drawing Gtk / set_event_compression(false) does not work

I'm developing a graphic software with GTK+ (gtkmm) and want to build a free hand drawing feature. I connect to the signal_motion_notify_event on a Gtk::EventBox and set set_event_compression to false on the event box. I also set…
ArchLinuxTux
  • 840
  • 1
  • 11
  • 28
1
vote
0 answers

Change default GTK3/Glade label font size in Geany

I have been using the editor Geany on Arch Linux for quite a while now, however since the last update the font of the notebook tabs (located above the editor widget, see a screenshot of Geany for reference here) is unnecessarily large (probably…
kassiopeia
  • 615
  • 1
  • 9
  • 23
1
vote
1 answer

Python Gtk+3 Window.present not work with GNOME Builder

environment: Ubuntu Gnome 16.04.3 GNOME Builder 3.26.3 The GNOME Builder generated project use GtkTemplate to interpret ui, But I change it to use Gtk.Builder to interpret. After modifying, it does not work. And I can not see any error…
Honghe.Wu
  • 5,899
  • 6
  • 36
  • 47
1
vote
2 answers

Python gtk TextView border not working from css

I have really strange situation. From the gtk css style I can apply for example background color, order radius, but i cant make the border to be visible. The file is ultra simple: GtkTextView { border-radius: 3px; border-width: 1px 1px…
bunny1985
  • 762
  • 6
  • 21