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

OCaml-Wodi Part 2: Compiling using what was installed

I am trying to compile a very small vignette to see how lablgtk2 works. (* file: base.ml *) let main () = let window = GWindow.window () in window#show (); GMain.Main.main () let _ = main () I have it properly installed via the wodi32…
9codeMan9
  • 802
  • 6
  • 11
  • 25
0
votes
1 answer

Placing PYGTK IMAGE at a particular pixel position

How to place an image at a particular x and y pixel position on a window by code in pygtk? I have tried xalign and yalign after reading this post but it only aligns the image. I will use this code to make a grid of images. Please help
rohangulati
  • 251
  • 1
  • 4
  • 12
0
votes
1 answer

Error while installing gtk2 ruby gem

I have set up rvm and wanted to do the tutorial http://zetcode.com/gui/rubygtk/ it requires gtk2 so I ran: gem install gtk2 It asked me to authorize installation of libglib2.0-dev Finally it failed with an error. This is the log …
cr0max
  • 1
  • 1
0
votes
1 answer

Setting gdb breakpoints into GTK+2 shared libraries?

I'm working on Centos6.3 -- Gtk-2.18 for a C(++) app. I'm having trouble with Metacity hanging when I set breakpoints in GTK libraries. It looks like the breakpoint is affecting the system-wide copy of the library, ie Metacity's, not just my app's…
dajoke
  • 143
  • 9
0
votes
1 answer

i had developed a tool using gtk in linux. its working fine now i want to make it port to windows?

For that tool i used glade -3 to build windows in linux and imported inside code using gtk builder, now want to port this tool to windows xp what is best way ? thanks in advance :)
preabs
  • 15
  • 3
0
votes
2 answers

Unresolvable Ruby Gtk2 Error

I keep getting a 'uninitialize GLib::Object' error from my code. Here's the code: class MainWindow < Gtk::Window def initialize title = "I'm The Title Of An Application! Yay!" border_width = 10 set_size_request(600,…
RyanScottLewis
  • 13,396
  • 16
  • 56
  • 84
0
votes
1 answer

Put a GTK::Button in every row of an ListStore

Hy, I have do Build a tool which shows the Content of an Database that works fine but the user has to delete rows on click on a Button in the row. This is what i have now for setting up the ListStore def setup_tree_view(treeview) renderer =…
SnowWolf
  • 13
  • 1
0
votes
1 answer

Cairo / GTK example code crashes when window is too big or maximized

I have copied and compiled the source code available in the section titled "Full Source". http://cairographics.org/threaded_animation_with_cairo/ I adapted this code to a project that I'm working on only to find that the app would crash when I made…
0
votes
1 answer

How to create listener for GtkToolItem in toolbar?

I created GTK application coded with C. I added tool bar: here is relevant snippets of code: GtkWidget *toolbar; GtkToolItem *new; GtkToolItem *open; GtkToolItem *save; GtkToolItem *sep; GtkToolItem *exit; ... toolbar = gtk_toolbar_new(); …
Maxim Shoustin
  • 77,483
  • 27
  • 203
  • 225
0
votes
1 answer

Invisble GtkEventBox vs cursor change

In my application, sometimes I need to disable most of the buttons and event boxes while a process is taking place (except the "cancel" button of course). Each event box contains a label which can be clicked. To make the user understand that these…
Shahbaz
  • 46,337
  • 19
  • 116
  • 182
0
votes
1 answer

how to add a simple message to a php-gtk statusbar?

I have a simple GtkStatusBar created with glade,and want to add a simple message with the date of the last update of the database (just a simple and plain date). I don't want to use the whole stacks, context and all the other things that gtk…
levhita
  • 2,161
  • 2
  • 21
  • 31
0
votes
1 answer

Lock widgets in GTK while performing long operation, but allow repaint

I'm writing an application in GTK2 (technically pyGTK) and will be performing some long operations. If I perform the long operation in the main thread (which isn't a good idea), the application will become unresponsive. The desirable portion of this…
Raceimaztion
  • 9,494
  • 4
  • 26
  • 41
0
votes
3 answers

Changing the Color of button in gtk with c language using gcc

I am using : "gtk+-bundle_2.24.10-20120208_win32" in MinGW using gcc on windows 7... I have difficulty to set color in the button .. my code is GdkColor color; gdk_color_parse ("red", &color); gtk_widget_modify_bg ( GTK_WIDGET(a3), GTK_STATE_NORMAL,…
681ankit
  • 3
  • 1
  • 5
0
votes
2 answers

Perl Multithreaded GTK+ applet

I'd like to write a Perl GTK+ application which will: 0.1) Press button A 0.2) Disable A 0.3) start threads 1 and 2 0.4) start thread 3 Thread 3 does the following: 3.1) join thread 1 3.2) join thread 2 3.3) Enable A On completion…
Ema
0
votes
1 answer

g_slice_new doesn't accept my struct type

that is how I build it: gcc pkg-config --cflags --libs gtk+-2.0 -o spawn spawn_with_pipes.c In the snippet of example below, I get an error: syntax error before "Data - it refers to data= g_slice_new(Data); #include typedef struct { …
ultraman