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
40
votes
1 answer

GLib-CRITICAL **: Source ID XXX was not found when attempting to remove it

I made a treeview with a treestore as model. The window is shown as expected, but when I click in the "+" to expand the items, I get this message: GLib-CRITICAL **: Source ID 221 was not found when attempting to remove it Here is my code: #include…
Joel
  • 1,805
  • 1
  • 22
  • 22
33
votes
11 answers

Glade or no glade: What is the best way to use PyGtk?

I've been learning python for a while now with some success. I even managed to create one or two (simple) programs using PyGtk + Glade. The thing is: I am not sure if the best way to use GTK with python is by building the interfaces using Glade. I…
Flávio Amieiro
  • 41,644
  • 8
  • 32
  • 24
23
votes
5 answers

" Gtk-WARNING: Unable to locate theme engine in module_path: "murrine" error while installing Adobe air installation on Ubuntu 13.10

Hi I'm new to Ubuntu and I need to install Adobe Air on my computer! I have Ubuntu 13.10 version. I have followed the following steps: $ sudo apt-get install libgtk2.0-0:i386 libpangox-1.0-0:i386 libpangoxft-1.0-0:i386 libidn11:i386…
user3174967
  • 245
  • 1
  • 2
  • 4
21
votes
2 answers

GTK and PYGTK difference

many programmers import both gtk and pygtk in this way: import gtk import pygtk I have created a simple program using only gtk and it works: import gtk window = gtk.Window() window.set_size_request(800,…
xRobot
  • 25,579
  • 69
  • 184
  • 304
19
votes
2 answers

In simple gtk key press event example, GDK_SHIFT_MASK seems to be ignored

Could someone please compile and execute the small sample code I provided below? Please let me know if the shift key modifier works properly for you. This example is suppose to demonstrate the key press functionality in gtk. It works fine for…
nomadicME
  • 1,389
  • 5
  • 15
  • 35
14
votes
3 answers

GTK+-based graph?

I want to be able to make a line graph using GTK+ but I'm unsure how to approach this. Has anyone got any hints or tips?
paultop6
  • 3,691
  • 4
  • 29
  • 37
12
votes
4 answers

How to insert synthetic mouse events into X11 input queue

I've got an embedded device running Linux/X11 that is connected to a device that provides touch events over a USB connection. This device is not recognized as any form of standard pointer/mouse input. What I'm trying to do is find a way to "inject"…
Chimera
  • 5,884
  • 7
  • 49
  • 81
11
votes
2 answers

GTK Modifying Background Color of GtkButton

Trying to change background/foreground color....Using Gtk+ and C. GdkColor color; gdk_color_parse( "#0080FF", &color ); gtk_widget_modify_fg( GTK_WIDGET(button), GTK_STATE_SELECTED, &color ); gtk_widget_modify_fg( GTK_WIDGET(button),…
User7723337
  • 11,857
  • 27
  • 101
  • 182
9
votes
2 answers

GObject Gtk, Gnome, Gtk+, Gl, Gtk2, Gtk3...I don't understand?

all I need some window to host webkit or/and cairo drwaing, but i have to deal with all that first to understand what I'm doing. now. I'm lost and no more understand what's all that about. and things get worse when I try working with binding or…
KA1
  • 643
  • 6
  • 15
8
votes
2 answers

How can I use GTK3 with perl?

How can I use GTK3 with Perl? Is it already possible?
cirne100
  • 1,558
  • 2
  • 12
  • 24
7
votes
4 answers

Automatically sizing a GtkTextView in a GtkScrolledWindow

I work on gschem, a free software tool for editing electronics schematic diagrams. Recently we have encountered a problem using a GtkScrolledWindow containing a GtkTextView. Context Recent versions of Ubuntu use overlay scrollbars, which mean that…
Peter T.B. Brett
  • 1,250
  • 11
  • 20
7
votes
2 answers

Learning GUI programming with GTK+2 or GTK+3?

I am new to GUI programming, and I haven't found yet what library is best for my purpose (i want to make desktop environment applications, eg. docks, panels, desklets etc.) I have started learning basics of GTK, mainly using PyGtk. Most tutorials i…
neydroydrec
  • 6,973
  • 9
  • 57
  • 89
7
votes
1 answer

Using ggplot2 within gWidgetsRGtk2

I'm building a GUI using gWidgetsRGtk2 and am having trouble making a ggplot appear on the click of a gbutton. The plotting function works by itself (i.e. when you type "plotData()"), but I can't get it to work with gWidgets. Is there some…
bstock
  • 190
  • 1
  • 9
7
votes
2 answers

How can I change the font size in GTK?

Is there an easy way to change the font size of text elements in GTK? Right now the best I can do is do set_markup on a label, with something silly like: lbl.set_markup("%s" % text) This 1) requires me to set the…
Claudiu
  • 224,032
  • 165
  • 485
  • 680
6
votes
2 answers

gtk_main() and unix sockets

I'm working on a chat application using C and unix low level sockets. I have succeeded in making the console version, but I want to make a GUI for the application. I would like to use GTK for the GUI. my problem is how to "synchronize" the socket…
Random
  • 467
  • 1
  • 4
  • 9
1
2 3
32 33