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

Why does gtk_tree_selection_select_iter() does not select an child row of another row even when iter is valid?

I have an application (sscce code that works here) with a GtkTreeView. Every time a line is selectd, a callback is invoked. This callback should retrieve the selected row and process its data someway. My application has to select some lines of this…
brandizzi
  • 26,083
  • 8
  • 103
  • 158
0
votes
1 answer

gtk_menu_item_new_with_labelex vs gtk_menu_item_new_with_label

what is the difference between these two function calls: menu_item_new_with_labelex vs gtk_menu_item_new_with_label
ultraman
0
votes
1 answer

Can GtkMenuItem have colored label

So I am basically doing the following and I want SomeText to have red forground color. How to achieve this: GtkWidget *menu_item =gtk_menu_item_new_with_labelex("SomeText"); I am using GDK 2.0 Thanks
ultraman
0
votes
1 answer

gtk+ save file while preserving file permissions in linux

I'm writing a text editor in gtk+ 2.0 & gtksourceview 2.0. Currently I'm using gtk_text_buffer_get_text and g_file_set_contents to save the textbuffer to a file. I see in the docs for g_file_set_contents that it says: Also since the file is…
nomadicME
  • 1,389
  • 5
  • 15
  • 35
0
votes
1 answer

extract checkbox value in RGTK2

I use the code below to create a checkbox for user to check/uncheck it. input.form1.015.checkbox <- gtkCheckButton("15_check") I wonder how I can extract the value of the checkbox (i.e. whether it is checked or not) Currently I use the…
lokheart
  • 23,743
  • 39
  • 98
  • 169
0
votes
4 answers

GTK2 and Perl Manual

I am learning Perl for the first time, but I am finding it difficult to find some well documented documentation regarding the language with the GTK2 Library. I am fully aware of the Perl Manual, but it doesn't cover anything on GTK2. So, where can I…
nderjung
  • 1,607
  • 4
  • 17
  • 38
-1
votes
1 answer

how to auto scroll the scrollbar to bottom when window get minimized

I am working on a project which has to be in GTK-2.0 and the problem I am facing is that If the window gets Minimized after being Maximized the scrollbar does not goes back the bottom anymore. Here is a part of the code which could be seen and…
Michi
  • 5,175
  • 7
  • 33
  • 58
-1
votes
1 answer

Gtk-CRITICAL **: 16:04:21.737: gtk_box_pack: assertion 'GTK_IS_WIDGET (child)' failed

I m compiling and running a gtk app and i get that error while running when I try to put a button in an hbox. What does this error mean/how can I fix this. I get this when running it through the terminal, and somehow GTK prints this when I push a…
user10997028
-1
votes
1 answer

Disable the interactive-search - user side

I got accustomed to then I write file name in Save dialog in Windows PC, it writes into file name label. In linux I must focus on label, and then write. It's annoying, but I can't find how to disable quick search. I see source, GTK documentation,…
Joe Mendel
  • 11
  • 1
-1
votes
1 answer

how to prevent button to be focused by default

I am using GTK+2 for GUI in C language. I have 10x10 table of buttons in my code. And When I run my code, the 1st button (button[0][0]) is focused by default. So how can I can prevent this button to be focused by default? Code: table =…
Raees Khan
  • 371
  • 1
  • 5
  • 20
-1
votes
1 answer

Update of an integer between functions

I have a big code of GTK2 in which I´m having troubles updating the value of an integer (in this case trigan, that its defined in the main body and callbacked to the two functions that are giving me this problem). I intend to press the button RUN…
Keles
  • 369
  • 1
  • 2
  • 14
-1
votes
1 answer

Gtk issues (Closing on callback, not supposed; Cairo not drawing; Separators do not appear)

I'm having a few issues, that I have no idea how to solve with GTK+ 2. I made a function, supposed to be a callback when I click on the "Manual" item on the "Ajuda" (help) menu. However, when I compile and click there, the program closes, and I…
Kelthar
  • 124
  • 9
-1
votes
1 answer

How to set GtkSpinButton margin in GTK2?

I'm working on GtkSpinButton (GTK2/GTK3) to make another control. (DateTime). As part of the task, I need to add a button 'next to' the GtkSpinButton to influence the content in GtkSpinButton. (when you click it, a calendar pops out). However,…
Leo Ufimtsev
  • 6,240
  • 5
  • 40
  • 48
-1
votes
1 answer

How to know when a Gdk.Pixbuf is finished loading

I am loading a Gdk.Pixbuf from bytes: _pixbuf = new Gdk.Pixbuf(bytes); Then, I'd like to read the _pixbuf data. But, it appears that the data is actually loading in the background because the data doesn't exist for a while. If I wait, all is…
Doug Blank
  • 2,031
  • 18
  • 36
-1
votes
1 answer

GTK2 Perl: Remove/hide a row from a table (TreeViewColumn)

I'm writing a GUI app on gtk2 perl. There is a table which show rows from database, when an user click on a checkbox. And when he click on it again then rows with defined column value must be hidden. I have this code: # ListStore to stores model my…
edem
  • 3,222
  • 3
  • 19
  • 45
1 2 3
32
33