From fred238 at free.fr Thu Jul 3 09:06:52 2008 From: fred238 at free.fr (fred238 at free.fr) Date: Thu, 03 Jul 2008 15:06:52 +0200 Subject: [Glade-users] Glade Utils Message-ID: <1215090412.486cceece686d@imp.free.fr> Hello, About the Glade Utils functions http://glade.gnome.org/docs/gladeui-glade-utils.html what header to include to use them ? Glade 3.4.5 Regards, Fred. From jmouriz at gmail.com Thu Jul 3 09:39:06 2008 From: jmouriz at gmail.com (Juan Manuel Mouriz) Date: Thu, 03 Jul 2008 10:39:06 -0300 Subject: [Glade-users] Glade Utils In-Reply-To: <1215090412.486cceece686d@imp.free.fr> References: <1215090412.486cceece686d@imp.free.fr> Message-ID: <1215092346.3043.5.camel@pituca.slowsoft.com.ar> El jue, 03-07-2008 a las 15:06 +0200, fred238 at free.fr escribi?: > About the Glade Utils functions > http://glade.gnome.org/docs/gladeui-glade-utils.html what header to include to > use them ? You may search the header as follow: find /usr/local/include/libgladeui-1.0 -name *.h -exec grep -l searched_func {} \; The header is glade-utils.h Juan Manuel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080703/3dd283f3/attachment.html From fred238 at free.fr Thu Jul 3 11:17:35 2008 From: fred238 at free.fr (fred238 at free.fr) Date: Thu, 03 Jul 2008 17:17:35 +0200 Subject: [Glade-users] Glade Utils In-Reply-To: <1215092346.3043.5.camel@pituca.slowsoft.com.ar> References: <1215090412.486cceece686d@imp.free.fr> <1215092346.3043.5.camel@pituca.slowsoft.com.ar> Message-ID: <1215098255.486ced8fc2971@imp.free.fr> Selon Juan Manuel Mouriz : > El jue, 03-07-2008 a las 15:06 +0200, fred238 at free.fr escribi??: > > > About the Glade Utils functions > > http://glade.gnome.org/docs/gladeui-glade-utils.html what header to include > to > > use them ? > > > You may search the header as follow: > > find /usr/local/include/libgladeui-1.0 -name *.h -exec grep -l > searched_func {} \; > > The header is glade-utils.h > > Juan Manuel > It works, thanks. From qa_tridang at hotmail.com Mon Jul 7 03:52:12 2008 From: qa_tridang at hotmail.com (Nguyen Khoa) Date: Mon, 7 Jul 2008 09:52:12 +0200 Subject: [Glade-users] Color Change in ComboBox In-Reply-To: Message-ID: Hello, I am new to Glade. For my project using Glade Interface Designer, I have a GtkComboBox and an "OK" GtkButton created by Glade. I'd like to change the text color of the selected item in the ComboBox when I click on the OK button. But I do not find something in Glade / Gtk that can do it intuitively. Have you got any suggestions about a possible solution ? Thank you and bests regards Vydaman -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080707/786afee6/attachment.html From vishudh at gmail.com Mon Jul 7 15:20:34 2008 From: vishudh at gmail.com (vishudh ps) Date: Tue, 8 Jul 2008 00:50:34 +0530 Subject: [Glade-users] how can I display an entire text file in Gtktext widget? Message-ID: I am new to glade and trying to create an editor in glade.So, I want to change the content of a Gtktext widget with a text file when a button is clicked.Both the text and button are children of diffrent windows. The problem is, I cannot access the text widget from the callback function of the button.what is the solution to get the text widget on "clicked" callback of the button? I tried with global variables, But make returns error: "gtk_text_insert: assertion 'GTK_IS_TEXT(text)' failed". Please help me to insert text in to the text widget. Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080708/9dcd2146/attachment.html From gromot at gmail.com Mon Jul 7 16:57:30 2008 From: gromot at gmail.com (Lukasz Gromotowicz) Date: Mon, 7 Jul 2008 21:57:30 +0100 Subject: [Glade-users] how can I display an entire text file in Gtktext widget? In-Reply-To: References: Message-ID: Hi, first of all read here: http://library.gnome.org/devel/gtk/2.6/GtkText.html It says the GtkText is deprecated... instead it use GtkTextView. Then having a pointer to GtkTextView use gtk_text_view_get_bufferto get its buffer. You must load whatever you want to display to this buffer. When you define the callback function you can add a pointer to any structure / object you want (last parameter of the callback). Pass a pointer to your textView. Regards, LUK 2008/7/7 vishudh ps : > I am new to glade and trying to create an editor in glade.So, I want to > change the content of a Gtktext widget with a text file when a button is > clicked.Both the text and button are children of diffrent windows. The > problem is, I cannot access the text widget from the callback function of > the button.what is the solution to get the text widget on "clicked" callback > of the button? I tried with global variables, But make returns error: > "gtk_text_insert: assertion 'GTK_IS_TEXT(text)' failed". > Please help me to insert text in to the text widget. Thanks in advance. > > _______________________________________________ > Glade-users maillist - Glade-users at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/glade-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080707/2705b44e/attachment.html From vishudh at gmail.com Tue Jul 8 03:50:49 2008 From: vishudh at gmail.com (vishudh ps) Date: Tue, 8 Jul 2008 13:20:49 +0530 Subject: [Glade-users] how can I display an entire text file in Gtktext widget? In-Reply-To: References: Message-ID: The second argument is "gpointer user_data". What change should I make to the second argument to get the pointer of textview, and where(only in callback.c, or anywere else needed)? On 7/8/08, Lukasz Gromotowicz wrote: > > Hi, > first of all read here: > http://library.gnome.org/devel/gtk/2.6/GtkText.html > It says the GtkText is deprecated... instead it use GtkTextView. Then > having a pointer to GtkTextView use gtk_text_view_get_bufferto get its buffer. You must load whatever you want to display to this > buffer. > > When you define the callback function you can add a pointer to any > structure / object you want (last parameter of the callback). Pass a pointer > to your textView. > > Regards, > LUK > > > > 2008/7/7 vishudh ps : > >> I am new to glade and trying to create an editor in glade.So, I want to >> change the content of a Gtktext widget with a text file when a button is >> clicked.Both the text and button are children of diffrent windows. The >> problem is, I cannot access the text widget from the callback function of >> the button.what is the solution to get the text widget on "clicked" callback >> of the button? I tried with global variables, But make returns error: >> "gtk_text_insert: assertion 'GTK_IS_TEXT(text)' failed". >> Please help me to insert text in to the text widget. Thanks in advance. >> >> _______________________________________________ >> Glade-users maillist - Glade-users at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/glade-users >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080708/47cead34/attachment.html From alexey.kurochkin at pathfinderlwd.com Tue Jul 8 08:30:52 2008 From: alexey.kurochkin at pathfinderlwd.com (Alexey Kurochkin) Date: Tue, 08 Jul 2008 07:30:52 -0500 Subject: [Glade-users] how can I display an entire text file in Gtktext widget? In-Reply-To: References: Message-ID: <1215520252.26728.24.camel@localhost.localdomain> On Tue, 2008-07-08 at 13:20 +0530, vishudh ps wrote: > The second argument is "gpointer user_data". What change should I > make to the second argument to get the pointer of textview, and > where(only in callback.c, or anywere else needed)? ?There are three options. 1. You can type your textview widget name in User data field for "clicked" signal of your button in glade. Then your user_data pointer will be pointer to the button, and the first argument will be pointer to the textview. It is ugly and not very useful, cause most likely you will need to access more than just textview widget in your callback. 2. You can use glade_xml_signal_connect_data() for each callback instead of just using glade_xml_signal_autoconnect(), and set your user_data to whatever you please (usually a structure containing relevant pointers). It is somewhat tedious, but it is the proper way. I use it for big projects. 3. Make everything you need to access global. It is perfectly fine for a small app. Just do not forget to initialize your globals with glade_xml_get_widget(). If you do not do this your globals are pointing nowhere which was likely your problem in the initial case. > > On 7/8/08, Lukasz Gromotowicz wrote: > Hi, > first of all read here: > http://library.gnome.org/devel/gtk/2.6/GtkText.html > It says the GtkText is deprecated... instead it use > GtkTextView. Then having a pointer to GtkTextView use > gtk_text_view_get_buffer to get its buffer. You must load > whatever you want to display to this buffer. > > When you define the callback function you can add a pointer to > any structure / object you want (last parameter of the > callback). Pass a pointer to your textView. > > Regards, > LUK > > > > 2008/7/7 vishudh ps : > I am new to glade and trying to create an editor in > glade.So, I want to change the content of a Gtktext > widget with a text file when a button is clicked.Both > the text and button are children of diffrent windows. > The problem is, I cannot access the text widget from > the callback function of the button.what is the > solution to get the text widget on "clicked" callback > of the button? I tried with global variables, But make > returns error: > "gtk_text_insert: assertion 'GTK_IS_TEXT(text)' > failed". > Please help me to insert text in to the text widget. > Thanks in advance. > > _______________________________________________ > Glade-users maillist - Glade-users at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/glade-users > > > > _______________________________________________ > Glade-users maillist - Glade-users at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/glade-users From vishudh at gmail.com Mon Jul 14 02:41:31 2008 From: vishudh at gmail.com (vishudh ps) Date: Mon, 14 Jul 2008 12:11:31 +0530 Subject: [Glade-users] Is there a grid view Message-ID: Hello, I am new to glade. I havn't seen a grid view tool ( like the one in Vb ) in the glade palette. Is there any tool available, which performs like grid tool? If not, what are the common methods used by glade designers for grid like display ? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080714/432d1db7/attachment-0001.html From alexey.kurochkin at pathfinderlwd.com Mon Jul 14 08:30:42 2008 From: alexey.kurochkin at pathfinderlwd.com (Alexey Kurochkin) Date: Mon, 14 Jul 2008 07:30:42 -0500 Subject: [Glade-users] Is there a grid view In-Reply-To: References: Message-ID: <1216038642.3236.2.camel@localhost.localdomain> I'm not familiar with vb, but it sounds like treeview. On Mon, 2008-07-14 at 12:11 +0530, vishudh ps wrote: > Hello, > I am new to glade. I havn't seen a grid view tool ( like the one in > Vb ) in the glade palette. Is there any tool available, which performs > like grid tool? If not, what are the common methods used by glade > designers for grid like display ? > _______________________________________________ > Glade-users maillist - Glade-users at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/glade-users From alexey.kurochkin at pathfinderlwd.com Mon Jul 14 11:53:07 2008 From: alexey.kurochkin at pathfinderlwd.com (Alexey Kurochkin) Date: Mon, 14 Jul 2008 10:53:07 -0500 Subject: [Glade-users] Is there a grid view In-Reply-To: <1216047763.21159.2.camel@mungo> References: <1216038642.3236.2.camel@localhost.localdomain> <1216047763.21159.2.camel@mungo> Message-ID: <1216050787.4615.5.camel@localhost.localdomain> On Mon, 2008-07-14 at 11:02 -0400, Mr. Shawn H. Corey wrote: > On Mon, 2008-07-14 at 07:30 -0500, Alexey Kurochkin wrote: > > I'm not familiar with vb, but it sounds like treeview. > > > > On Mon, 2008-07-14 at 12:11 +0530, vishudh ps wrote: > > > Hello, > > > I am new to glade. I havn't seen a grid view tool ( like the one in > > > Vb ) in the glade palette. Is there any tool available, which performs > > > like grid tool? If not, what are the common methods used by glade > > > designers for grid like display ? > > No, what he wants is the container 'layout' or 'fixed'. I almost never > use them so someone else has to give the tips and techniques on using > them. I just based my observation on the screenshot from http://www.vbdotnetheaven.com/UploadFile/mgold/GridViewComponent04222005072644AM/GridViewComponent.aspx As of fixed layout, you're right, it is of rather limited use. > Normally, I use 'Horizontal Box', 'Vertical Box', or 'Table'. > > From shawnhcorey at magma.ca Mon Jul 14 11:02:43 2008 From: shawnhcorey at magma.ca (Mr. Shawn H. Corey) Date: Mon, 14 Jul 2008 11:02:43 -0400 Subject: [Glade-users] Is there a grid view In-Reply-To: <1216038642.3236.2.camel@localhost.localdomain> References: <1216038642.3236.2.camel@localhost.localdomain> Message-ID: <1216047763.21159.2.camel@mungo> On Mon, 2008-07-14 at 07:30 -0500, Alexey Kurochkin wrote: > I'm not familiar with vb, but it sounds like treeview. > > On Mon, 2008-07-14 at 12:11 +0530, vishudh ps wrote: > > Hello, > > I am new to glade. I havn't seen a grid view tool ( like the one in > > Vb ) in the glade palette. Is there any tool available, which performs > > like grid tool? If not, what are the common methods used by glade > > designers for grid like display ? No, what he wants is the container 'layout' or 'fixed'. I almost never use them so someone else has to give the tips and techniques on using them. Normally, I use 'Horizontal Box', 'Vertical Box', or 'Table'. -- Just my 0.00000002 million dollars worth, Shawn http://www.magma.ca/~shawnhcorey/ Shangri La: 40,000 KM --> The map is not the territory, the dossier is not the person, the model is not reality, and the universe is indifferent to your theories. "Where there's duct tape...there's hope." From fred238 at free.fr Sat Jul 19 11:40:56 2008 From: fred238 at free.fr (fred238) Date: Sat, 19 Jul 2008 17:40:56 +0200 Subject: [Glade-users] Problem with Glade 3.5.2 Message-ID: <48820B08.70409@free.fr> Hi all, I just tried Glade 3.5.2 and I got some problems : While i run the program, I get : (sample:15788): Gtk-CRITICAL **: gtk_widget_show_all: assertion `GTK_IS_WIDGET (widget)' failed Is the gtkbuilder format is fully implemented in this version ? Here "sample.c" I used : #include int main(int argc, char **argv) { GtkBuilder *builder; GtkWidget *window; gtk_init(&argc, &argv); builder = gtk_builder_new(); gtk_builder_add_from_file(builder, "test-gtkbuilder.glade", NULL); window = GTK_WIDGET (gtk_builder_get_object (builder, "window1")); gtk_widget_show_all (window); gtk_builder_connect_signals (builder, NULL); gtk_main(); return 0; } Here "test-gtkbuilder.glade" I used : True label Regards, Fred From jmouriz at gmail.com Sat Jul 19 12:43:43 2008 From: jmouriz at gmail.com (Juan Manuel Mouriz) Date: Sat, 19 Jul 2008 13:43:43 -0300 Subject: [Glade-users] Problem with Glade 3.5.2 In-Reply-To: <48820B08.70409@free.fr> References: <48820B08.70409@free.fr> Message-ID: <1216485823.3608.36.camel@pituca.slowsoft.com.ar> ?The GtkBuilder is not fully implemented in glade yet, but your sample must be work without problems. Replace the sentence: ?gtk_builder_add_from_file(builder, "test-gtkbuilder.glade", NULL) With GError *error = NULL; ??gtk_builder_add_from_file(builder, "test-gtkbuilder.glade", NULL) if (error) g_error ("%s\n", error->message) To see if any error. On my Linux, your sample work well! El s?b, 19-07-2008 a las 17:40 +0200, fred238 escribi?: > Hi all, > > I just tried Glade 3.5.2 and I got some problems : > While i run the program, I get : (sample:15788): Gtk-CRITICAL **: gtk_widget_show_all: assertion `GTK_IS_WIDGET (widget)' failed > Is the gtkbuilder format is fully implemented in this version ? > > Here "sample.c" I used : > > #include > > > int main(int argc, char **argv) > { > GtkBuilder *builder; > GtkWidget *window; > > gtk_init(&argc, &argv); > builder = gtk_builder_new(); > gtk_builder_add_from_file(builder, "test-gtkbuilder.glade", NULL); > window = GTK_WIDGET (gtk_builder_get_object (builder, "window1")); > gtk_widget_show_all (window); > gtk_builder_connect_signals (builder, NULL); > gtk_main(); > > return 0; > } > > > Here "test-gtkbuilder.glade" I used : > > > > > > > > True > label > > > > > > > Regards, > > Fred > > _______________________________________________ > Glade-users maillist - Glade-users at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/glade-users From jmouriz at gmail.com Sat Jul 19 12:47:11 2008 From: jmouriz at gmail.com (Juan Manuel Mouriz) Date: Sat, 19 Jul 2008 13:47:11 -0300 Subject: [Glade-users] Glade to GtkBuilder Message-ID: <1216486031.3608.42.camel@pituca.slowsoft.com.ar> ?I write this fix-interface.pl script to fix some thinks in glade generated files and use with GtkBuilder: - Adjustments: Replaces the form value lower upper stepi pagei pages with an object GtkAdjustment. - respone_id property: Removes unsupported property. - text property (tex_view): text is not GtkTreeView property, is a GtkTextBuffer property. This script removes it but should convert into an object (TextBuffer), same as Adjustments (TODO). - label_item (frame): Replace with label to avoid GTK_BUILDER_WARN_INVALID_CHILD_TYPE. This only resolve partially some cases. -------------- next part -------------- A non-text attachment was scrubbed... Name: fix-interface.pl Type: application/x-perl Size: 1709 bytes Desc: not available Url : http://lists.ximian.com/pipermail/glade-users/attachments/20080719/d3fd5780/attachment.bin From fred238 at free.fr Sat Jul 19 13:08:57 2008 From: fred238 at free.fr (fred) Date: Sat, 19 Jul 2008 19:08:57 +0200 Subject: [Glade-users] Problem with Glade 3.5.2 In-Reply-To: <1216485823.3608.36.camel@pituca.slowsoft.com.ar> References: <48820B08.70409@free.fr> <1216485823.3608.36.camel@pituca.slowsoft.com.ar> Message-ID: <48821FA9.7030003@free.fr> Juan Manuel Mouriz a ?crit : > The GtkBuilder is not fully implemented in glade yet, but your sample > must be work without problems. > > Replace the sentence: > > ?gtk_builder_add_from_file(builder, "test-gtkbuilder.glade", NULL) > > With > > GError *error = NULL; > ??gtk_builder_add_from_file(builder, "test-gtkbuilder.glade", NULL) > > if (error) > g_error ("%s\n", error->message) > > To see if any error. On my Linux, your sample work well! > > El s?b, 19-07-2008 a las 17:40 +0200, fred238 escribi?: >> Hi all, >> >> I just tried Glade 3.5.2 and I got some problems : >> While i run the program, I get : (sample:15788): Gtk-CRITICAL **: gtk_widget_show_all: assertion `GTK_IS_WIDGET (widget)' failed >> Is the gtkbuilder format is fully implemented in this version ? >> >> Here "sample.c" I used : >> >> #include >> >> >> int main(int argc, char **argv) >> { >> GtkBuilder *builder; >> GtkWidget *window; >> >> gtk_init(&argc, &argv); >> builder = gtk_builder_new(); >> gtk_builder_add_from_file(builder, "test-gtkbuilder.glade", NULL); >> window = GTK_WIDGET (gtk_builder_get_object (builder, "window1")); >> gtk_widget_show_all (window); >> gtk_builder_connect_signals (builder, NULL); >> gtk_main(); >> >> return 0; >> } >> >> >> Here "test-gtkbuilder.glade" I used : >> >> >> >> >> >> >> >> True >> label >> >> >> >> >> >> >> Regards, >> >> Fred >> >> _______________________________________________ >> Glade-users maillist - Glade-users at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/glade-users > > > Thanks for the reply, I get back the error argument and while i run the app, I got : ** ERROR **: Balise non g?r?e : ? requires ? aborting... Abandon Which mean : The "requires" tag is not supported. From jmouriz at gmail.com Sat Jul 19 13:21:37 2008 From: jmouriz at gmail.com (Juan Manuel Mouriz) Date: Sat, 19 Jul 2008 14:21:37 -0300 Subject: [Glade-users] Problem with Glade 3.5.2 In-Reply-To: <48821FA9.7030003@free.fr> References: <48820B08.70409@free.fr> <1216485823.3608.36.camel@pituca.slowsoft.com.ar> <48821FA9.7030003@free.fr> Message-ID: <1216488097.3608.47.camel@pituca.slowsoft.com.ar> ?Your sample work for me because the GTK 2.13 handle requires tag. ?The fix-interface.pl avoid this too (TO BE REMOVED). El s?b, 19-07-2008 a las 19:08 +0200, fred escribi?: > Juan Manuel Mouriz a ?crit : > > The GtkBuilder is not fully implemented in glade yet, but your sample > > must be work without problems. > > > > Replace the sentence: > > > > ?gtk_builder_add_from_file(builder, "test-gtkbuilder.glade", NULL) > > > > With > > > > GError *error = NULL; > > ??gtk_builder_add_from_file(builder, "test-gtkbuilder.glade", NULL) > > > > if (error) > > g_error ("%s\n", error->message) > > > > To see if any error. On my Linux, your sample work well! > > > > El s?b, 19-07-2008 a las 17:40 +0200, fred238 escribi?: > >> Hi all, > >> > >> I just tried Glade 3.5.2 and I got some problems : > >> While i run the program, I get : (sample:15788): Gtk-CRITICAL **: gtk_widget_show_all: assertion `GTK_IS_WIDGET (widget)' failed > >> Is the gtkbuilder format is fully implemented in this version ? > >> > >> Here "sample.c" I used : > >> > >> #include > >> > >> > >> int main(int argc, char **argv) > >> { > >> GtkBuilder *builder; > >> GtkWidget *window; > >> > >> gtk_init(&argc, &argv); > >> builder = gtk_builder_new(); > >> gtk_builder_add_from_file(builder, "test-gtkbuilder.glade", NULL); > >> window = GTK_WIDGET (gtk_builder_get_object (builder, "window1")); > >> gtk_widget_show_all (window); > >> gtk_builder_connect_signals (builder, NULL); > >> gtk_main(); > >> > >> return 0; > >> } > >> > >> > >> Here "test-gtkbuilder.glade" I used : > >> > >> > >> > >> > >> > >> > >> > >> True > >> label > >> > >> > >> > >> > >> > >> > >> Regards, > >> > >> Fred > >> > >> _______________________________________________ > >> Glade-users maillist - Glade-users at lists.ximian.com > >> http://lists.ximian.com/mailman/listinfo/glade-users > > > > > > > > Thanks for the reply, > > I get back the error argument and while i run the app, I got : > > ** ERROR **: Balise non g?r?e : ? requires ? > > aborting... > Abandon > > > Which mean : The "requires" tag is not supported. > > > > > _______________________________________________ > Glade-users maillist - Glade-users at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/glade-users From mslinn at mslinn.com Sun Jul 20 13:56:18 2008 From: mslinn at mslinn.com (Michael Slinn) Date: Sun, 20 Jul 2008 10:56:18 -0700 Subject: [Glade-users] Glade with GtkWrapBox Message-ID: <48837C42.3030204@mslinn.com> Would someone please show an example of how to use GtkWrapBox with Glade-3? It would be helpful to see the toolbuttons managed by the GtkWrapBox in the Glade GUI designer. GtkWrapBox came from the Gimp project and is used in Nautilus. http://nautilus.sourcearchive.com/documentation/2.14.3-11/dir_3e9cf7138a467f73f07101fdef8c554b.html From tristan.van.berkom at gmail.com Mon Jul 21 02:39:12 2008 From: tristan.van.berkom at gmail.com (Tristan Van Berkom) Date: Mon, 21 Jul 2008 02:39:12 -0400 Subject: [Glade-users] Glade with GtkWrapBox In-Reply-To: <48837C42.3030204@mslinn.com> References: <48837C42.3030204@mslinn.com> Message-ID: <560259cb0807202339j79b71a37y7b087d6b829f801b@mail.gmail.com> On Sun, Jul 20, 2008 at 1:56 PM, Michael Slinn wrote: > Would someone please show an example of how to use GtkWrapBox with > Glade-3? It would be helpful to see the toolbuttons managed by the > GtkWrapBox in the Glade GUI designer. GtkWrapBox came from the Gimp > project and is used in Nautilus. Hi, I completely rewrote the documentation this year on integrating your custom widgets into glade http://glade.gnome.org/docs/index.html I'd suggest that if GtkWrapBox is distributed as a library, why not distribute a little glade catalog with the dev files ? Cheers, -Tristan From balakkvj at dcs.shef.ac.uk Tue Jul 22 12:59:34 2008 From: balakkvj at dcs.shef.ac.uk (BalaKrishna Kolluru) Date: Tue, 22 Jul 2008 17:59:34 +0100 Subject: [Glade-users] Glade on Embedded devices Message-ID: Hello People, I am using glade (glademm actually) for the user interface on an embedded device. Well it is an intel board with embedded Debian. It works quite well but I am experiencing extremely high latency times. Somewhere in the order of 6--8 seconds to open a new window while the dialogs are very quick. Do any of you have any idea as to what can be slowing the interface? A few details are given below ================= Processor: Inter PXA 70 with 256 MB ram Application: C++, Xerces27, glademm Nature of application: Main window with a few buttons each of which opens a new window upon click. Extra information: I also play a sound when a button is clicked. For example, "You have selected option 2." These audio messages are wave files recorded at 8 khz and usually last upto 2 seconds. I am using pixmaps (xpm files) for images on buttons and typically there are about 6-12 images per screen. Thanks in advance, Regards, B -- BalaKrishna Kolluru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080722/cb8f8164/attachment.html From tristan.van.berkom at gmail.com Tue Jul 22 15:46:30 2008 From: tristan.van.berkom at gmail.com (Tristan Van Berkom) Date: Tue, 22 Jul 2008 15:46:30 -0400 Subject: [Glade-users] Glade on Embedded devices In-Reply-To: References: Message-ID: <560259cb0807221246h50c62c38se8b1250633532e53@mail.gmail.com> On Tue, Jul 22, 2008 at 12:59 PM, BalaKrishna Kolluru wrote: > Hello People, > I am using glade (glademm actually) for the user > interface on an embedded device. > Well it is an intel board with embedded Debian. It works quite well but I am > experiencing extremely high latency times. > Somewhere in the order of 6--8 seconds to open a new window while the > dialogs are very quick. > Do any of you have any idea as to what can be slowing the interface? Im tempted to point at the graphics you are loading onto your widgets into the interface... what are you using ? custom widgets that load thier graphics from the disk ? the "pixmap" theme engine ? If the whole thing isnt too heavy, you might even consider loading all the graphics into a portion of that 256MB of yours and mlocking it into memory and make sure you dont ever swap out ;-) Anyway, in a situation like this there are alot of variables, you are probably already profiling your application to find the exact function/system calls that are taking a long time... so I'll leave you to that. Note: I doubt that the libglade processing plays a major role here, so long as you are not wasting memory with unfreed GladeXML * objects, just as well - embedded developers have been known to rewrite libglade into a binary parser, so its a little of a bottle neck. Cheers, -Tristan From damonregister at bellsouth.net Tue Jul 22 18:16:54 2008 From: damonregister at bellsouth.net (Damon Register) Date: Tue, 22 Jul 2008 18:16:54 -0400 Subject: [Glade-users] Glade 3.5.2 released :-S In-Reply-To: <560259cb0804091355k7400db91kc24a66e5874de168@mail.gmail.com> References: <560259cb0804091355k7400db91kc24a66e5874de168@mail.gmail.com> Message-ID: <48865C56.50503@bellsouth.net> Tristan Van Berkom wrote: > Yeah its one of those embaressing last minute bugfix releases ;-) is that why it was such a low profile release? :-) I read the recent thread "Problem with Glade 3.5.2" and I thought it was strange that they were talking about a version I had not seen. I checked this list and found your post from April. Is there a reason why this news is not included at http://glade.gnome.org/ ? Why is the last news item "Dec 18 2007 Glade 3.4.1 released" ? Damon Register From tristan.van.berkom at gmail.com Wed Jul 23 00:20:41 2008 From: tristan.van.berkom at gmail.com (Tristan Van Berkom) Date: Wed, 23 Jul 2008 00:20:41 -0400 Subject: [Glade-users] Glade 3.5.2 released :-S In-Reply-To: <48865C56.50503@bellsouth.net> References: <560259cb0804091355k7400db91kc24a66e5874de168@mail.gmail.com> <48865C56.50503@bellsouth.net> Message-ID: <560259cb0807222120o18bec373u1855cd08b13e1d2b@mail.gmail.com> On Tue, Jul 22, 2008 at 6:16 PM, Damon Register wrote: > Tristan Van Berkom wrote: >> Yeah its one of those embaressing last minute bugfix releases ;-) > is that why it was such a low profile release? :-) > I read the recent thread "Problem with Glade 3.5.2" and I thought it > was strange that they were talking about a version I had not seen. I > checked this list and found your post from April. Is there a reason > why this news is not included at http://glade.gnome.org/ ? Why is > the last news item "Dec 18 2007 Glade 3.4.1 released" ? We were hoping someone would take care of that website, hopefully in a way that we dont have to painfully manually publish something on it every release (I was thinking something more standard gnomey like the anjuta webpage but with a lot less "stuff"). Anyway your much more than welcome to help fix the web page, its the glade-web module in gnome svn btw. Cheers, -Tristan From balakkvj at dcs.shef.ac.uk Wed Jul 23 06:06:33 2008 From: balakkvj at dcs.shef.ac.uk (BalaKrishna Kolluru) Date: Wed, 23 Jul 2008 11:06:33 +0100 Subject: [Glade-users] Glade on Embedded devices In-Reply-To: <560259cb0807221246h50c62c38se8b1250633532e53@mail.gmail.com> References: <560259cb0807221246h50c62c38se8b1250633532e53@mail.gmail.com> Message-ID: 2008/7/22 Tristan Van Berkom : > On Tue, Jul 22, 2008 at 12:59 PM, BalaKrishna Kolluru > wrote: > > Hello People, > > I am using glade (glademm actually) for the user > > interface on an embedded device. > > Well it is an intel board with embedded Debian. It works quite well but I > am > > experiencing extremely high latency times. > > Somewhere in the order of 6--8 seconds to open a new window while the > > dialogs are very quick. > > Do any of you have any idea as to what can be slowing the interface? > > If the whole thing isnt too heavy, you might even consider loading all the > graphics into a portion of that 256MB of yours and mlocking it into > memory and make sure you dont ever swap out ;-) > > I guess mlock is doing the trick! Things have picked up quite a bit! Guess it takes 6 seconds to load the application and then it is lightening quick. In fact, I am having to sync it with the 2 second audio file . Thanks a lot Tristan!! > Cheers, > -Tristan > -- BalaKrishna Kolluru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080723/ee287f3f/attachment-0001.html From myh at live.com Tue Jul 29 01:16:37 2008 From: myh at live.com (Meng-Yuan Huang) Date: Tue, 29 Jul 2008 13:16:37 +0800 Subject: [Glade-users] GtkMessageDialog Doesn't Work Message-ID: Hi, all: My development environment of GTK+ is Glade/GTK+ Dev 2.12.8 & Visual C++ 6.0. I can create GUI by glade and build it by Visual C++ 6.0. GtkFileChooserDialog, GtkWindow, GtkButton, ... can work normally by my test but GtkMessageDialog. GtkButton in GtkMessageDialog didn't appear. This is my screen shot: http://www.pixnet.net/photo/zxvc/97696785 This is my main C program: ~~~~~~~~~~~~~~~~~~~~~~~~~~ #include #include GladeXML *xml; int main(int argc, char *argv[]) { GtkWidget *gw; gtk_init(&argc, &argv); /* load the interface */ xml = glade_xml_new("test.glade", NULL, NULL); /* connect the signals in the interface */ glade_xml_signal_autoconnect(xml); gw = glade_xml_get_widget(xml, "messagedialog1"); gtk_widget_show(gw); /* start the event loop */ gtk_main(); return 0; } ~~~~~~~~~~~~~~~~~~~~~~~~~~ This is my test.glade file. It just has a GtkMessageDialog and two GtkButton: ~~~~~~~~~~~~~~~~~~~~~~~~~~ 5 False GTK_WIN_POS_CENTER_ON_PARENT GDK_WINDOW_TYPE_HINT_DIALOG True False True 2 True GTK_BUTTONBOX_END True True True button 0 True True True button 0 1 False GTK_PACK_END ~~~~~~~~~~~~~~~~~~~~~~~~~~ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080729/efa3996d/attachment.html From alexey.kurochkin at pathfinderlwd.com Tue Jul 29 08:32:38 2008 From: alexey.kurochkin at pathfinderlwd.com (Alexey Kurochkin) Date: Tue, 29 Jul 2008 07:32:38 -0500 Subject: [Glade-users] GtkMessageDialog Doesn't Work In-Reply-To: References: Message-ID: <1217334758.32115.8.camel@localhost.localdomain> As a matter of fact this file crashes Glade 3.4.4. You should file a bug report. Meanwhile as workaround I suggest you either use plain dialog instead of message dialog, or create a message dialog on the fly in your app with gtk_message_dialog_new. On Tue, 2008-07-29 at 13:16 +0800, Meng-Yuan Huang wrote: > Hi, all: > > My development environment of GTK+ is Glade/GTK+ Dev 2.12.8 & Visual C > ++ 6.0. > I can create GUI by glade and build it by Visual C++ 6.0. > GtkFileChooserDialog, GtkWindow, GtkButton, ... can work normally by > my test but GtkMessageDialog. > GtkButton in GtkMessageDialog didn't appear. This is my screen shot: > http://www.pixnet.net/photo/zxvc/97696785 > > This is my main C program: > ~~~~~~~~~~~~~~~~~~~~~~~~~~ > #include > #include > > > GladeXML *xml; > > int main(int argc, char *argv[]) { > GtkWidget *gw; > > gtk_init(&argc, &argv); > > /* load the interface */ > xml = glade_xml_new("test.glade", NULL, NULL); > > /* connect the signals in the interface */ > glade_xml_signal_autoconnect(xml); > > gw = glade_xml_get_widget(xml, "messagedialog1"); > gtk_widget_show(gw); > > /* start the event loop */ > gtk_main(); > > return 0; > } > ~~~~~~~~~~~~~~~~~~~~~~~~~~ > > This is my test.glade file. It just has a GtkMessageDialog and two > GtkButton: > ~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > > > 5 > False > name="window_position">GTK_WIN_POS_CENTER_ON_PARENT > GDK_WINDOW_TYPE_HINT_DIALOG > True > False > > > > True > 2 > > > True > GTK_BUTTONBOX_END > > > True > True > True > translatable="yes">button > 0 > > > > > True > True > True > translatable="yes">button > 0 > > > 1 > > > > > False > GTK_PACK_END > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~ > _______________________________________________ > Glade-users maillist - Glade-users at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/glade-users From roberthuff at rcn.com Tue Jul 29 19:15:33 2008 From: roberthuff at rcn.com (Robert Huff) Date: Tue, 29 Jul 2008 19:15:33 -0400 Subject: [Glade-users] problem with gtk_builder_add_from_file Message-ID: <18575.42133.106278.140914@jerusalem.litteratus.org> Hello: I've /just/ started using Glade (and GTK, for that matter) and am missing clue here. Running Glade 3.4.5, xml file appended, the following code: GtkTextBuffer *display_buffer, *display_buffer_position; GtkTextIter *iter = NULL; GtkWidget *display_ptr; extern int errno; int main(argc,argv) int argc; char *argv[]; { gint i; GtkBuilder *builder; GtkWidget *window; GladeXML *xml; extern void clear_disp_buff(); extern GtkTextIter *iter; // IMPORTANT - leave this before any Gtk/Glade calls gtk_init (&argc, &argv); // puts("\nmain:: 0.0"); builder = gtk_builder_new (); puts("\nmain:: 0.1"); i = gtk_builder_add_from_file (builder, "ui.xml", NULL); if (!i) { puts("\nMain:: gtk_builder failed"); } puts("\nmain:: 0.2"); window = GTK_WIDGET (gtk_builder_get_object (builder, "root_window")); puts("\nmain:: 0"); produces: main:: 0.0 main:: 0.1 (ui:18101): GLib-GObject-CRITICAL **: g_value_type_compatible: assertion `G_TYPE_IS_VALUE (src_type)' failed (ui:18101): Gtk-WARNING **: gtkliststore.c:608: Unable to convert from (null) to gchararray (ui:18101): GLib-GObject-CRITICAL **: g_value_unset: assertion `G_IS_VALUE (value)' failed main:: 0.2 main:: 0 1) is there a debug tool/setting which will give a better idea of what's going on? 2) if not, what have I done wrong? I adapted this code from Miccah Carrick's (excellent but much too short) tutorial. (Not blaiming, just identifying.) Respectfully, Robert Huff **************** ui.xml **************** FOO Bar grill File _File gtk-new New gtk-open Open gtk-save Save gtk-save-as save_as gtk-quit program_exit Print _Print Prin _Edit gtk-cut imagemenuitem6 gtk-copy imagemenuitem7 gtk-paste imagemenuitem8 gtk-delete imagemenuitem9 List _View list_all All list_select Select Insert _Insert insert_single Single insert_from_file From file Delete _Delete Update _Update update_single Single update_from_file From file Help _Help gtk-about imagemenuitem10 River City management UI GTK_WIN_POS_CENTER 640 480 True True True False True True 2 GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_ETCHED_IN True True False 1 True 2 False 2 True 150 True 3 model1 0 True True True True gtk-ok True True True True gtk-cancel True 1 1