GLib-GObject-WARNING **: invalid cast from `GtkLabel' to `GtkFixed' while generating a dynamic GUI

2005-01-10 Thread anne isac
Hi I'm new to Gtk. I'm trying to create a screen dynamically. The screen is to have frame with labels and comboboxes the number of witch is only known at run time. My GtkFrame has a GtkFixed widget on to witch I place the GtkLabel and GtkComboBox. when I execute the program some of the labels

Re: GLib-GObject-WARNING **: invalid cast from `GtkLabel' to `GtkFixed' while generating a dynamic GUI

2005-01-10 Thread David Necas (Yeti)
On Mon, Jan 10, 2005 at 05:29:07AM -0500, anne isac wrote: I'm new to Gtk. I'm trying to create a screen dynamically. The screen is to have frame with labels and comboboxes the number of witch is only known at run time. First of all, you should use a GtkTable. Widgets placed at fixed

Re: GLib-GObject-WARNING **: invalid cast from `GtkLabel' to `GtkFixed' while generating a dynamic GUI

2005-01-10 Thread anne isac
Here is the code for dynamicFrame[]. for (d = 0, group = ppd-groups; d ppd-num_groups; d++, group++) { int k = 5; dynamicFrame[d] = gtk_frame_new (NULL); dynamicFixed[d] = gtk_fixed_new (); gtk_widget_show (dynamicFixed[d]); dynamicFrameLabel[d] = gtk_label_new (group-name); gtk_widget_show

Re: gtk_text_buffer_insert

2005-01-10 Thread Archit Baweja
Hi You can do it like this. gchar * stuff = g_strdup_printf(%d, i); gtk_text_buffer_insert(buffer, iter, stuff, -1); g_free(stuff); HTH Archit P.S. Now that you mention it, I guess it would be nice to have something like gtk_text_buffer_insert_formatted() (I guess you were thinking the same

Re: GTK+ 2.6.1 released

2005-01-10 Thread Archit Baweja
Hi Ok this is more of a personal 'itch'. But it would be really nice to mention that there is Ruby and Ruby bindings for Gtk+ and friends for RAD (with good English Documentation). As you would have probably guessed, I use ruby too. And I just feel that giving some attention to ruby, since its

Re: GTK+ 2.6.1 released

2005-01-10 Thread Jeff Morgan
On Sun, 09 Jan 2005 14:09:52 +0100, Andreas Rottmann [EMAIL PROTECTED] wrote: Archit Baweja [EMAIL PROTECTED] writes: Hi Ok this is more of a personal 'itch'. But it would be really nice to mention that there is Ruby and Ruby bindings for Gtk+ and friends for RAD (with good English

Re: GTK+ 2.6.1 released

2005-01-10 Thread muppet
On Jan 9, 2005, at 11:17 AM, Jeff Morgan wrote: On Sun, 09 Jan 2005 14:09:52 +0100, Andreas Rottmann [EMAIL PROTECTED] wrote: Archit Baweja [EMAIL PROTECTED] writes: Ok this is more of a personal 'itch'. But it would be really nice to mention that there is Ruby and Ruby bindings for Gtk+ and

Re: GTK+ 2.6.1 released

2005-01-10 Thread Archit Baweja
I was afraid of this. Everyone's itches out in the open :-D Anyway, mentioning all the bindings would be a good idea. Archit On Sun, 2005-01-09 at 11:21 -0500, muppet wrote: On Jan 9, 2005, at 11:17 AM, Jeff Morgan wrote: On Sun, 09 Jan 2005 14:09:52 +0100, Andreas Rottmann [EMAIL

Re: gtk_text_buffer_insert

2005-01-10 Thread shakti
Hi, You can change the integer to string and can use it. str = g_strdup_printf (%d, i); And then use the string variable str. Then free the str variable. Thanks, Shakti Aaron Yang wrote: hi everyone, how do I do this: int i; printf(%d, i); in a textview: gtk_text_buffer_insert(buffer, iter, %d,

Re: Which signal is emitted when the arrow in GtkComboBoxEntry() is pressed?

2005-01-10 Thread Matthias Clasen
On Mon, 2005-01-10 at 01:17 -0600, Greg Breland wrote: Did a bug ever get filed on this? I can't seem to find it if there was. I have a pretty good usage scenario that is quite common with database applications. The combo control is the most common control used with DB apps and

Re: Limiting gtk app to single instance,

2005-01-10 Thread Matthias Clasen
On Mon, 2005-01-10 at 04:13 +, Phillip Phirrip wrote: Hello All, Is there a way to limit the number of instances of a gtk application to one only. If an instance of this application is already running then can I bring it to focus. I tried to read from the process table and find if

Re: GLib-GObject-WARNING **: invalid cast from `GtkLabel' to `GtkFixed' while generating a dynamic GUI

2005-01-10 Thread David Necas (Yeti)
Please don't top-post. On Mon, Jan 10, 2005 at 07:03:04AM -0500, anne isac wrote: Here is the code for dynamicFrame[]. If the arrays are not messed up (i.e., they are allocated with correct sizes and you don't write after their ends), dynamicFrame[] should be OK. But I see another

Re: GTK+ 2.6.1 released

2005-01-10 Thread Valdis . Kletnieks
On Sun, 09 Jan 2005 14:37:21 EST, Archit Baweja said: I was afraid of this. Everyone's itches out in the open :-D At least nobody mentioned Snobol, Jovial, RPG-II, or Intercal. ;) pgp6yuMJeilIf.pgp Description: PGP signature ___ gtk-list mailing list

there already appears to be an xserver running on display :0

2005-01-10 Thread yonatan maman
Hi, I cant login into x (using init level 5). I get this msg when rebooting the machine. the only way I found to login into X is to execute : - killall X - kdm gdm is my default desktop manager. the problems had started after upgrading into gtk2+ including the following librarys: gtk

Re: there already appears to be an xserver running on display :0

2005-01-10 Thread Valdis . Kletnieks
On Tue, 11 Jan 2005 00:42:07 +0200, yonatan maman said: gdm is my default desktop manager. the problems had started after upgrading into gtk2+ including the following librarys: gtk 2.4.13 Let me guess - you removed the GTK1 libraries when you upgraded, and that broke gdm which was still