Questions tagged [gtk2]

The GIMP ToolKit (GTK+) in its version 2.x.

The GIMP ToolKit (GTK+) in its version 2.x. For questions that do not specifically address GTK2, use .

484 questions
6
votes
3 answers

How do I fix the "unknown attribute `swapped'" warnings from libglade?

libglade was updated and my old Glade xml file has these "swapped" attributes for signals. These attributes generate the following warnings when the file is loaded: libglade-WARNING **: unknown attribute `swapped' for . How do I fix these…
Jason
  • 11,709
  • 9
  • 66
  • 82
6
votes
0 answers

Create a menubar for GTK 2.24 and GTK 3 and GTK 4

GTK 4 will remove GtkMenu, GtkMenuBar and GtkMenuItem. Why not, but, is there a common way to create a classic menubar for GTK 2.24 and GTK 3 and GTK 4 in C? An example:
luigifab
  • 384
  • 3
  • 19
6
votes
2 answers

Packaging ruby gtk app

What is the least headache technique to package a gtk2/gtk3 app built with ruby for distribution as an executable, for windows, linux, macos? I could not find any guides or helpers to resolve this for ruby gtk. Nor the ruby-gnome gem comes with a…
arjun
  • 1,594
  • 16
  • 33
6
votes
1 answer

How can I set the background of a GTKListStore/GTKComboBox in GTK2?

I'm using this code to create a combo box with colored background/text: GtkListStore *liststore; GtkWidget *combo; GtkCellRenderer *column; liststore = gtk_list_store_new(3, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING); for(int i=0; i<10; i++) { …
user7537486
6
votes
2 answers

Gtk-ERROR **: GTK+ 2.x symbols detected

I'm compiling my c application with gcc with the following flags: gcc evis.c `pkg-config --cflags --libs gtk+-2.0 --libs clutter-gtk-1.0 --libs gthread-2.0` -Wall -o evis Now my code compiles with a few warnings but still finishes. When I try to…
ReX357
  • 1,199
  • 3
  • 19
  • 43
5
votes
2 answers

GTK and scrolling text view

This is what I have so far GtkWidget* createConsoleBox() { GtkWidget* textArea = gtk_text_view_new(); GtkWidget* scrollbar = gtk_vscrollbar_new(gtk_text_view_get_vadjustment(GTK_TEXT_VIEW(textArea))); GtkWidget* textEntry =…
rubixibuc
  • 7,111
  • 18
  • 59
  • 98
5
votes
0 answers

Respond to theme change in GTK+ 3

Some applications can respond live to GTK+ theme changes. For example, Thunar, Geany, lxrandr, Hexchat will all update their UI when a theme is changed, for example in lxappearance. These are all GTK+ 2 programs. On the other hand, evey GTK+ 3…
Inductiveload
  • 6,094
  • 4
  • 29
  • 55
5
votes
1 answer

GTK2: g_thread_init deprecated

This is my first attempt at making a threaded piece of software. It's gonna be GTK2 based on Arch Linux. I followed the example from here: Threaded animation with Cairo Using the example with SIGALRM at the bottom. I get the following warning when…
ReX357
  • 1,199
  • 3
  • 19
  • 43
5
votes
2 answers

Scrolling a very large GtkDrawingArea

I have a GtkDrawingArea that is used to visualize data. Depending on the database and user input the drawing can grow really large (larger than the maximum allowed GtkDrawingArea size). Therefore I would like to use a drawing area that is just as…
Arne Böckmann
  • 467
  • 2
  • 16
5
votes
2 answers

GTK+ (2.0) - signal "clicked" on GtkEntry?

I'm testing some signals with GTK+ 2.0. I'm looking for a way to get a signal emitted when I click on a GtkEntry. if (widgets_info[i].action & IG_INPUT) { widget->frame[i] = gtk_entry_new_with_max_length(MAX_INPUT_LENGTH); …
GeoffreyB
  • 1,791
  • 4
  • 20
  • 36
4
votes
1 answer

Poor look of a gtkmm program

I'am writing with my friends a simple photo viewer in C++ using gtkmm. Everything goes quite well, except that our app is looking very poor and completely diffrent from any other GTK+ application on ours Linux desktops. If anyone could give us some…
mc.suchecki
  • 1,898
  • 4
  • 23
  • 44
4
votes
2 answers

gtk networking tutorials / resources / examples

Does anyone now where i can find some good tutorials / code samples regarding networking in gtk / glib. I'm trying to write a client application that connects to a simple server that echos back what it receives, using Gtk2 and i'm not sure how to go…
Vlad Balmos
  • 3,372
  • 19
  • 34
4
votes
2 answers

Loading GTK2 in PHP fails

I already did the following: Installed PHP 5.3.3 Installed GTK 2.0.1 Installed the latest version of php-gtk from svn All dependencies are resolved and installed. I edited php.ini to load the GTk library in extension lib of PHP, as…
Kris
  • 8,680
  • 4
  • 39
  • 67
4
votes
1 answer

Get colors of current gtk style

I use PyGTK and I want to get colors of a widget (for example bg color), I run such a code: gdkColorToRgb = lambda gc: (gc.red//257, gc.green//257, gc.blue//257) widget = gtk.HBox() ## for example style = widget.get_style() for i in range(5): …
saeedgnu
  • 4,110
  • 2
  • 31
  • 48
4
votes
0 answers

GtkTreeView hook interactive-search dialog

Is there a way to hook the interactive-search dialog in such a way that I handle what happens when the user types text in it? I want to hook it so I can implement interactive filtering instead of searching. I'll use GtkTreeModelFilter over a…
sashoalm
  • 75,001
  • 122
  • 434
  • 781
1
2
3
32 33