From chrisjturner at gmail.com Wed Jan 2 17:57:01 2008 From: chrisjturner at gmail.com (chris!) Date: Wed, 2 Jan 2008 14:57:01 -0800 (PST) Subject: [Glade-users] images in gnome canvas Message-ID: <14572023.post@talk.nabble.com> Hi, I am trying to load an image and then manipulate it with the use of the gnome canvas but unfortunately i've found it is making my entire program quite unresponsive and slow. I load the pixbuf form a file and then draw it on the canvas in the main loop; map = gdk_pixbuf_new_from_file_at_size ("../pixmaps/map_brisbane.png", 900, 900, NULL); canvMap = gnome_canvas_item_new(gnome_canvas_root(gnomecanvas), GNOME_TYPE_CANVAS_PIXBUF, "anchor",GTK_ANCHOR_CENTER, "height-in-pixels",0, "width-in-pixels",0, "x-in-pixels",0, "y-in-pixels",0, "pixbuf",map, "x", (double)300, "y", (double)300, "height",(double)600, "width", (double)600, NULL); I use an idle_callback function to move the image around and i simply change the pixels per unit to zoom the entire canvas; double xvel; //x velocity double yvel; //y velocity double vel= gtk_range_get_value(lookup_widget(GTK_WIDGET(app1), "hscale1")); xvel = vel*sin(home_head*C_DEG2RAD); yvel = vel*cos(home_head*C_DEG2RAD); gnome_canvas_item_move(canvMap,xvel/20,yvel/20); The problem I am having is when the image is enlarged, when I decrease the size it seems to function normaly again. Also, without the image the program functions normally so i'm gussing it has something to do with rendering the pixbuf to the canvas but i'm not too sure what explicitly would be causing this problem weather it'd be the image itself or an inherent problem with the gnome canvas or simply me doing something completely wrong. any help would be greatly appreciated. Thanks, Chris -- View this message in context: http://www.nabble.com/images-in-gnome-canvas-tp14572023p14572023.html Sent from the Gnome - Glade - User mailing list archive at Nabble.com. From angelo.merlo at yahoo.com.br Sat Jan 5 06:29:03 2008 From: angelo.merlo at yahoo.com.br (Angelo Valentim Merlo) Date: Sat, 5 Jan 2008 03:29:03 -0800 (PST) Subject: [Glade-users] Menu Separator Message-ID: <464207.87216.qm@web38309.mail.mud.yahoo.com> Hi, i created a GUI with Galde3, but on menu "Arquivo" exist one submenu separator. On Glade i see the normal separator, but i run gladexml with Python i see a submenu separator with label "menuitem1". Please help me. Please sorry for my bad english!!! []'s "Amamos desejar mais do que amamos o objeto de nosso desejo." - (Nietzsche) Seja livre, use Linux. Linux User: 454473 Abra sua conta no Yahoo! Mail, o ?nico sem limite de espa?o para armazenamento! http://br.mail.yahoo.com/ From dashikugua at 126.com Thu Jan 10 07:06:50 2008 From: dashikugua at 126.com (dashikugua) Date: Thu, 10 Jan 2008 20:06:50 +0800 (CST) Subject: [Glade-users] problem with GtkEntry Message-ID: <12422859.1032831199966810250.JavaMail.coremail@bj126app80.126.com> Hi all: I need some information about the GtkEntry widget. I need the GtkEntry on the GUI which I am designing to receive only the numeric key of the keyboard, which means that when the GtkEntry is grabbing the input focus and I press down the alphabetic key such as "A", the Entry does not show the corresponding letter. But I do not konw how to realize this function. Any information is appreciated. Thanks:) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080110/4da48d24/attachment-0001.html From alexey.kurochkin at pathfinderlwd.com Thu Jan 10 08:43:44 2008 From: alexey.kurochkin at pathfinderlwd.com (Alexey Kurochkin) Date: Thu, 10 Jan 2008 07:43:44 -0600 Subject: [Glade-users] problem with GtkEntry In-Reply-To: <12422859.1032831199966810250.JavaMail.coremail@bj126app80.126.com> References: <12422859.1032831199966810250.JavaMail.coremail@bj126app80.126.com> Message-ID: <1199972624.2857.4.camel@localhost.localdomain> Connect a callback to a "key-press-event" and filter there everything outside GDK_0 to GDK_9 and GDK_KP_0 to GDK_KP_9 On Thu, 2008-01-10 at 20:06 +0800, dashikugua wrote: > > Hi all: > > I need some information about the GtkEntry widget. I need the > GtkEntry on the GUI which I am designing to receive only the numeric > key of the keyboard, which means that when the GtkEntry is grabbing > the input focus and I press down the alphabetic key such as "A", the > Entry does not show the corresponding letter. But I do not konw how to > realize this function. Any information is appreciated. > Thanks:) > > > _______________________________________________ > Glade-users maillist - Glade-users at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/glade-users From dashikugua at 126.com Fri Jan 11 08:23:55 2008 From: dashikugua at 126.com (dashikugua at 126.com) Date: Fri, 11 Jan 2008 21:23:55 +0800 (CST) Subject: [Glade-users] problem with GtkEntry In-Reply-To: <1199972624.2857.4.camel@localhost.localdomain> References: <1199972624.2857.4.camel@localhost.localdomain> <12422859.1032831199966810250.JavaMail.coremail@bj126app80.126.com> Message-ID: <27065260.503101200057835527.JavaMail.coremail@bj126app42.126.com> Sorry for my poor English:) Do you mean that I can connect a callback to the signal "key-press-event" of the GtkEntry and realize the function by writing the corresponding program in the callback funtion? Does the GtkEntry not have a property which could be set to realize the function? ??2008-01-10??"Alexey Kurochkin" ?????? Connect a callback to a "key-press-event" and filter there everything outside GDK_0 to GDK_9 and GDK_KP_0 to GDK_KP_9 On Thu, 2008-01-10 at 20:06 +0800, dashikugua wrote: > > Hi all: > > I need some information about the GtkEntry widget. I need the > GtkEntry on the GUI which I am designing to receive only the numeric > key of the keyboard, which means that when the GtkEntry is grabbing > the input focus and I press down the alphabetic key such as "A", the > Entry does not show the corresponding letter. But I do not konw how to > realize this function. Any information is appreciated. > Thanks:) > > > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080111/42f5faf8/attachment.html From tvb at gnome.org Fri Jan 11 08:58:03 2008 From: tvb at gnome.org (Tristan Van Berkom) Date: Fri, 11 Jan 2008 11:58:03 -0200 Subject: [Glade-users] problem with GtkEntry In-Reply-To: <27065260.503101200057835527.JavaMail.coremail@bj126app42.126.com> References: <12422859.1032831199966810250.JavaMail.coremail@bj126app80.126.com> <1199972624.2857.4.camel@localhost.localdomain> <27065260.503101200057835527.JavaMail.coremail@bj126app42.126.com> Message-ID: <560259cb0801110558n57ac69c0kb318e372b84577d6@mail.gmail.com> 2008/1/11 : > > Sorry for my poor English:) > Do you mean that I can connect a callback to the signal "key-press-event" > of the GtkEntry and realize the function by writing the corresponding > program in the callback funtion? > Here is the documentation http://library.gnome.org/devel/gtk/unstable/GtkWidget.html#GtkWidget-key-press-event If you handle key-press-event before GtkEntry handles it then you can decide that GtkEntry "aborts" the operation by returning TRUE. Cheers, -Tristan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080111/179b67b1/attachment.html From alexey.kurochkin at pathfinderlwd.com Mon Jan 14 08:53:47 2008 From: alexey.kurochkin at pathfinderlwd.com (Alexey Kurochkin) Date: Mon, 14 Jan 2008 07:53:47 -0600 Subject: [Glade-users] problem with GtkEntry In-Reply-To: <27065260.503101200057835527.JavaMail.coremail@bj126app42.126.com> References: <1199972624.2857.4.camel@localhost.localdomain> <12422859.1032831199966810250.JavaMail.coremail@bj126app80.126.com> <27065260.503101200057835527.JavaMail.coremail@bj126app42.126.com> Message-ID: <1200318827.2905.13.camel@localhost.localdomain> On Fri, 2008-01-11 at 21:23 +0800, dashikugua at 126.com wrote: > > > > Sorry for my poor English:) > Do you mean that I can connect a callback to the signal > "key-press-event" of the GtkEntry and realize the function by writing > the corresponding program in the callback funtion? Yes. > Does the GtkEntry not have a property which could be set to realize > the function? No. You can also try to catch "insert-text" signal if "key-press-event" somehow does not suite your needs. But in ideal case you should use GtkSpinButton instead of GtkEntry to enter numbers. It filters out everything but numbers. The only downside is that you have to specify the range of values (however it could be an advantage too). > > > ?2008-01-10?"Alexey Kurochkin" > ??? > Connect a callback to a "key-press-event" and filter there everything > outside GDK_0 to GDK_9 and GDK_KP_0 to GDK_KP_9 > > On Thu, 2008-01-10 at 20:06 +0800, dashikugua wrote: > > > > Hi all: > > > > I need some information about the GtkEntry widget. I need the > > GtkEntry on the GUI which I am designing to receive only the numeric > > key of the keyboard, which means that when the GtkEntry is grabbing > > the input focus and I press down the alphabetic key such as "A", the > > Entry does not show the corresponding letter. But I do not konw how to > > realize this function. Any information is appreciated. > > Thanks:) > > > > > > _______________________________________________ > > 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 > > > > ______________________________________________________________________ > ? ? ? ? ? ? ?? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? > ? 2 ? ? > _______________________________________________ > Glade-users maillist - Glade-users at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/glade-users From wubei83 at 163.com Tue Jan 15 02:27:14 2008 From: wubei83 at 163.com (wubei83) Date: Tue, 15 Jan 2008 15:27:14 +0800 (CST) Subject: [Glade-users] a question about image Message-ID: <28053911.279381200382034309.JavaMail.coremail@bj163app55.163.com> Hello, I need some information about the Image.I create a table and place my picture by photoshop in it ,my picture is sine wave ,but i need arrows to mark on this picture to tell user frequence ,amplitude,highlevel and so on ,at the same time i got a arrows by photoshop and try my best to place two picture together,i don't know whether this way is ok ,oh,by the way because memory is confined we hope few picture as possible as you can .But I do not konw a way to realize it . Any information is appreciated. Thanks very much ! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080115/5b863496/attachment.html From alexey.kurochkin at pathfinderlwd.com Tue Jan 15 13:14:44 2008 From: alexey.kurochkin at pathfinderlwd.com (Alexey Kurochkin) Date: Tue, 15 Jan 2008 12:14:44 -0600 Subject: [Glade-users] a question about image In-Reply-To: <28053911.279381200382034309.JavaMail.coremail@bj163app55.163.com> References: <28053911.279381200382034309.JavaMail.coremail@bj163app55.163.com> Message-ID: <1200420884.10198.11.camel@localhost.localdomain> Why "photoshop" a sine wave if you can draw it directly to the screen? Same for arrows. There is GtkDrawingArea and Cairo and nice example at http://gnomejournal.org/article/36/writing-a-widget-using-cairo-and-gtk28-part-2 along with sources and even makefile. On Tue, 2008-01-15 at 15:27 +0800, wubei83 wrote: > Hello, > > I need some information about the Image.I create a table and place > my picture by photoshop in it ,my picture is sine wave ,but i need > arrows to mark on this picture to tell user > frequence ,amplitude,highlevel and so on ,at the same time i got a > arrows by photoshop and try my best to place two picture together,i > don't know whether this way is ok ,oh,by the way because memory is > confined we hope few picture as possible as you can .But I do not > konw a way to realize it . Any information is appreciated. > Thanks very much ! > > > > > > > ______________________________________________________________________ > ? ? ? ? ? ? ?? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? > ? 2 ? ? > _______________________________________________ > Glade-users maillist - Glade-users at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/glade-users From wubei83 at 163.com Wed Jan 16 07:15:42 2008 From: wubei83 at 163.com (wubei83) Date: Wed, 16 Jan 2008 20:15:42 +0800 (CST) Subject: [Glade-users] a question about GtkImage Message-ID: <26100666.1734951200485742218.JavaMail.coremail@bj163app73.163.com> Hello, I need some information about GtkImage .In my application, I attach a GtkImage in the GtkTable which is attached in the top window. The program is as follows: GtkWidget *image; image = create_pixmap (image,"sine.png"); pix1 = gtk_image_get_pixbuf (GTK_IMAGE(image)); pix2 = gdk_pixbuf_scale_simple(pix1, 205, 82, GDK_INTERP_BILINEAR); gtk_image_set_from_pixbuf (GTK_IMAGE(image), pix2); g_object_unref (pix2); gtk_widget_show (image); gtk_table_attach (GTK_TABLE(table), image, 3, 16, 0, 8, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); Now, I want to realize the function that when I click the button, there will be a arrow displayed on the fixed pisition of the image. But I do not know how to do. Any information is appreciated. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080116/2103cd38/attachment-0001.html From tristan.van.berkom at gmail.com Wed Jan 16 08:27:17 2008 From: tristan.van.berkom at gmail.com (Tristan Van Berkom) Date: Wed, 16 Jan 2008 11:27:17 -0200 Subject: [Glade-users] a question about GtkImage In-Reply-To: <26100666.1734951200485742218.JavaMail.coremail@bj163app73.163.com> References: <26100666.1734951200485742218.JavaMail.coremail@bj163app73.163.com> Message-ID: <560259cb0801160527k3ce7899cw5b679f4e5ffeda27@mail.gmail.com> 2008/1/16 wubei83 : > Hello, > I need some information about GtkImage .In my application, I attach a > GtkImage in the GtkTable which is attached in the top window. The program > is as follows: > > GtkWidget *image; > image = create_pixmap (image,"sine.png"); > pix1 = gtk_image_get_pixbuf (GTK_IMAGE(image)); > pix2 = gdk_pixbuf_scale_simple(pix1, 205, 82, GDK_INTERP_BILINEAR); > gtk_image_set_from_pixbuf (GTK_IMAGE(image), pix2); > g_object_unref (pix2); > gtk_widget_show (image); > gtk_table_attach (GTK_TABLE(table), image, 3, 16, 0, 8, > (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), > (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); > > > Now, I want to realize the function that when I click the button, > there will be a arrow displayed on the fixed pisition of the image. But I do > not know how to do. > Any information is appreciated. Thanks. > Sure, you should probably be using a GtkDrawingArea widget, handle the expose event and start by blitting on the background image (possibly from a prefabricated GdkPixmap), and then using cairo drawing routines to draw shapes and lines onto your drawing area. I think the scribble example in the gtk+ sources should be a good start for you. Cheers, -Tristan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080116/1162f9cd/attachment.html From mschauer at fairfield.com Wed Jan 16 12:18:40 2008 From: mschauer at fairfield.com (Medora Schauer) Date: Wed, 16 Jan 2008 11:18:40 -0600 Subject: [Glade-users] glade3 and "Show widget tree" Message-ID: <1CA058827877644DAB54FB930FFA3B0502039180@lincoln.FAIRIND.FAIRFIELD.COM> I'm using glade 3.4.1. I used the "Show widget tree" function of glade2 a lot and can't find that function in glade3. Am I overlooking it? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080116/4a9a4a65/attachment-0001.html From mschauer at fairfield.com Wed Jan 16 12:23:11 2008 From: mschauer at fairfield.com (Medora Schauer) Date: Wed, 16 Jan 2008 11:23:11 -0600 Subject: [Glade-users] glade3 and "Show widget tree" Message-ID: <1CA058827877644DAB54FB930FFA3B0502039189@lincoln.FAIRIND.FAIRFIELD.COM> OK, I feel stupid. It's plain as day. Never mind... ________________________________ From: Medora Schauer Sent: Wednesday, January 16, 2008 11:19 AM To: 'glade-users at lists.ximian.com' Subject: glade3 and "Show widget tree" I'm using glade 3.4.1. I used the "Show widget tree" function of glade2 a lot and can't find that function in glade3. Am I overlooking it? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080116/7a54e5cd/attachment-0001.html From celt204 at sbcglobal.net Wed Jan 16 19:36:39 2008 From: celt204 at sbcglobal.net (jgreen) Date: Wed, 16 Jan 2008 18:36:39 -0600 Subject: [Glade-users] Missing window Message-ID: <478EA317.70502@sbcglobal.net> I am trying to learn Glade (3.4), and because of a dearth of information on Glade 3, I am having to rely on trial and error. I know Glade 3 just ouputs an xml file when you save a project, unlike the visual languages, but does that mean you only get one shot at building a window? When I save and close a project and come back to it later to continue working on it, I get everything but the window. The edit area is just a blank. I have looked through everything in Glade, but I have found no way to make the window visible again. Do I just have to fly blind from here on, or am I missing something? I would really appreciate some help. From mickhowe at bigpond.net.au Wed Jan 16 18:41:05 2008 From: mickhowe at bigpond.net.au (mick) Date: Thu, 17 Jan 2008 09:41:05 +1000 Subject: [Glade-users] how to dismiss a widget and be able to call it back again Message-ID: <200801170941.05804.mickhowe@bigpond.net.au> Using Glade 2 & gtk 2.12.0 I'm having trouble with dismissing my "help" and "about" windows in such a way that I can re-open them. I currently use on_help_destroy_event(...) { return FALSE; } and on_help_close_clicked(...) { gtk_widget_hide(help) } I also tried gtk_widget_destroy. I have searched the gtk reference but can't recognise what I need if I have actually seen it. Is there a more informative document somewhere and/or a kind soul willing to share the answer. /]/]ik BTW I apologise if cross posting is out of order From tristan.van.berkom at gmail.com Wed Jan 16 23:26:02 2008 From: tristan.van.berkom at gmail.com (Tristan Van Berkom) Date: Thu, 17 Jan 2008 02:26:02 -0200 Subject: [Glade-users] Missing window In-Reply-To: <478EA317.70502@sbcglobal.net> References: <478EA317.70502@sbcglobal.net> Message-ID: <560259cb0801162026u6e63752u3bebcb40d5a4dc0f@mail.gmail.com> On Jan 16, 2008 10:36 PM, jgreen wrote: > I am trying to learn Glade (3.4), and because of a dearth of information > on Glade 3, I am having to rely on trial and error. Okaaay... moving right along... > I know Glade 3 just ouputs an xml file when you save a project, unlike > the visual languages, but does that mean you only get one shot at > building a window? When I save and close a project and come back to it > later to continue working on it, I get everything but the window. The > edit area is just a blank. > > I have looked through everything in Glade, but I have found no way to > make the window visible again. Do I just have to fly blind from here on, > or am I missing something? I would really appreciate some help. Does it still not select and show the first window in a project when opening a file ? (please feel free to file a bug about that if there isnt one already). For the time being though, double clicking the window from the inspector will show the window in the workspace. Cheers, -Tristan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080117/a649b06f/attachment.html From kbulgrien at worldnet.att.net Thu Jan 17 07:59:40 2008 From: kbulgrien at worldnet.att.net (Kevin R. Bulgrien) Date: Thu, 17 Jan 2008 06:59:40 -0600 Subject: [Glade-users] Libglade save/restore root window size? Message-ID: <200801170659.40854.kbulgrien@worldnet.att.net> I asked some time back about this, but did not provide detail so the suggestion that the old glade code ported to libglade should "just work" was mostly confirmation to me that something odd is going on as it does not just work. In case it is relevant: lib64glade2.0_0-2.6.0-1mdv2007.0 glade2-2.12.1-3mdv2007.0 On Thursday 04 October 2007 00:28, Tristan wrote: > On Wed, 2007-10-03 at 22:34 -0500, Kevin R. Bulgrien wrote: > > Does anyone have an idea of how to have a libglade application save the > > window size and then use the save settings the next time the application > > runs? The user should not be prevented from being able to manually > > resize the window smaller or larger, but the user saved sizes should be > > recalled the next time the application is started. > > > > I converted a GTK+ glade project to libglade. The application used to > > be able to save and set the root window size using get_window_coord(), > > gtk_window_move(), and gtk_window_set_default_size (). > > > > Since converting the project to use libglade, restoring the window size > > on application start no longer works, but rather the default size > > defined in the glade file is always used. > > > > Perhaps this has something to do with the fact that the window is > > rendered upon loading the XML file, and this is now done prior to using > > the gtk_window_set_default_size() function. > your old code should work fine if left in place, just > use glade_xml_get_widget() at initialization time to store > pointers to the widgets involved, then restore the sizes > after loading the glade file. I wonder if window sizing must be done in a certain sequence... after such-and-such call, but before this-or-that call? I've tried moving the code that does this, but have not had success yet. I can confirm that the window sizing is saved properly, as I can code the saved sizes in the xml file directly to see that they match what I saved. The only issue is re-applying the sizing on the next run. Roughly, main.c contains in this sequence, and the main window is the only one I'm trying to size at start. This isn't all the code, but should be the relevant calls. gtk_set_locale() gtk_init() dialog_xml = glade_xml_new(dialog_xml_path, NULL, NULL); // Don't care about sizing this one. window_xml = glade_xml_new(window_xml_path, NULL, NULL); // This is the one to resize. window_root = glade_xml_get_widget(window_xml, "window_root"); g_signal_connect()s // main window connections. gtk_window_set_geometry_hints(GTK_WINDOW(window_root), window_root, ...) // (non-useful for libglade as the xml hints minimums?) Here the various panes, etc. of the window_root are initialized. The calls here make many various calls to do so, including some gtk_widget_show() for the window components. Then, finally: gtk_widget_show(window_root) load_window_positions(window_root) is what reads in the sizing. It uses xml_tree = glade_get_widget_tree(GTK_WIDGET (window_root)) and have I tried code like the following, but nothing tried has succeeded: widget = glade_xml_get_widget(xml_tree, buf); gtk_window_move(GTK_WINDOW(widget), x, y); gtk_window_set_default_size (GTK_WINDOW(widget), w, h); // gtk_widget_set_size_request (window_root, w, h); // gdk_window_move_resize(GDK_WINDOW(window_root), x, y, w, h); widget = glade_xml_get_widget(xml_tree, buf); if (widget) { gtk_paned_set_position(GTK_PANED(widget), atoi(cp)); } I have tried placing load window positions several places to no avail. Can anyone with more experience suggest an idea or two on what might possibly be going wrong, or suggestions on what greater detail to provide to enable said help? The original glade project worked fine with load_window_positions() immediately before the gtk_widget_show(window_root) call. Thanks again for any input. Kevin R. Bulgrien From alexey.kurochkin at pathfinderlwd.com Thu Jan 17 08:04:38 2008 From: alexey.kurochkin at pathfinderlwd.com (Alexey Kurochkin) Date: Thu, 17 Jan 2008 07:04:38 -0600 Subject: [Glade-users] how to dismiss a widget and be able to call it back again In-Reply-To: <200801170941.05804.mickhowe@bigpond.net.au> References: <200801170941.05804.mickhowe@bigpond.net.au> Message-ID: <1200575078.9477.4.camel@localhost.localdomain> Use "delete-event" instead of "destroy-event". On Thu, 2008-01-17 at 09:41 +1000, mick wrote: > Using Glade 2 & gtk 2.12.0 > > I'm having trouble with dismissing my "help" and "about" windows in such a way > that I can re-open them. > > I currently use > on_help_destroy_event(...) { return FALSE; } > and > on_help_close_clicked(...) { gtk_widget_hide(help) } > I also tried gtk_widget_destroy. > > I have searched the gtk reference but can't recognise what I need if I have > actually seen it. > > Is there a more informative document somewhere and/or a kind soul willing to > share the answer. > > /]/]ik > > BTW I apologise if cross posting is out of order > _______________________________________________ > Glade-users maillist - Glade-users at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/glade-users From mal at colm.me.uk Thu Jan 17 07:51:43 2008 From: mal at colm.me.uk (malcolm hinsley) Date: Thu, 17 Jan 2008 12:51:43 +0000 Subject: [Glade-users] A simple question from a glade newbie Message-ID: <478F4F5F.5060404@colm.me.uk> Hi. I installed glade 3.4.0 on Ubuntu (64 bit) using the synaptic package manager. It works fine except that if i open a file i've created earlier then i can see all the widgets in the properties windows (aka inspector and editor) but the design pane is just blank. Likewise if i start a new file and create more than one top level window then i can't ever get back to the first one. I can't find any controls or menu items to do this and i've tried quite a few combinations on CTRL ALT PGUP/DN etc etc. I've also tried toggling the 'visible' property. I would have thought that selecting a top level window in the inspector pane would cause it to be displayed. Is this a bug or have i missed something really obvious?? thanks -- malcolm h. -------------- Here's a sample file, one button inside a window - having created it i can't edit the layout. GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK True True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK button 0 From alexey.kurochkin at pathfinderlwd.com Thu Jan 17 08:18:21 2008 From: alexey.kurochkin at pathfinderlwd.com (Alexey Kurochkin) Date: Thu, 17 Jan 2008 07:18:21 -0600 Subject: [Glade-users] A simple question from a glade newbie In-Reply-To: <478F4F5F.5060404@colm.me.uk> References: <478F4F5F.5060404@colm.me.uk> Message-ID: <1200575901.9477.7.camel@localhost.localdomain> Have you tried double click? On Thu, 2008-01-17 at 12:51 +0000, malcolm hinsley wrote: > Hi. > > > I installed glade 3.4.0 on Ubuntu (64 bit) using the synaptic package > manager. > > It works fine except that if i open a file i've created earlier then i > can see all the widgets in the properties windows (aka inspector and > editor) but the design pane is just blank. > > Likewise if i start a new file and create more than one top level window > then i can't ever get back to the first one. > > I can't find any controls or menu items to do this and i've tried quite > a few combinations on CTRL ALT PGUP/DN etc etc. I've also tried toggling > the 'visible' property. > > I would have thought that selecting a top level window in the inspector > pane would cause it to be displayed. > > Is this a bug or have i missed something really obvious?? > > thanks > -- > malcolm h. > > > -------------- > Here's a sample file, one button inside a window - having created it i > can't edit the layout. > > > > > > > > GDK_POINTER_MOTION_MASK | > GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | > GDK_BUTTON_RELEASE_MASK > > > True > True > True > GDK_POINTER_MOTION_MASK | > GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | > GDK_BUTTON_RELEASE_MASK > button > 0 > > > > > > > _______________________________________________ > Glade-users maillist - Glade-users at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/glade-users From tvb at gnome.org Thu Jan 17 09:44:55 2008 From: tvb at gnome.org (Tristan Van Berkom) Date: Thu, 17 Jan 2008 12:44:55 -0200 Subject: [Glade-users] Libglade save/restore root window size? In-Reply-To: <200801170659.40854.kbulgrien@worldnet.att.net> References: <200801170659.40854.kbulgrien@worldnet.att.net> Message-ID: <560259cb0801170644i2a7e36aejb5d4613933c25577@mail.gmail.com> On Jan 17, 2008 10:59 AM, Kevin R. Bulgrien wrote: > I asked some time back about this, but did not provide detail so the > suggestion that the old glade code ported to libglade should "just work" > was mostly confirmation to me that something odd is going on as it does > not just work. > > In case it is relevant: > > lib64glade2.0_0-2.6.0-1mdv2007.0 > glade2-2.12.1-3mdv2007.0 > > On Thursday 04 October 2007 00:28, Tristan wrote: > > On Wed, 2007-10-03 at 22:34 -0500, Kevin R. Bulgrien wrote: > > > Does anyone have an idea of how to have a libglade application save > the > > > window size and then use the save settings the next time the > application > > > runs? The user should not be prevented from being able to manually > > > resize the window smaller or larger, but the user saved sizes should > be > > > recalled the next time the application is started. > > > > > > I converted a GTK+ glade project to libglade. The application used to > > > be able to save and set the root window size using get_window_coord(), > > > gtk_window_move(), and gtk_window_set_default_size (). > > > > > > Since converting the project to use libglade, restoring the window > size > > > on application start no longer works, but rather the default size > > > defined in the glade file is always used. > > > > > > Perhaps this has something to do with the fact that the window is > > > rendered upon loading the XML file, and this is now done prior to > using > > > the gtk_window_set_default_size() function. > > > your old code should work fine if left in place, just > > use glade_xml_get_widget() at initialization time to store > > pointers to the widgets involved, then restore the sizes > > after loading the glade file. > > I wonder if window sizing must be done in a certain sequence... after > such-and-such call, but before this-or-that call? I've tried moving > the code that does this, but have not had success yet. > > I can confirm that the window sizing is saved properly, as I can code the > saved sizes in the xml file directly to see that they match what I saved. > The only issue is re-applying the sizing on the next run. > > Roughly, main.c contains in this sequence, and the main window is the only > one > I'm trying to size at start. This isn't all the code, but should be the > relevant calls. > > gtk_set_locale() > gtk_init() > dialog_xml = glade_xml_new(dialog_xml_path, NULL, NULL); > // Don't care about sizing this one. > window_xml = glade_xml_new(window_xml_path, NULL, NULL); > // This is the one to resize. > window_root = glade_xml_get_widget(window_xml, "window_root"); > g_signal_connect()s > // main window connections. > gtk_window_set_geometry_hints(GTK_WINDOW(window_root), window_root, ...) > // (non-useful for libglade as the xml hints minimums?) > > Here the various panes, etc. of the window_root are initialized. > The calls here make many various calls to do so, including some > gtk_widget_show() for the window components. Then, finally: > > gtk_widget_show(window_root) > > load_window_positions(window_root) is what reads in the sizing. It uses > > xml_tree = glade_get_widget_tree(GTK_WIDGET (window_root)) > > and have I tried code like the following, but nothing tried has succeeded: > > widget = glade_xml_get_widget(xml_tree, buf); > gtk_window_move(GTK_WINDOW(widget), x, y); > gtk_window_set_default_size (GTK_WINDOW(widget), w, h); > // gtk_widget_set_size_request (window_root, w, h); > // gdk_window_move_resize(GDK_WINDOW(window_root), x, y, w, h); > > widget = glade_xml_get_widget(xml_tree, buf); > if (widget) { > gtk_paned_set_position(GTK_PANED(widget), atoi(cp)); > } > > I have tried placing load window positions several places to no avail. > Can anyone with more experience suggest an idea or two on what might > possibly be going wrong, or suggestions on what greater detail to > provide to enable said help? The original glade project worked fine > with load_window_positions() immediately before the > gtk_widget_show(window_root) call. At first sight I think that set_default_size() should be before the call to gtk_widget_show(), maybe even make sure that the window is created with visible property FALSE (so that it is not shown before setting the default size). Cheers, -Tristan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080117/b0536532/attachment-0001.html From kbulgrien at worldnet.att.net Fri Jan 18 08:26:09 2008 From: kbulgrien at worldnet.att.net (Kevin R. Bulgrien) Date: Fri, 18 Jan 2008 07:26:09 -0600 Subject: [Glade-users] Libglade save/restore root window size? In-Reply-To: <560259cb0801170644i2a7e36aejb5d4613933c25577@mail.gmail.com> References: <200801170659.40854.kbulgrien@worldnet.att.net> <560259cb0801170644i2a7e36aejb5d4613933c25577@mail.gmail.com> Message-ID: <200801180726.09567.kbulgrien@worldnet.att.net> > > > > I converted a GTK+ glade project to libglade. The application used > > > > to be able to save and set the root window size using > > > > get_window_coord(), gtk_window_move(), and > > > > gtk_window_set_default_size (). > > > > > > > > Since converting the project to use libglade, restoring the window > > > > size on application start no longer works, but rather the default > > > > size defined in the glade file is always used. > > > > > > > > Perhaps this has something to do with the fact that the window is > > > > rendered upon loading the XML file, and this is now done prior to > > > > using the gtk_window_set_default_size() function. > At first sight I think that set_default_size() should be before the > call to gtk_widget_show(), maybe even make sure that the window > is created with visible property FALSE (so that it is not shown before > setting the default size). > > Cheers, > -Tristan You're a genius. The root window needs to have the VISIBLE property set to "no". I seriously doubt I would have stumbled upon that. Ok, now I'm really, really happy... :-D Thank-you! Kevin From andre at if.uff.br Fri Jan 18 14:29:06 2008 From: andre at if.uff.br (andre at if.uff.br) Date: Fri, 18 Jan 2008 17:29:06 -0200 Subject: [Glade-users] How to get rid of command prompt in Win applications? Message-ID: <20080118172906.2jfhmp34g84o0gsc@webmail.if.uff.br> Hello, I have built my GTK+/Glade applications in Windows XP. Everything works fine, but when I run the .exe file in Windows the command prompt pops up behind the main application window. The application works but I wonder if it's possible to get rid of the prompt window since I'm not using it for anything. I've compiled the projects in WinXP with a gcc command line in Msys. Thanks, Andre. --------------------------------------------- Esta mensagem foi enviada via Webmail-IF-UFF. This message was sent using Webmail-IF-UFF. -- Esta mensagem foi verificada pelo sistema de antiv?rus e acredita-se estar livre de perigo. From ben at beckwithclan.com Fri Jan 18 15:37:36 2008 From: ben at beckwithclan.com (Ben Beckwith) Date: Fri, 18 Jan 2008 15:37:36 -0500 Subject: [Glade-users] How to get rid of command prompt in Win applications? In-Reply-To: <20080118172906.2jfhmp34g84o0gsc@webmail.if.uff.br> References: <20080118172906.2jfhmp34g84o0gsc@webmail.if.uff.br> Message-ID: If you have visual studio installed, you can use the "EDITBIN" utitlity to change the .exe's /SUBSYSTEM type. Look in the "VC\bin" directory in your visual studio dir. On Jan 18, 2008 2:29 PM, wrote: > Hello, > I have built my GTK+/Glade applications in Windows XP. Everything > works fine, > but when I run the .exe file in Windows the command prompt pops up behind > the > main application window. The application works but I wonder if it's > possible > to get rid of the prompt window since I'm not using it for anything. > I've compiled the projects in WinXP with a gcc command line in Msys. > Thanks, > Andre. > > > > --------------------------------------------- > Esta mensagem foi enviada via Webmail-IF-UFF. > This message was sent using Webmail-IF-UFF. > > > -- > Esta mensagem foi verificada pelo sistema de antiv?rus e > acredita-se estar livre de perigo. > > _______________________________________________ > 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/20080118/c7d214e6/attachment.html From nikos at hellug.gr Sun Jan 20 05:42:35 2008 From: nikos at hellug.gr (nikos roussos) Date: Sun, 20 Jan 2008 12:42:35 +0200 Subject: [Glade-users] tray app Message-ID: <20080120124235.77bdcffb@hellug.gr> i 'm trying to make an application that will only show up in the system tray. i have managed to make the app disappear from taskbar and i have also removed the window manager decorations (tyoe hint -> dock). i stil can't find out how to make it apear in the system tray. any ideas? From tristan.van.berkom at gmail.com Sun Jan 20 09:57:56 2008 From: tristan.van.berkom at gmail.com (Tristan Van Berkom) Date: Sun, 20 Jan 2008 12:57:56 -0200 Subject: [Glade-users] tray app In-Reply-To: <20080120124235.77bdcffb@hellug.gr> References: <20080120124235.77bdcffb@hellug.gr> Message-ID: <560259cb0801200657x38de8e28hdccfdea7114a5748@mail.gmail.com> On Jan 20, 2008 8:42 AM, nikos roussos wrote: > i 'm trying to make an application that will only show up in the system > tray. > > i have managed to make the app disappear from taskbar and i have also > removed > the window manager decorations (tyoe hint -> dock). > > i stil can't find out how to make it apear in the system tray. > > any ideas? For the record, you are better off asking gtk+ related questions on the gtk+ lists (gtk-app-devel-list at gnome.org), someone will surely know the answer there ;-) The system tray is the toolbar portion where you see icons of running apps such as gaim, skype etc ? in which case in your shoes I'd be looking through gaim source code, but I'll bet theres something in the general gtk+ documentation (I'm sure its some breed of ipc message to the window manager via the X server). Cheers, -Tristan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080120/00e1f1b2/attachment.html From chris.neale at utoronto.ca Sun Jan 20 16:12:13 2008 From: chris.neale at utoronto.ca (chris.neale at utoronto.ca) Date: Sun, 20 Jan 2008 16:12:13 -0500 Subject: [Glade-users] glade3.2.0 aboutBox does not have 'program name' option Message-ID: <20080120161213.xycmf7xv8o5cw80o@webmail.utoronto.ca> glade3.2.0 aboutBox does not have 'program name' option above 'program version' option in the 'general' tab. In order, I see Class, Name, Program version, ... I easily changed it by modifying the .glade file directly, but it would be nice to have such an option here. In fact I have seen tutorials in which such a button is present. I didn't search the archives before posting this since I can't figure out how to do that. I did search google, but it would be better if the archives of this list were searchable. Thanks, Chris. From alexey.kurochkin at pathfinderlwd.com Mon Jan 21 09:14:17 2008 From: alexey.kurochkin at pathfinderlwd.com (Alexey Kurochkin) Date: Mon, 21 Jan 2008 08:14:17 -0600 Subject: [Glade-users] tray app In-Reply-To: <20080120124235.77bdcffb@hellug.gr> References: <20080120124235.77bdcffb@hellug.gr> Message-ID: <1200924857.2813.2.camel@localhost.localdomain> Look at gtk_status_icon_* set of functions in GTK+ Reference Manual. On Sun, 2008-01-20 at 12:42 +0200, nikos roussos wrote: > i 'm trying to make an application that will only show up in the system tray. > > i have managed to make the app disappear from taskbar and i have also removed > the window manager decorations (tyoe hint -> dock). > > i stil can't find out how to make it apear in the system tray. > > any ideas? > _______________________________________________ > Glade-users maillist - Glade-users at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/glade-users From tvb at gnome.org Mon Jan 21 09:23:45 2008 From: tvb at gnome.org (Tristan Van Berkom) Date: Mon, 21 Jan 2008 12:23:45 -0200 Subject: [Glade-users] glade3.2.0 aboutBox does not have 'program name' option In-Reply-To: <20080120161213.xycmf7xv8o5cw80o@webmail.utoronto.ca> References: <20080120161213.xycmf7xv8o5cw80o@webmail.utoronto.ca> Message-ID: <560259cb0801210623y105f5ddbtf3730504cf8786e0@mail.gmail.com> On Jan 20, 2008 7:12 PM, wrote: > glade3.2.0 aboutBox does not have 'program name' option above 'program > version' option in the 'general' tab. In order, I see Class, Name, > Program version, ... > > I easily changed it by modifying the .glade file directly, but it > would be nice to have such an option here. In fact I have seen > tutorials in which such a button is present. > > I didn't search the archives before posting this since I can't figure > out how to do that. I did search google, but it would be better if the > archives of this list were searchable. I dont maintain the ximian lists but I know they are searchable by google, just pointing it out, not trying to argue with you ;-) There is a bug in gtk+ with the about dialog, its fixed in more recent versions - the bug is that the about dialog uses the name "name" for the "program-name" property (this name was changed before the next major release of gtk+), the "name" property already exists for the GtkWidget class and so there is a conflict (the Program Name field _does_ show up for me with 3.2.0 in the bottom of the Common tab, as a GtkWidgetClass property, but I have doubts about the safeness of using it because of the conflict I pointed out). more recent versions of glade & gtk+ will have this fixed, sorry for the inconvenience. Cheers, -Tristan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080121/ed5dc9c2/attachment-0001.html From peter.edwin.dennis at gmail.com Fri Jan 25 03:30:30 2008 From: peter.edwin.dennis at gmail.com (Peter E Dennis) Date: Fri, 25 Jan 2008 19:30:30 +1100 Subject: [Glade-users] Glade3 - Stock item buttons Message-ID: <5c5b302f0801250030i4dc77b1ai914478c7ef665581@mail.gmail.com> Hi All, I am trying to add some buttons to my GUI and there is a great feature in Glade2 where you can add a button, change the text to whatever you want but also include a stock item icon. Is this still possible in Glade3? Can someone tell me how to do it if it is? Many thanks, Peter. From peter.edwin.dennis at gmail.com Fri Jan 25 04:10:57 2008 From: peter.edwin.dennis at gmail.com (Peter E Dennis) Date: Fri, 25 Jan 2008 20:10:57 +1100 Subject: [Glade-users] Glade2 -> Glade3 & GtkBuilder Message-ID: <5c5b302f0801250110h385c56a8p29a0a5e7a47ddc54@mail.gmail.com> Hi All, I have designed an interface in Glade2. I am able to create an xml file from the glade2-interface.glade file. $ gtk-builder-convert interface.glade interface.xml Wrote interface.xml $ However, I have then opened it (interface.glade - created in Glade2) in Glade3, made a change and resaved the file. When I try to use gtk-builder-convert on this file, I get the following errors: $ gtk-builder-convert glade3-interface.glade interface.xml Traceback (most recent call last): File "/usr/bin/gtk-builder-convert", line 690, in sys.exit(main(sys.argv)) File "/usr/bin/gtk-builder-convert", line 678, in main conv.parse_file(input_filename) File "/usr/bin/gtk-builder-convert", line 147, in parse_file self._parse() File "/usr/bin/gtk-builder-convert", line 223, in _parse self._convert(node.getAttribute("class"), node) File "/usr/bin/gtk-builder-convert", line 249, in _convert self._default_widget_converter(node) File "/usr/bin/gtk-builder-convert", line 266, in _default_widget_converter self._convert_dialog_response(node, object_id, response) File "/usr/bin/gtk-builder-convert", line 470, in _convert_dialog_response if (node.tagName == 'object' and AttributeError: Document instance has no attribute 'tagName' Are the two versions of glade incompatible? Should I redesign my interface in Glade3? Thanks for any advice. Peter. From tristan.van.berkom at gmail.com Fri Jan 25 10:43:00 2008 From: tristan.van.berkom at gmail.com (Tristan Van Berkom) Date: Fri, 25 Jan 2008 13:43:00 -0200 Subject: [Glade-users] Glade3 - Stock item buttons In-Reply-To: <5c5b302f0801250030i4dc77b1ai914478c7ef665581@mail.gmail.com> References: <5c5b302f0801250030i4dc77b1ai914478c7ef665581@mail.gmail.com> Message-ID: <560259cb0801250743q564b3b20t9d5878f84388e3ad@mail.gmail.com> On Jan 25, 2008 6:30 AM, Peter E Dennis wrote: > Hi All, > > I am trying to add some buttons to my GUI and there is a great feature > in Glade2 where you can add a button, change the text to whatever you > want but also include a stock item icon. > > Is this still possible in Glade3? > > Can someone tell me how to do it if it is? Yes I am sorry there isnt something a little more user friendly at this time, the image/text that is done by glade 2 is simply: GtkButton { GtkAlignment { GtkHBox { GtkImage, GtkLabel } } } You can do this by adding the alignment to the button etc, its the same as glade 2 was doing. Cheers, -Tristan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080125/13c4ae66/attachment.html From dereach at gmail.com Tue Jan 29 09:33:32 2008 From: dereach at gmail.com (Daniel Lewandowski) Date: Tue, 29 Jan 2008 15:33:32 +0100 Subject: [Glade-users] Good example software Glade-xml Message-ID: <3094d5030801290633jff93d95s55e98d8d298f09d5@mail.gmail.com> Hi! Where can I find good example (beginner user :-) ) for using glade-libglade xml. I'd like to look how manipulate handlers, open new windows and exchange data beetwen widgets. There is no C-code genration in Glade3. Example editor in /doc/glade/examples/editor/src is C-exported. Daniel From tristan.van.berkom at gmail.com Tue Jan 29 10:56:26 2008 From: tristan.van.berkom at gmail.com (Tristan Van Berkom) Date: Tue, 29 Jan 2008 13:56:26 -0200 Subject: [Glade-users] Good example software Glade-xml In-Reply-To: <3094d5030801290633jff93d95s55e98d8d298f09d5@mail.gmail.com> References: <3094d5030801290633jff93d95s55e98d8d298f09d5@mail.gmail.com> Message-ID: <560259cb0801290756o1445c586t5725ef23d81a22c6@mail.gmail.com> On Jan 29, 2008 12:33 PM, Daniel Lewandowski wrote: > Hi! > > Where can I find good example (beginner user :-) ) for using > glade-libglade xml. > I'd like to look how manipulate handlers, open new windows and > exchange data beetwen widgets. > > There is no C-code genration in Glade3. Example editor in > /doc/glade/examples/editor/src is C-exported. The DevHelp sources are a good start, they are quite simple and they also make good basic use of OO concepts in C. Cheers, -Tristan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080129/3cbe4394/attachment.html From logan.pnc at gmail.com Tue Jan 29 11:13:01 2008 From: logan.pnc at gmail.com (Logan) Date: Tue, 29 Jan 2008 14:13:01 -0200 Subject: [Glade-users] Glade 3.4 widget AboutBox Close Button problem Message-ID: <133145190801290813k11497f74s40e99a2be847aa97@mail.gmail.com> Hi, I?m new on glade and a I have some problems with the AboutBox widget. The "Credits" and "License" buttons works fine to me, but the "close" button doesn?t close the window, and the last widget in the tree widget is the ButtonBox and I don?t have access to te button for my signal handle. I?m programming in C++. Any idea how to solve it? PS: sorry for my poor english, I?m learning yet. -- O que eu ando escutando... http://www.last.fm/user/loganbh/ Marcus Lima - Logan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080129/36f6efe7/attachment.html From alexey.kurochkin at pathfinderlwd.com Wed Jan 30 08:06:46 2008 From: alexey.kurochkin at pathfinderlwd.com (Alexey Kurochkin) Date: Wed, 30 Jan 2008 07:06:46 -0600 Subject: [Glade-users] Glade 3.4 widget AboutBox Close Button problem In-Reply-To: <133145190801290813k11497f74s40e99a2be847aa97@mail.gmail.com> References: <133145190801290813k11497f74s40e99a2be847aa97@mail.gmail.com> Message-ID: <1201698406.19846.3.camel@localhost.localdomain> The GtkAboutDialog emits signal "response" when you click the button. There you can handle all that stuff. On Tue, 2008-01-29 at 14:13 -0200, Logan wrote: > Hi, > > I?m new on glade and a I have some problems with the AboutBox widget. > The "Credits" and "License" buttons works fine to me, but the "close" > button > doesn?t close the window, and the last widget in the tree widget is > the ButtonBox > and I don?t have access to te button for my signal handle. I?m > programming in C++. > > Any idea how to solve it? > > PS: sorry for my poor english, I?m learning yet. > > -- > O que eu ando escutando... > http://www.last.fm/user/loganbh/ > > Marcus Lima - Logan > _______________________________________________ > Glade-users maillist - Glade-users at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/glade-users