Re: Getting a nultiple selection from a CList
Hello Neil, Here is how I'm doing it (I have a Selection Extended CList) GList *pxGList= NULL; gint32 iColumn; pxGList = GTK_CLIST(lstTemplate)->selection; pxGList = g_list_first(pxGList); while (pxGList != NULL) { gtk_clist_set_text(GTK_CLIST(lstTemplate), GPOINTER_TO_INT(pxGList->data), iColumn, "Hello"); pxGList = g_list_next(pxGList); } Best regards, --- Jean-Christophe Berthon - Original Message - From: "Neil Hodge" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 27, 2002 7:23 PM Subject: Getting a nultiple selection from a CList > All: > > I can't find any documentation regarding how to get the results from a multiple > selection in a CList. Any help would be much appreciated. Thanks. > > Neil Hodge > > > __ > Do You Yahoo!? > Yahoo! Movies - coverage of the 74th Academy Awards® > http://movies.yahoo.com/ > ___ > gtk-list mailing list > [EMAIL PROTECTED] > http://mail.gnome.org/mailman/listinfo/gtk-list ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
newbi: Problems to Link Gtk on Windows98
Hello, i try to compile and linking on win98 with minigw (i installed Bloodshed Dev-C++ 4.0) and gtk 2.0 the hello world programm. #include int main( int argc, char *argv[] ) { GtkWidget *window; gtk_init (&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_show (window); gtk_main (); return 0; } If i try: gcc test.c -o test.exe `pkg-config --cflags --libs gtk+-win32-2.0` It doesn't work, because windoof or gcc can't start pkg-config. So I make a batchfile with the output filepath for pkg-config --cflags gtk+-win32-2.0 and pkg-config --libs gtk+-win32-2.0 My Batchfile is: gcc test.c -o test.exe -IE:/GTK/include/gtk-2.0 -IE:/GTK/lib/gtk-2.0/include -IE:/GTK/include/atk-1.0 -IE:/GTK/include/pango-1.0 -IE:/GTK/include/glib-2.0 -IE:/GTK/lib/glib-2.0/include -LE:/GTK/lib --library gtk-win32-2.0.lib --library gdk-win32-2.0.lib --library atk-1.0.lib --library gdk_pixbuf-2.0.lib --library m.lib --library pangowin32-1.0.lib --library gdi32.lib --library pango-1.0.lib --library gobject-2.0.lib --library gmodule-2.0.lib --library glib-2.0.lib --library intl.lib --library iconv.lib So compiling works, but not linking with this error-mesage: C:\WINDOWS\TEMP\cc19Tdgb.o(.text+0x1b):test.c: undefined reference to `gtk_init_ abi_check' C:\WINDOWS\TEMP\cc19Tdgb.o(.text+0x28):test.c: undefined reference to `gtk_windo w_new' C:\WINDOWS\TEMP\cc19Tdgb.o(.text+0x3c):test.c: undefined reference to `gtk_widge t_show' C:\WINDOWS\TEMP\cc19Tdgb.o(.text+0x44):test.c: undefined reference to `gtk_main' Can anybody help me. Thank you ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
How convert a xpixel to rgb ?
How convert a xpixel to rgb ?. Thanks. -- Gonzalo Montesdeoca Zamora Santa Brigida Canarias -- ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Want slider/scrollbar AND box to enter value in by hand if de sired - how do this?
Christian Seberino wrote: > Thanks! I saw your jpeg and it is pretty similar to what > I am trying to do. I noticed you don't have the value > above your sliders. How does user know what value > he is getting when he uses your sliders??? Hi, the text in the entry changes as you drag the slider. > but there > is no widget that has ALL the nice features. For example, > your sliders do not have arrows at the far ends of > each side :-) I don't like the arrows, so I'm not worried about this. Plus scrollbars and scales are different widgets which users will expect to use for different things. They look pretty similar with the default gtk theme (except for the arrows and the notch on the scale), but in some themes they are quite a bit different. Using the scale widget for "drag this to set a value" input makes the interface more consistent. Here's my app with the metal theme: http://cima.ng-london.org.uk/~john/snap.jpg as you can see in the image window, scrollbars and scales do not look much alike. John == Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk/exhibitions/cuyp/ ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: newbi: Problems to Link Gtk on Windows98
The docs I read said that in order to use the precompiled gtk from Lillqvist's site you must use Microsoft's Visual C++, and that certainly worked for me. At 10:41 AM 3/28/2002 +0100, Boris Fiedler wrote: >Hello, > >i try to compile and linking on win98 with minigw (i installed >Bloodshed Dev-C++ 4.0) and gtk 2.0 the hello world programm. > >#include >int main( int argc, > char *argv[] ) >{ >GtkWidget *window; > >gtk_init (&argc, &argv); > >window = gtk_window_new (GTK_WINDOW_TOPLEVEL); >gtk_widget_show (window); > >gtk_main (); > >return 0; >} > >If i try: gcc test.c -o test.exe `pkg-config --cflags --libs >gtk+-win32-2.0` >It doesn't work, because windoof or gcc can't start pkg-config. >So I make a batchfile with the output filepath for pkg-config --cflags >gtk+-win32-2.0 and pkg-config --libs gtk+-win32-2.0 > >My Batchfile is: >gcc test.c -o test.exe -IE:/GTK/include/gtk-2.0 >-IE:/GTK/lib/gtk-2.0/include -IE:/GTK/include/atk-1.0 >-IE:/GTK/include/pango-1.0 -IE:/GTK/include/glib-2.0 >-IE:/GTK/lib/glib-2.0/include -LE:/GTK/lib --library gtk-win32-2.0.lib >--library gdk-win32-2.0.lib --library atk-1.0.lib --library >gdk_pixbuf-2.0.lib --library m.lib --library pangowin32-1.0.lib >--library gdi32.lib --library pango-1.0.lib --library gobject-2.0.lib >--library gmodule-2.0.lib --library glib-2.0.lib --library intl.lib >--library iconv.lib > >So compiling works, but not linking with this error-mesage: >C:\WINDOWS\TEMP\cc19Tdgb.o(.text+0x1b):test.c: undefined reference to >`gtk_init_ >abi_check' >C:\WINDOWS\TEMP\cc19Tdgb.o(.text+0x28):test.c: undefined reference to >`gtk_windo >w_new' >C:\WINDOWS\TEMP\cc19Tdgb.o(.text+0x3c):test.c: undefined reference to >`gtk_widge >t_show' >C:\WINDOWS\TEMP\cc19Tdgb.o(.text+0x44):test.c: undefined reference to >`gtk_main' > >Can anybody help me. >Thank you >___ >gtk-list mailing list >[EMAIL PROTECTED] >http://mail.gnome.org/mailman/listinfo/gtk-list -- Philip J. Bunce, Software Consultant -- MIPS Assembly, Embedded Systems, PMON, UNIX, & C -- Ph: 831-659-5684 Fax: 501-325-6812 http://www.carmel.com ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Toolbars
Hi folks! i am a newbie to this list as well as gtk programming. i have writtena small application which has a toolbar. is it possible to keep the toolbar docked at a fixed position ie i want to prevent the user from moving the toolbar?? have a nice day rgds Punit [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.yahoo.com/ ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: How center a small button horizontally like in this picture....
I want to do something similar, and I've tried to follow the suggestions put forth in this thread, but to no avail. Objective: To vertically center a label in an hbox in a vbox (or in any other arrangement of widgets that would produce this pattern) It's easy to control the horizontal position of the label, shifting it right or center, but I don't seem to have any control over its vertical position; it always appears at the top of its container. I've tried using a vbox in the hbox, and using gtk_misc_set_alignment; I've tried using an alignment widget in the hbox or in the vbox in the hbox; I've tried a table. I'm stumped, and yet it seems so easy. vbox: - | | | | | | | |<-- hbox containing two togglebuttons and a label | X | Y | |Label A | | | | | | | | | | - | | | | | | | |<-- ditto | X | Y | |Label B | | | | | | | | | | - | | | | | | | |<-- ditto | X | Y | |Label C | | | | | | | | | | - I'll be grateful for any help anyone can offer. Debby --- Here's the code I've been playing with to test it out; it's borrowed from the scrolled window example in gtk1.2. /* varpanelA.c */ #include #define false 0 #define true 1 void destroy( GtkWidget *widget, gpointer data ) { gtk_main_quit(); } int main( int argc, char *argv[] ) { static GtkWidget *window; GtkWidget *swin, *hbox, *vbox, *vb; GtkWidget *button, *align, *label; gchar *buffer; int j; gtk_init (&argc, &argv); /* Create a dialog window */ window = gtk_dialog_new (); gtk_signal_connect (GTK_OBJECT (window), "destroy", (GtkSignalFunc) destroy, NULL); gtk_window_set_title (GTK_WINDOW (window), "GtkScrolledWindow example"); gtk_container_set_border_width (GTK_CONTAINER (window), 0); gtk_widget_set_usize(window, 300, 300); /* create a scrolled window. */ swin = gtk_scrolled_window_new (NULL, NULL); gtk_container_set_border_width (GTK_CONTAINER (swin), 10); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swin), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(window)->vbox), swin, TRUE, TRUE, 0); vbox = gtk_vbox_new (true, 2); gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (swin), vbox); /* create a grid of toggle buttons */ for (j = 0; j < 10; j++) { hbox = gtk_hbox_new (false, 2); gtk_box_pack_start (GTK_BOX (vbox), hbox, true, true, 0); button = gtk_toggle_button_new_with_label (" X "); gtk_box_pack_start (GTK_BOX (hbox), button, false, false, 2); button = gtk_toggle_button_new_with_label (" Y "); gtk_box_pack_start (GTK_BOX (hbox), button, false, false, 2); buffer = g_strdup_printf ("variable %d\n", j); label = gtk_label_new (buffer); /*gtk_misc_set_alignment (GTK_MISC(label), 0, .5);*/ g_free (buffer); align = gtk_alignment_new (0, 1.0, 0, 0); gtk_box_pack_start (GTK_BOX (hbox), align, 0, 1, 0); gtk_container_add (GTK_CONTAINER (align), label); } /* Add a "close" button to the bottom of the dialog */ button = gtk_button_new_with_label ("close"); gtk_signal_connect_object (GTK_OBJECT (button), "clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT (window)); gtk_box_pack_start (GTK_BOX (GTK_DIALOG (window)->action_area), button, TRUE, TRUE, 0); gtk_widget_show_all (window); gtk_main(); return(0); } ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Anyone know of a Graphical Timeline Widget?
Hello, Does anyone know of a configurable timeline widget? I'm looking for something that would graphically depict a timeline of events that conceptually resembles the following: - | | | +Group 1| | |+-Task 1 ---___ | | |+-Task 2 -- | | | | | +Group 2| | |+-Task 3 ---___ | | |+-Task 4 -- | | | | | +Group 3| | +-Task 5 ---___ | | +-Task 6 -- | | | - Time (microseconds) Preferably, the list of groups and tasks would be a collapsible tree. Regards, Brad ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: How center a small button horizontally like in this picture....
Debby, I think the problem is that you have a "\n" at the end of your label: > buffer = g_strdup_printf ("variable %d\n", j); Thus, in your attempts to align the label, you're attempting to align two lines of text instead of one. I modified your code such that there was no "\n" and there was no alignment object (see below) and it seems to work okay here. Please let me know if it doesn't work for you. Brad /* varpanelA.c */ #include #define false 0 #define true 1 void destroy( GtkWidget *widget, gpointer data ) { gtk_main_quit(); } int main( int argc, char *argv[] ) { static GtkWidget *window; GtkWidget *swin, *hbox, *vbox, *vb; GtkWidget *button, *align, *label; gchar *buffer; int j; gtk_init (&argc, &argv); /* Create a dialog window */ window = gtk_dialog_new (); gtk_signal_connect (GTK_OBJECT (window), "destroy", (GtkSignalFunc) destroy, NULL); gtk_window_set_title (GTK_WINDOW (window), "GtkScrolledWindow example"); gtk_container_set_border_width (GTK_CONTAINER (window), 0); gtk_widget_set_usize(window, 300, 300); /* create a scrolled window. */ swin = gtk_scrolled_window_new (NULL, NULL); gtk_container_set_border_width (GTK_CONTAINER (swin), 10); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swin), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(window)->vbox), swin, TRUE, TRUE, 0); vbox = gtk_vbox_new (true, 2); gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (swin), vbox); /* create a grid of toggle buttons */ for (j = 0; j < 10; j++) { hbox = gtk_hbox_new (false, 2); gtk_box_pack_start (GTK_BOX (vbox), hbox, true, true, 0); button = gtk_toggle_button_new_with_label (" X "); gtk_box_pack_start (GTK_BOX (hbox), button, false, false, 2); button = gtk_toggle_button_new_with_label (" Y "); gtk_box_pack_start (GTK_BOX (hbox), button, false, false, 2); buffer = g_strdup_printf ("variable %d", j); label = gtk_label_new (buffer); /*gtk_misc_set_alignment (GTK_MISC(label), 0, .5);*/ g_free (buffer); /* align = gtk_alignment_new (0, 0.0, 0, 0); */ /* gtk_box_pack_start (GTK_BOX (hbox), align, 0, 1, 0); gtk_container_add (GTK_CONTAINER (align), label); */ gtk_box_pack_start (GTK_BOX (hbox), label, 0, 1, 0); } /* Add a "close" button to the bottom of the dialog */ button = gtk_button_new_with_label ("close"); gtk_signal_connect_object (GTK_OBJECT (button), "clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT (window)); gtk_box_pack_start (GTK_BOX (GTK_DIALOG (window)->action_area), button, TRUE, TRUE, 0); gtk_widget_show_all (window); gtk_main(); return(0); } ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: How center a small button horizontally like in this picture....
I know GtkAlignment was great for centering a button vertically and horizontally. Maybe labels are more tricky. Why don't you put a drawing area there and then you can center your text in the drawing area with gdk_draw_string??? Chris On Thu, Mar 28, 2002 at 02:07:26PM -0500, Deborah Swayne wrote: > I want to do something similar, and I've tried to follow the > suggestions put forth in this thread, but to no avail. > > Objective: To vertically center a label in an hbox in a vbox (or > in any other arrangement of widgets that would produce this pattern) > > It's easy to control the horizontal position of the label, shifting > it right or center, but I don't seem to have any control over its > vertical position; it always appears at the top of its container. > I've tried using a vbox in the hbox, and using > gtk_misc_set_alignment; I've tried using an alignment widget in the > hbox or in the vbox in the hbox; I've tried a table. I'm stumped, > and yet it seems so easy. > > vbox: > - > | | | | > | | | |<-- hbox containing two togglebuttons and a label > | X | Y | |Label A | | > | | | | > | | | | > - > | | | | > | | | |<-- ditto > | X | Y | |Label B | | > | | | | > | | | | > - > | | | | > | | | |<-- ditto > | X | Y | |Label C | | > | | | | > | | | | > - > > I'll be grateful for any help anyone can offer. > Debby > > --- > > Here's the code I've been playing with to test it out; it's > borrowed from the scrolled window example in gtk1.2. > > > /* varpanelA.c */ > #include > > #define false 0 > #define true 1 > > void destroy( GtkWidget *widget, gpointer data ) > { > gtk_main_quit(); > } > > int main( int argc, char *argv[] ) > { > static GtkWidget *window; > GtkWidget *swin, *hbox, *vbox, *vb; > GtkWidget *button, *align, *label; > gchar *buffer; > int j; > > gtk_init (&argc, &argv); > > /* Create a dialog window */ > window = gtk_dialog_new (); > gtk_signal_connect (GTK_OBJECT (window), "destroy", > (GtkSignalFunc) destroy, NULL); > gtk_window_set_title (GTK_WINDOW (window), "GtkScrolledWindow example"); > gtk_container_set_border_width (GTK_CONTAINER (window), 0); > gtk_widget_set_usize(window, 300, 300); > > /* create a scrolled window. */ > swin = gtk_scrolled_window_new (NULL, NULL); > > gtk_container_set_border_width (GTK_CONTAINER (swin), 10); > gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swin), > GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS); > gtk_box_pack_start (GTK_BOX (GTK_DIALOG(window)->vbox), swin, > TRUE, TRUE, 0); > > vbox = gtk_vbox_new (true, 2); > gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (swin), vbox); > > /* create a grid of toggle buttons */ > for (j = 0; j < 10; j++) { > hbox = gtk_hbox_new (false, 2); > gtk_box_pack_start (GTK_BOX (vbox), hbox, true, true, 0); > > button = gtk_toggle_button_new_with_label (" X "); > gtk_box_pack_start (GTK_BOX (hbox), button, false, false, 2); > button = gtk_toggle_button_new_with_label (" Y "); > gtk_box_pack_start (GTK_BOX (hbox), button, false, false, 2); > > buffer = g_strdup_printf ("variable %d\n", j); > label = gtk_label_new (buffer); > /*gtk_misc_set_alignment (GTK_MISC(label), 0, .5);*/ > g_free (buffer); > > align = gtk_alignment_new (0, 1.0, 0, 0); > gtk_box_pack_start (GTK_BOX (hbox), align, 0, 1, 0); > gtk_container_add (GTK_CONTAINER (align), label); >} > >/* Add a "close" button to the bottom of the dialog */ >button = gtk_button_new_with_label ("close"); >gtk_signal_connect_object (GTK_OBJECT (button), "clicked", > (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT (window)); >gtk_box_pack_start (GTK_BOX (GTK_DIALOG (window)->action_area), > button, TRUE, TRUE, 0); > >gtk_widget_show_all (window); >gtk_main(); >return(0); > } > ___ > gtk-list mailing list > [EMAIL PROTECTED] > http://mail.gnome.org/mailman/listinfo/gtk-list -- === | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax)| | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || [EMAIL PROTECTED] | === ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Want slider/scrollbar AND box to enter value in by hand if de sired - how do this?
John Thanks, I think your way is the best. I didn't know you could make the value appear in the GtkEntry widget and update it with regards to the slider/scrollbar movements. Can you please send me smallest code snippet that showes name of slider/scrollbar thing you used and how you update value in GtkEntry box and read it, etc.??? By the way, What happens when user types a value in GtkEntry widget outside range of the slider/scrollbar??? Thanks, Chris === | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax)| | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || [EMAIL PROTECTED] | === On Thu, Mar 28, 2002 at 03:05:09PM -, [EMAIL PROTECTED] wrote: > Christian Seberino wrote: > > Thanks! I saw your jpeg and it is pretty similar to what > > I am trying to do. I noticed you don't have the value > > above your sliders. How does user know what value > > he is getting when he uses your sliders??? > > Hi, the text in the entry changes as you drag the slider. > > > but there > > is no widget that has ALL the nice features. For example, > > your sliders do not have arrows at the far ends of > > each side > > :-) I don't like the arrows, so I'm not worried about this. > > Plus scrollbars and scales are different widgets which users will expect > to use for different things. They look pretty similar with the default > gtk theme (except for the arrows and the notch on the scale), but in > some themes they are quite a bit different. Using the scale widget for > "drag this to set a value" input makes the interface more consistent. > > Here's my app with the metal theme: > > http://cima.ng-london.org.uk/~john/snap.jpg > > as you can see in the image window, scrollbars and scales do not look > much alike. > > John > > > > == > Aelbert Cuyp 13 February - 12 May 2002 > > For information and tickets: > http://www.nationalgallery.org.uk/exhibitions/cuyp/ -- === | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax)| | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || [EMAIL PROTECTED] | === ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Writing a new widget - gtk_type_unique has been deprecated
Hello, I'm going through the tutorial on how to create a new widget. The tutorial indicates that every new widget needs to have a _get_type() function (the tutorial function name is tictactoe_get_type()) (http://www.gtk.org/tutorial/sec-creatingacompositewidget.html#AEN2136). In the tutorial, this function calls gtk_type_unique(). In an attempt to understand exactly what tictactoe_get_type() is supposed to do, I looked up gtk_type_unique() in the reference manual. I found that not only is this function deprecated but the entire GtkTypeClass, which is "the base structure for all GTK+ types" has been deprecated (http://developer.gnome.org/doc/API/2.0/gtk/gtk-types.html#GTK-TYPE-INIT)! The reference manual, to the best of my knowledge, did not indicate what should be used instead. My question is, therefore, what has taken the place of the GtkTypeClass and associated types & functions? Does anyone have an example of a widget they created that uses the new types & functions? Brad ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Getting a nultiple selection from a CList
Jean: Thanks for the information. Now I have one more question related to this. I have activated GTK_SELECTION_MULTIPLE on the CList in question. However, when I try to actually do a multiple selection (mouse + shift or ctrl), nothing happens. Is this behavior not built in? If not, then how can I create it??? Thanks. Neil On Thu, 2002-03-28 at 02:30, Jean-Christophe Berthon wrote: > Hello Neil, > > Here is how I'm doing it (I have a Selection Extended CList) > > GList *pxGList= NULL; > gint32 iColumn; > > > pxGList = GTK_CLIST(lstTemplate)->selection; > > pxGList = g_list_first(pxGList); > while (pxGList != NULL) > { > gtk_clist_set_text(GTK_CLIST(lstTemplate), GPOINTER_TO_INT(pxGList->data), > iColumn, "Hello"); > > pxGList = g_list_next(pxGList); > } > > > Best regards, > --- > Jean-Christophe Berthon > > > > - Original Message - > From: "Neil Hodge" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, March 27, 2002 7:23 PM > Subject: Getting a nultiple selection from a CList > > > > All: > > > > I can't find any documentation regarding how to get the results from a > multiple > > selection in a CList. Any help would be much appreciated. Thanks. > > > > Neil Hodge > > > > > > __ > > Do You Yahoo!? > > Yahoo! Movies - coverage of the 74th Academy Awards® > > http://movies.yahoo.com/ > > ___ > > gtk-list mailing list > > [EMAIL PROTECTED] > > http://mail.gnome.org/mailman/listinfo/gtk-list -- Neil Hodge [EMAIL PROTECTED] ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Writing a new widget - gtk_type_unique has been deprecated
Hi, "Bradley F. Hartman" <[EMAIL PROTECTED]> writes: > I'm going through the tutorial on how to create a new widget. The tutorial > indicates that every new widget needs to have a _get_type() function > (the tutorial function name is tictactoe_get_type()) > (http://www.gtk.org/tutorial/sec-creatingacompositewidget.html#AEN2136). > > In the tutorial, this function calls gtk_type_unique(). In an attempt to > understand exactly what tictactoe_get_type() is supposed to do, I looked up > gtk_type_unique() in the reference manual. I found that not only is this > function deprecated but the entire GtkTypeClass, which is "the base > structure for all GTK+ types" has been deprecated > (http://developer.gnome.org/doc/API/2.0/gtk/gtk-types.html#GTK-TYPE-INIT)! > The reference manual, to the best of my knowledge, did not indicate what > should be used instead. > > My question is, therefore, what has taken the place of the GtkTypeClass and > associated types & functions? Does anyone have an example of a widget > they created that uses the new types & functions? Take a look at the GObject API reference: http://developer.gnome.org/doc/API/2.0/gobject/ While most GtkWidgets are still derived from GtkObject, the base of the object and type system is not part of GTK+ anymore, but has been factored out into its own library. The equivalent of gtk_type_unique() should be g_type_register_static(). Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
FW: How convert a xpixel to rgb ?
You could try GIMP,that is good. kason -Original Message- From: GONZALOMZ [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 10:01 PM To: [EMAIL PROTECTED] Subject: How convert a xpixel to rgb ? How convert a xpixel to rgb ?. Thanks. -- Gonzalo Montesdeoca Zamora Santa Brigida Canarias -- ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
GTK+-2.0: no correct exit in multithreaded application
Hello, my configuration is: Linux Mandrake 8.1 gtk+-directfb-2.0 (with framebuffer) console multithreaded application, which calls GTK in some thread (from subroutine, not main). GTK starts and runs normally, but after "gtk_main_quit()" I can't see my console again. It hangs. All I can see is freezed screen with my graphical interface :(. ( There is no problem, when I run "gtk_main()" from main() module. ) Thank you Michael Gavrosh ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list