Re: changing the bg of a widget

2005-08-22 Thread Olexiy Avramchenko
Luka Napotnik wrote: Hello. I'm trying to change the background of a vbox but it doesn't change. I call gtk_widget_modify_bg(window_main-box_main, GTK_STATE_NORMAL, bgColor) where bgColor is set to white. Why does this not work? I have a GtkImage with an image in the vbox and that's all. If I

GtkTreeView : Drag and drop

2005-08-22 Thread Thym
Hello, ( I speak french, sorry for my english ) in my GtkTreeView, I activated drag and drop with : gtk_tree_view_set_reorderable(GTK_TREE_VIEW(pTreeView), TRUE); The DnD works fine, but I would like control if the row may moved. How can I do it ? Thank you.

checkbox nightmares

2005-08-22 Thread Terry Rankine
hi i am using gtk+ 2. I wish to use a checkbox to update other checkboxes on the screen ie if A gets ticked tick b tick c tick d .. but conversly if any one of b,c,d are un-ticked, untick a. any ideas? i have had a trawl through the list and cant quite see anything similar. Terry

Re: checkbox nightmares

2005-08-22 Thread Stefan Kost
Hi Terry, hi i am using gtk+ 2. I wish to use a checkbox to update other checkboxes on the screen ie if A gets ticked tick b tick c tick d .. but conversly if any one of b,c,d are un-ticked, untick a. you want to use gtk_toggle_button_set_state() for this. GtkCheckButton is

Re: checkbox nightmares

2005-08-22 Thread Olexiy Avramchenko
Stefan Kost wrote: you want to use gtk_toggle_button_set_state() for this. GtkCheckButton is derived from GtkToggleButton. gtk_toggle_button_set_active () ? ;) or g_object_set (toggle_button, active,TRUE/FALSE, NULL) Olexiy ___

capture an event on the topparent widget

2005-08-22 Thread Yiannis
Hi, I am trying to capture a leave_notify_event or a button_press_event which is applied to the whole window. Unfortunately it fails becuase I am catching the event from the top parent widget/window which holds other widgets... Any help? -- -- Yiannis

Resizing an image widget

2005-08-22 Thread LaundroMat
Hi all - First time here, thanks for having a look at this. I have a window, consisting of a horizontal box, with 3 vboxes in it. One vbox contains an image, another a set of labels and the third has text entry widgets. How can I resize the image to the unexpanded size of the vboxes containing

Re: Resizing an image widget

2005-08-22 Thread Tristan Van Berkom
LaundroMat wrote: Hi all - First time here, thanks for having a look at this. I have a window, consisting of a horizontal box, with 3 vboxes in it. One vbox contains an image, another a set of labels and the third has text entry widgets. How can I resize the image to the unexpanded size of

GdkPixbuf and FIFO's

2005-08-22 Thread Alex Levin
Hi everyone. I'm trying to pass a GdkPixbuf object through a FIFO from one thread to another. Does anyone have any code snippets which does something similar to this? Thanks in advance. Alex Levin CAC Media Vice President of Technology: Consumer Electronics Division 212-631-7483 [EMAIL

Re: GdkPixbuf and FIFO's

2005-08-22 Thread Tristan Van Berkom
Alex Levin wrote: Hi everyone. I'm trying to pass a GdkPixbuf object through a FIFO from one thread to another. Does anyone have any code snippets which does something similar to this? Thanks in advance. You should be able to serialize what you need by only piping a GdkPixData struct

Handling GtkTree Views

2005-08-22 Thread Guenther Sohler
Hallo List, I plan to use GtkTreeView in my application to display a quite complicated data structure to the user. One Element/Row in the view corresponds to one item in the data structure. Its like instance subinstance parameter other entity

Re: Display XPM Content

2005-08-22 Thread John Vetterli
On Mon, 22 Aug 2005, Guenther Sohler wrote: I have created some symbols for my program. Now I want to compile them into the code. But I am now looking for the right function to create a GtkPixBuf from it. Previously i used gdk_pixbuf_new_from_file How can I get the same from following data ?

Re: GdkPixbuf and FIFO's

2005-08-22 Thread John Cupitt
On 8/22/05, Alex Levin [EMAIL PROTECTED] wrote: Hi everyone. I'm trying to pass a GdkPixbuf object through a FIFO from one thread to another. Does anyone have any code snippets which does something similar to this? Thanks in advance. If the two threads are in the same process, you could

Re: Resizing an image widget

2005-08-22 Thread Tristan Van Berkom
LaundroMat wrote: I realise I wasn' t too clear in my mail. The thing is, I have a window with essentially 3 boxes: A B C A = image B = labels C = text entry The height of B (and C for that matter) is smaller than that of A. But I would like to resize A to the height of C. If you set the

Re: GtkTreeView : Drag and drop

2005-08-22 Thread HuamiSoft Hubert Sokolowski
Hi! On Mon, 22 Aug 2005 00:37:34 +0200 Thym [EMAIL PROTECTED] wrote: Hello, ( I speak french, sorry for my english ) in my GtkTreeView, I activated drag and drop with : gtk_tree_view_set_reorderable(GTK_TREE_VIEW(pTreeView), TRUE); The DnD works fine, but I would like control if the

Re: Display XPM Content

2005-08-22 Thread Chris Vine
On Monday 22 August 2005 10:18, Guenther Sohler wrote: I have created some symbols for my program. Now I want to compile them into the code. But I am now looking for the right function to create a GtkPixBuf from it. Previously i used gdk_pixbuf_new_from_file How can I get the same from

Re: Display XPM Content

2005-08-22 Thread Chris Vine
On Monday 22 August 2005 21:59, Chris Vine wrote: GdkPixbuf* pixbuf = gdk_pixbuf_new_from_xpm_data(bitmap); ... do stuff ... g_object_ref(G_OBJECT(pixbuf)); Typo: that should be g_object_unref(). Chris ___ gtk-app-devel-list mailing list

Re: glade and combo boxes

2005-08-22 Thread David M. Cook
On Sun, Aug 21, 2005 at 04:15:28PM +0200, Gy?z? Both wrote: when i create a combo box in glade 2.6.8, the c code generated uses gtk_combo_box_new_text() instead of gtk_combo_box_new(), which is what i'd like to have. is there some way to make glade use the latter function? i didn't give