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

GTK# toolbox is empty on Visual Studio 2019 on the MAC

Installed Visual Studio Community on MAC machine. Created GTK# 2.0 project. I am not able to see toolbox for designing UI. Toolbox showing There are no tools available for the current document.
Vijay Kumbhani
  • 734
  • 1
  • 6
  • 26
3
votes
1 answer

Update Gtk+2 text view widget from another thread

I am writing a chat client in GTK. The client has the main GTK loop, plus a spawned thread that sits and blocks at the read() function waiting for input from a file descriptor connected to a socket. Once the read function gets past the blocking, it…
Matthew
  • 3,886
  • 7
  • 47
  • 84
3
votes
3 answers

glib.h and gtk.h not found

Hi everyone I have a program with the following includes: gtk/gtk.h glib.h I have used the commands: sudo apt-get install libgtk2.0-dev glib sudo apt-get install glade But I am still getting the error that glib was not found and gtk/gtk.h was…
tariq
  • 529
  • 5
  • 19
  • 34
3
votes
0 answers

Scroll event on GTKAgg canvas and GTKScrolledWindow

I am trying to connect the scroll event in my matplotlib plots using canvas.mpl_connect('scroll_event', on_scroll) This works basically, but if the plots are placed in a GTKScrolledWindow, the plot reacts to the scroll event and the ScrolledWindow…
pxe
  • 155
  • 7
3
votes
1 answer

Ubuntu 16.04: fatal error: X11/Xlib.h: No such file or directory

I am trying to install Rgtk2 (dependency for rattle). I am using R thru Anaconda. I am getting the following error. In file included from Rgtk.c:7:0: /usr/include/gtk-2.0/gdk/gdkx.h:32:10: fatal error: X11/Xlib.h: No such file or directory …
Anup
  • 63
  • 1
  • 6
3
votes
1 answer

Glade-3 for Ada

I am trying to use Glade 3 for my Ada programs on Windows 7. I found a way with version 3.6 but gtk-builder-convert was not recognized as a script. I have tried Google to find a site that explains how to get it working. But it always is for Linux or…
user587468
  • 31
  • 1
3
votes
0 answers

How to use GTK RC files in GTK2

This is my code: int main(int argc, char *argv[] ) { gtk_init(&argc, &argv); GtkWidget *window; GtkButton *button; gtk_rc_parse("style.rc"); window = gtk_dialog_new(); gtk_widget_set_name(window, "window"); …
user7554160
3
votes
1 answer

GTK+2 vs. GTK+3 signal "expose/draw/render" events

I recently asked some questions here and here concerning a program I am working on and that offers a visualization interface for molecules, atomic systems ... as mentioned in these previous messages I do have 3 different versions of my program:…
3
votes
1 answer

How to get as many information as possible about an OpenGL context

Hello world and thanks for taking some time to read this ! I am writing a program in GTK2/3 + OpenGL, I got two versions of the program running: (a) GTK+2 + GtkGlext Extention -> works great ! (b) GTK+3 + LibX11 -> works just fine ! Everything…
3
votes
1 answer

How to get the number of rows of gtk.ListStore

How to get the number of items / rows / length / count of gtk.ListStore in C Here is my sample code: store = gtk_list_store_new (NUM_COLS, G_TYPE_STRING, G_TYPE_UINT); /* Append a row and fill in some data */ gtk_list_store_append (store,…
Ebrahimi
  • 1,209
  • 8
  • 15
3
votes
1 answer

How to set an GTK Entry as an default active element in Python GTK2

How can I set a GTK entry as default activated element / widget on start so I can insert my text without click into the entry widget first? For example, when I start this script I want to insert into entry2 by default: #!/usr/bin/python # -*-…
oxidworks
  • 1,563
  • 1
  • 14
  • 37
3
votes
1 answer

Why gtk.Dialog disappears directly when entry received no focus

I was searching for an solution to hide gtk dialog immediately after get the response. But now I am wondering why it disappears, but only if I don't click into the entry field: import gtk, time def get_info(): entry = gtk.Entry() …
oxidworks
  • 1,563
  • 1
  • 14
  • 37
3
votes
1 answer

can't get gtk2 CellRendererCombo to display anything

I am unable to get gtk's cell renderer combo box to display any options. I need to use a different model for each row in my tree, which should be possible with cellComboTextModel. My result is the combo box renderer is completely empty. Here is a…
ghorn
  • 614
  • 3
  • 11
3
votes
1 answer

Limiting values in GtkEntry

How do I limit the gtkEntry only to numbers and also how to store the value entered by the user for further calculation. entry1 = gtk_entry_new();
3
votes
2 answers

How to refresh, redraw a window (widget) in gtk?

I am using Opensuse 13.1 Linux Os. I am new to gtk2 and c. I am trying to create a application that can place a button on a table which is attached as per the values typed by the user. My program code is as following #include #include…
Ravindra Wagh
  • 49
  • 1
  • 1
  • 5