GtkTreeView issues (porting from GtkCList)

2005-05-30 Thread Yury Aliaev
Hi everybody! Now I'm porting some project from Gtk+-1.2 to Gtk+-2.6 and have some questions on GtkTreeView (with GtkListStore as a model): 1) Rows in GtkTreeView are higher than in GtkCList because of the much free space between them. How can I make GtkTreeView more compact? 2) When pressing

GnomeDateEdit

2005-05-30 Thread abhi rocks
hi Could someone please tell me how to access the GtkEntry field in the GnomeDateEdit widget. Or it would be cooler if someone could tell me how to extract the date and time from time_t data type. Thanks Abhishek Samuel

Distinguish between G_IO_ERR and G_IO_HUP

2005-05-30 Thread Colossus
Hi, I'm trying to catch the returned error message of the unzip executable with GIOChannel. I use g_spawn_async_with_pipes and then I create a GIOChannel and then i call g_io_add_watch. I run unzip with an incomplete zip file so the have the unzip executable fails with an error message but the

Re: Distinguish between G_IO_ERR and G_IO_HUP

2005-05-30 Thread Tim Müller
On Monday 30 May 2005 13:31, Colossus wrote: I'm trying to catch the returned error message of the unzip executable with GIOChannel. I use g_spawn_async_with_pipes and then I create a GIOChannel and then i call g_io_add_watch. I run unzip with an incomplete zip file so the unzip executable

Re: GnomeDateEdit

2005-05-30 Thread Peter Bloomfield
On 05/30/2005 05:42:49 AM, abhi rocks wrote: hi Could someone please tell me how to access the GtkEntry field in the GnomeDateEdit widget. I believe you can't. Or it would be cooler if someone could tell me how to extract the date and time from time_t data type. g_date_set_time will

get parent

2005-05-30 Thread Giovanni Manenti
Hi, how can I get the parent of a widget? I'm using gtk 1.2. thanks Giovanni ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: get parent

2005-05-30 Thread Roger Leigh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Giovanni Manenti [EMAIL PROTECTED] writes: Hi, how can I get the parent of a widget? I'm using gtk 1.2. Check gtk/gtkwidget.h (widget-parent). GTK+ 1.2 is well past it's use by date, though. Use gtk_widget_get_parent() in GTK+ 2.x. Regards,

State changing of Toggle Buttons

2005-05-30 Thread Michal Porzuczek
Hi, I was wondering if it is possible to set a Toggle Button's state to something else when you are inside another Toogle Button's callback. I know there is the gtk_toggle_button_set_active method but that requires you to have the GtkToggleButton. Is there another method that only uses the Widget

Arguments in GObject-based object constructor

2005-05-30 Thread Jacob Kroon
Lets say I've written an abstract class Foo (a class that is not supposed to be instantiated), and a class that inherits from Foo called Bar, which is instantiable. Foo takes 2 constructor arguments/properties x and y. Bar:s constructor takes the samt arguments. In order to initialize some of

Re: State changing of Toggle Buttons

2005-05-30 Thread Peter Bloomfield
On 05/30/2005 04:44:00 PM, Michal Porzuczek wrote: Hi, I was wondering if it is possible to set a Toggle Button's state to something else when you are inside another Toogle Button's callback. I know there is the gtk_toggle_button_set_active method but that requires you to have the

Re: Arguments in GObject-based object constructor

2005-05-30 Thread Tristan Van Berkom
Jacob Kroon wrote: [...] What does it mean by delay initialization completion until the property is set ? You can override the constructor in your class_init function see: le-hacker.org/papers/gobject/ and read about the constructor, it is important that you chain up to the real gobject

Re: Arguments in GObject-based object constructor

2005-05-30 Thread Roger Leigh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jacob Kroon [EMAIL PROTECTED] writes: Lets say I've written an abstract class Foo (a class that is not supposed to be instantiated), and a class that inherits from Foo called Bar, which is instantiable. Foo takes 2 constructor

simple example of using gdk_pixbuf_new_from_file

2005-05-30 Thread Raghavendra
-- Forwarded message -- From: Raghavendra [EMAIL PROTECTED] Date: May 25, 2005 9:59 AM Subject: Re: simple example of using gdk_pixbuf_new_from_file To: Muthiah Annamalai [EMAIL PROTECTED] Cc: gtk-app-devel-list@gnome.org i sucessfully loaded a image using pixbufs. thanks to

RE: simple example of using gdk_pixbuf_new_from_file

2005-05-30 Thread Freddie Unpenstein
I sucessfully loaded a image using pixbufs, but now i face the difiiculty of loading multiple images in a window and those images are transparent one. so each must be visible. You mean all overlapping each other? You can only display a single flat image (animations not counted). So if

gtk clist append

2005-05-30 Thread srinivas
hi; i have a pbm, using fileslection widget i am selecting the file and i would like to append the same to the clist_widget. create_window_new2 is the window name, clist_sst_file_sel is the name of the clist. sst_file_sel = create_window_new2 (); clist_file_sel = lookup_widget

Re: Glade C code a bad thing? (was: root windows)

2005-05-30 Thread Gus Koppel
Maciej Katafiasz wrote: Unless by build of glade you mean autogenerated C code, which is bad, bad, bad thing to use. Use libglade, really. why it is bad? I use it and it works just fine and I don't have glade dependiencies. Because it makes it impossible to later rework UI without