From dacobi at juvul.com Sat Feb 2 03:45:11 2008 From: dacobi at juvul.com (Jacob Ole Juul Kolding) Date: Sat, 2 Feb 2008 09:45:11 +0100 Subject: [Glade-users] libglade says: did not finish in PARSER_FINISH state Message-ID: <4C361274-41A1-42F0-ACE1-743BFFE133D8@juvul.com> Hello list I'm porting a gtk app to Xcode on Leopard but have run into a problem. When I compile the app using gnu tools it runs fine, but the Xcode app gives this error from libglade glade_xml_new: did not finish in PARSER_FINISH state And returns a NULL pointer for GladeXML The same glade file is used in both apps and loads fine in glade-3 Does anyone know what's causing this? Jacob Kolding dacobi at juvul.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080202/c2a1fc83/attachment.html From dacobi at juvul.com Sat Feb 2 03:45:11 2008 From: dacobi at juvul.com (Jacob Ole Juul Kolding) Date: Sat, 2 Feb 2008 09:45:11 +0100 Subject: [Glade-users] libglade-WARNING: did not finish in PARSER_FINISH state Message-ID: <4C361274-41A1-42F0-ACE1-743BFFE133D8@juvul.com> Hello list I'm porting a gtk app to Xcode on Leopard but have run into a problem. When I compile the app using gnu tools it runs fine, but the Xcode app gives this error from libglade glade_xml_new: did not finish in PARSER_FINISH state And returns a NULL pointer for GladeXML The same glade file is used in both apps and loads fine in glade-3 Does anyone know what's causing this? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080202/c2a1fc83/attachment-0003.html From airton.arantes at gmail.com Wed Feb 13 18:31:29 2008 From: airton.arantes at gmail.com (airton arantes) Date: Wed, 13 Feb 2008 21:31:29 -0200 Subject: [Glade-users] Drawing graphic area Message-ID: <7d8de9500802131531o77fd7021qcd81ac9f93d240ac@mail.gmail.com> Hello folks , I'm a newer mailinglist's member, please to meet you. Now, I'm with a question: is there some way to put some widgets over some gtk.Image() being background , like those links below? [1] http://img255.imageshack.us/my.php?image=telainicialku8.jpg [2] http://img402.imageshack.us/my.php?image=segundatelaak0.jpg wait answers, thanks -- ?Airton Arantes ? (82)3032-2596 | (82)9129-5360 http://airtonarantes.blogspot.com/ Linux User#423859 ---->USE LINUX - BE HAPPY<----- From giulio at hewle.com Thu Feb 14 08:40:00 2008 From: giulio at hewle.com (Giulio Bai) Date: Thu, 14 Feb 2008 14:40:00 +0100 Subject: [Glade-users] Drawing graphic area In-Reply-To: <7d8de9500802131531o77fd7021qcd81ac9f93d240ac@mail.gmail.com> References: <7d8de9500802131531o77fd7021qcd81ac9f93d240ac@mail.gmail.com> Message-ID: <1202996400.19907.3.camel@localhost.localdomain> I think you just have to place the widgets you need onto the image object; the newly added ones will actually overlay the bg. On Wed, 2008-02-13 at 21:31 -0200, airton arantes wrote: > Hello folks , I'm a newer mailinglist's member, please to meet you. > > Now, I'm with a question: > > is there some way to put some widgets over some gtk.Image() being > background , like those links below? > > [1] http://img255.imageshack.us/my.php?image=telainicialku8.jpg > [2] http://img402.imageshack.us/my.php?image=segundatelaak0.jpg > > > wait answers, thanks > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part Url : http://lists.ximian.com/pipermail/glade-users/attachments/20080214/a341e4d9/attachment.bin From ngoctt_hut at yahoo.com Thu Feb 14 20:46:51 2008 From: ngoctt_hut at yahoo.com (Tran Ngoc) Date: Thu, 14 Feb 2008 17:46:51 -0800 (PST) Subject: [Glade-users] Drawing graphic area In-Reply-To: <1202996400.19907.3.camel@localhost.localdomain> Message-ID: <916175.21250.qm@web30705.mail.mud.yahoo.com> Giulio Bai wrote: I think you just have to place the widgets you need onto the image object; the newly added ones will actually overlay the bg. On Wed, 2008-02-13 at 21:31 -0200, airton arantes wrote: > Hello folks , I'm a newer mailinglist's member, please to meet you. > > Now, I'm with a question: > > is there some way to put some widgets over some gtk.Image() being > background , like those links below? > > [1] http://img255.imageshack.us/my.php?image=telainicialku8.jpg > [2] http://img402.imageshack.us/my.php?image=segundatelaak0.jpg > > > wait answers, thanks > _______________________________________________ Glade-users maillist - Glade-users at lists.ximian.com http://lists.ximian.com/mailman/listinfo/glade-users --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080214/c7b5db9f/attachment.html From atmadarshini_dd at yahoo.com Fri Feb 15 06:53:01 2008 From: atmadarshini_dd at yahoo.com (Atmadarshini devi dasi) Date: Fri, 15 Feb 2008 03:53:01 -0800 (PST) Subject: [Glade-users] reading from an xml file into text entry boxes Message-ID: <99643.74393.qm@web56414.mail.re3.yahoo.com> Hi guys I am having a problem. I am a new learner trying to program using C and create my user interface using glade. I have lets say a window with 2 text entry boxes for now. I have an xml file and I want to read the entries from the xml file and place them into the text entry box. How do i go about doing this? I am able to read from the xml file and place the entried on the console window but when i try to read them into the text entry box, i get an error. I am not sure how to assign the values from my xml file to the text entry boxes. Am pasting my code below. XML file Dasi Atma so when i click a button, i want to see for instance Dasi in the first textbox and Atma in the second text box. I have named my first text box as lname_entry and second textbox as fname_entry. my code is as follows: # include "includes.h" #include "addressbook.h" AddressBook *address; //AddressBook is a structure GtkWidget *address_window; //address_window is the window with the textboxes void addressbook_set_addresses_dialog() { lname_entry_widget = lookup_widget(GTK_WIDGET(address_window), "lname_entry"); GtkWidget *fname_entry_widget = lookup_widget(GTK_WIDGET(address_window), "fname_entry"); gtk_entry_set_text(GTK_ENTRY(lname_entry_widget), address->lastname); gtk_entry_set_text(GTK_ENTRY(fname_entry_widget), address->firstname); } int addressbook_get_addresses_from_xml_file(char *filename) { xmlDocPtr doc; xmlNodePtr cur, child; address = (AddressBook*)malloc(sizeof(AddressBook)); if (filename == NULL) filename = "addressbook.xml"; /* Parse our addressbook file */ if(!(doc = xmlParseFile(imsua_addpath(filename)))) { g_warning("Error opening addressbook file: %s", imsua_addpath(filename)); xmlFreeDoc( doc ); return FALSE; } if(!(cur = xmlDocGetRootElement(doc))) { g_warning("Addressbook document has no root element"); xmlFreeDoc( doc ); return FALSE; } if(xmlStrcmp(cur->name, (const xmlChar *) "addressbook" )) { g_warning("XML document of the wrong type, root node != addressbook"); xmlFreeDoc( doc ); return FALSE; } cur = cur->xmlChildrenNode; /* Traverse through document looking for our addressbook */ while(cur) { if (cur->type == XML_ELEMENT_NODE) { if(child = cur->xmlChildrenNode) { if(!xmlStrcmp(cur->name, (const xmlChar *)"lastname")){ strcpy(address->lastname, child->content); printf("Last Name: %s\n", address->lastname); } if(!xmlStrcmp(cur->name, (const xmlChar *)"firstname")){ strcpy(address->firstname, child->content); printf("First Name: %s\n", address->firstname);} } } cur = cur->next; } return TRUE; } I call addressbook_get_addresses_from_xml_file("addressbook.xml") when the button is clicked and i call addressbook_set_addresses_dialog() when the window is activated to show I am not sure what the difference between gtk_entry_set_text and gtk_entry_get_text is. Can someone please help? I am in need of urgent help... Thanks Aakanksha --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080215/09c573d4/attachment.html From alexey.kurochkin at pathfinderlwd.com Fri Feb 15 08:23:19 2008 From: alexey.kurochkin at pathfinderlwd.com (Alexey Kurochkin) Date: Fri, 15 Feb 2008 07:23:19 -0600 Subject: [Glade-users] reading from an xml file into text entry boxes In-Reply-To: <99643.74393.qm@web56414.mail.re3.yahoo.com> References: <99643.74393.qm@web56414.mail.re3.yahoo.com> Message-ID: <1203081799.10934.10.camel@localhost.localdomain> On Fri, 2008-02-15 at 03:53 -0800, Atmadarshini devi dasi wrote: > Hi guys > > I am having a problem. I am a new learner trying to program using C > and create my user interface using glade. I have lets say a window > with 2 text entry boxes for now. I have an xml file and I want to read > the entries from the xml file and place them into the text entry box. > How do i go about doing this? I am able to read from the xml file and > place the entried on the console window but when i try to read them > into the text entry box, i get an error. It would help if you tell what kind of error you get. From your code it is unclear if address_window is indeed initialized, and how your lookup_widget function works. > I am not sure what the difference between gtk_entry_set_text and > gtk_entry_get_text is. set_text is obviously puts text into the entry and get_text is used to retrieve it when you need to know what is stored in the entry. You may want to review GTK+ documentation on Entry at http://library.gnome.org/devel/gtk/stable/GtkEntry.html > Can someone please help? I am in need of urgent help... > > Thanks > Aakanksha > > > > > ______________________________________________________________________ > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try > it now. > _______________________________________________ > Glade-users maillist - Glade-users at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/glade-users From atmadarshini_dd at yahoo.com Fri Feb 15 08:41:01 2008 From: atmadarshini_dd at yahoo.com (Atmadarshini devi dasi) Date: Fri, 15 Feb 2008 05:41:01 -0800 (PST) Subject: [Glade-users] reading from an xml file into text entry boxes In-Reply-To: <1203081799.10934.10.camel@localhost.localdomain> Message-ID: <387631.48329.qm@web56414.mail.re3.yahoo.com> Hi the error that I am getting is segmentation fault (core dumped). the thing is that I am able to read from the xml file onto the console window but I dont know how to link it with the GUI to the text entry boxes so that they show in the text entry boxes. Alexey Kurochkin wrote: On Fri, 2008-02-15 at 03:53 -0800, Atmadarshini devi dasi wrote: > Hi guys > > I am having a problem. I am a new learner trying to program using C > and create my user interface using glade. I have lets say a window > with 2 text entry boxes for now. I have an xml file and I want to read > the entries from the xml file and place them into the text entry box. > How do i go about doing this? I am able to read from the xml file and > place the entried on the console window but when i try to read them > into the text entry box, i get an error. It would help if you tell what kind of error you get. From your code it is unclear if address_window is indeed initialized, and how your lookup_widget function works. > I am not sure what the difference between gtk_entry_set_text and > gtk_entry_get_text is. set_text is obviously puts text into the entry and get_text is used to retrieve it when you need to know what is stored in the entry. You may want to review GTK+ documentation on Entry at http://library.gnome.org/devel/gtk/stable/GtkEntry.html > Can someone please help? I am in need of urgent help... > > Thanks > Aakanksha > > > > > ______________________________________________________________________ > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try > it now. > _______________________________________________ > 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 --------------------------------- Never miss a thing. Make Yahoo your homepage. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080215/b6cc6724/attachment-0001.html From alexey.kurochkin at pathfinderlwd.com Fri Feb 15 11:00:05 2008 From: alexey.kurochkin at pathfinderlwd.com (Alexey Kurochkin) Date: Fri, 15 Feb 2008 10:00:05 -0600 Subject: [Glade-users] reading from an xml file into text entry boxes In-Reply-To: <387631.48329.qm@web56414.mail.re3.yahoo.com> References: <387631.48329.qm@web56414.mail.re3.yahoo.com> Message-ID: <1203091205.10934.28.camel@localhost.localdomain> On Fri, 2008-02-15 at 05:41 -0800, Atmadarshini devi dasi wrote: > Hi > > the error that I am getting is > segmentation fault (core dumped). Something must be uninitialized or not properly allocated. It is hard to tell without looking at entire code. Try to trace at which exact line it happens, and see what is content of the variables at that line. > > the thing is that I am able to read from the xml file onto the console > window but I dont know how to link it with the GUI to the text entry > boxes so that they show in the text entry boxes. > From mister.simpson at virgin.net Fri Feb 22 11:09:07 2008 From: mister.simpson at virgin.net (Stuart Simpson) Date: Fri, 22 Feb 2008 16:09:07 +0000 Subject: [Glade-users] glade not displaying an existing project Message-ID: <200802221609.07319.mister.simpson@virgin.net> Hello Folks, I have recently started experimenting with glade and gtk2. I have found that when I open a previously saved project, the widget hierarchy is populated correctly, but the workspace area that should contain a view of my GUI is empty (glade-3) or missing (glade-2). This happens in all three combinations of environments I have tried: Using glade-2 on SuSE 9.3, glade-3 on SuSE 9.3, and glade-3 on OpenSuSE10.2. I have found I can make my GUI appear on glade-3 by cutting the top level window from the widget hierarchy area using the scissors tool, then undoing the cut. Without an undo function on glade-2, ?I have been unable to display it at all. The project I have been trying to open was originally created by glade, and compiles without error, and runs successfully. Has anyone else experienced this, and if so, have they identified a fix or a better work-around than cut and undo? Also, on starting glade-3 on OpenSuSE10.2 from the command line, I get the following message: GladeUI-WARNING **: No icon named 'widget-gtk-menushell' was found for widget class 'GtkMenuShell' It doesn't appear to be causing me any problems as yet, but again, can anyone shed light on this or suggest a fix? Thank you in anticipation. Best regards, Stuart From tvb at gnome.org Fri Feb 22 11:39:10 2008 From: tvb at gnome.org (Tristan Van Berkom) Date: Fri, 22 Feb 2008 13:39:10 -0300 Subject: [Glade-users] glade not displaying an existing project In-Reply-To: <200802221609.07319.mister.simpson@virgin.net> References: <200802221609.07319.mister.simpson@virgin.net> Message-ID: <560259cb0802220839t49c69667v1aeac27d2a56556@mail.gmail.com> thats right we need a "show in workspace" context menu item or something, currently you need to double click the toplevel that you want to show up in the workspace. sorry for the inconvenience, -Tristan On Fri, Feb 22, 2008 at 1:09 PM, Stuart Simpson wrote: > Hello Folks, > > I have recently started experimenting with glade and gtk2. I have found > that > when I open a previously saved project, the widget hierarchy is populated > correctly, but the workspace area that should contain a view of my GUI is > empty (glade-3) or missing (glade-2). This happens in all three > combinations > of environments I have tried: Using glade-2 on SuSE 9.3, glade-3 on SuSE > 9.3, > and glade-3 on OpenSuSE10.2. > > I have found I can make my GUI appear on glade-3 by cutting the top level > window from the widget hierarchy area using the scissors tool, then > undoing > the cut. Without an undo function on glade-2, I have been unable to > display > it at all. > > The project I have been trying to open was originally created by glade, > and > compiles without error, and runs successfully. > > Has anyone else experienced this, and if so, have they identified a fix or > a > better work-around than cut and undo? > > Also, on starting glade-3 on OpenSuSE10.2 from the command line, I get the > following message: > > GladeUI-WARNING **: No icon named 'widget-gtk-menushell' was found for > widget > class 'GtkMenuShell' > > It doesn't appear to be causing me any problems as yet, but again, can > anyone > shed light on this or suggest a fix? > > Thank you in anticipation. > > > Best regards, > > Stuart > _______________________________________________ > 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/20080222/d193d173/attachment.html From westli1 at yahoo.com Sat Feb 23 21:31:24 2008 From: westli1 at yahoo.com (dj) Date: Sat, 23 Feb 2008 18:31:24 -0800 (PST) Subject: [Glade-users] Getting data during a loop Message-ID: <325732.1220.qm@web56301.mail.re3.yahoo.com> I am working on a program for controlling my shortwave receiver using Glade, pyGTK, and python. One routine loops through a series of channel presets, sending them to the radio, and then reading the frequencies as they are set on the radio. (pyserial is taking care of this) The frequencies are supposed to be sent to a TextView window as they are read from the radio, but they are stored until the loop is finished and sent all at once. During this test phase, they are also being written to the command line console, and they are being written there correctly. I'm using logwindow.set_text(text,len(text)) to do this. I copied this from a sample program somewhere. Is there a different way? Also, where can I find information on writing different fonts into a textview. Using pango, I guess, but I haven't found anything. ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs From tvb at gnome.org Sun Feb 24 00:04:47 2008 From: tvb at gnome.org (Tristan Van Berkom) Date: Sun, 24 Feb 2008 02:04:47 -0300 Subject: [Glade-users] Getting data during a loop In-Reply-To: <325732.1220.qm@web56301.mail.re3.yahoo.com> References: <325732.1220.qm@web56301.mail.re3.yahoo.com> Message-ID: <560259cb0802232104r2af64646tce546a1d8535cbab@mail.gmail.com> On Sat, Feb 23, 2008 at 11:31 PM, dj wrote: > I am working on a program for controlling my shortwave > receiver using Glade, pyGTK, and python. Hi, this is a gtk+ related question and would be better targetted at gtk-app-devel-list at gnome.org, however, the problem you are experiencing is simply put, during the routine in which you are reading and printing to the console and updating a treeview, you are never returning to the main loop, and so since you never return to the main loop the GUI updates are never processed. Generally you would have some kind of data handler (a GIOChannel possibly) and handle a bit of data at a time and always remember to return ;-) other ways of dealing with this include using GThread (I dont think you need to deal with that), or the famous old: while (events_pending()) itteration_do (); which might be better for you, if you are writing new code though I would suggest you handle the data in itterations and get used to proper single thread event based programming (especially if event flow is important in your app, you might try staying away from too much hacked out recursive envokation of the main loop). Cheers, -Tristan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080224/1e6b7ee1/attachment.html From westli1 at yahoo.com Sun Feb 24 02:21:59 2008 From: westli1 at yahoo.com (dj) Date: Sat, 23 Feb 2008 23:21:59 -0800 (PST) Subject: [Glade-users] Getting data during a loop In-Reply-To: <560259cb0802232104r2af64646tce546a1d8535cbab@mail.gmail.com> Message-ID: <234333.67925.qm@web56308.mail.re3.yahoo.com> Thanks, Tristan. I'll work on it with your suggestions. --- Tristan Van Berkom wrote: > On Sat, Feb 23, 2008 at 11:31 PM, dj > wrote: > > > I am working on a program for controlling my > shortwave > > receiver using Glade, pyGTK, and python. > > > Hi, this is a gtk+ related question and would be > better targetted > at gtk-app-devel-list at gnome.org, however, the > problem you are > experiencing is simply put, during the routine in > which you are > reading and printing to the console and updating a > treeview, you > are never returning to the main loop, and so since > you never return > to the main loop the GUI updates are never > processed. > > Generally you would have some kind of data handler > (a GIOChannel > possibly) and handle a bit of data at a time and > always remember to > return ;-) > > other ways of dealing with this include using > GThread (I dont think > you need to deal with that), or the famous old: > > while (events_pending()) > itteration_do (); > > which might be better for you, if you are writing > new code though I > would suggest you handle the data in itterations and > get used to > proper single thread event based programming > (especially if event > flow is important in your app, you might try staying > away from too > much hacked out recursive envokation of the main > loop). > > Cheers, > -Tristan > ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs From Alexandre.Abadie at irisa.fr Sun Feb 24 07:07:00 2008 From: Alexandre.Abadie at irisa.fr (Alexandre Abadie) Date: Sun, 24 Feb 2008 13:07:00 +0100 Subject: [Glade-users] Menu bar use Message-ID: <47C15DE4.1030303@irisa.fr> Hi glade users, I am developping a pygtk application using glade. In the gui, I add a menu bar widget with some menu items but I can find good informations on how to connect these items to the corresponding actions. What is the good way for doing this on where can I find useful documentation ? Thanks in advance, Alex From germandiago at gmail.com Mon Feb 25 07:24:20 2008 From: germandiago at gmail.com (=?ISO-8859-1?Q?Germ=E1n_Diago?=) Date: Mon, 25 Feb 2008 13:24:20 +0100 Subject: [Glade-users] Glade api functions Message-ID: Hello. I'd like to know if there is a way from the glade api to obtain, given a widget name, its type and the signal and callback names for that widget . I'm implementing a utility and it should be convenient to be able to obtain these. If I can't I would have to obtain info from the xml by hand, which is a little cumbersome. Thanks a lot in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080225/2cef22ce/attachment-0001.html From tvb at gnome.org Mon Feb 25 09:58:04 2008 From: tvb at gnome.org (Tristan Van Berkom) Date: Mon, 25 Feb 2008 11:58:04 -0300 Subject: [Glade-users] Menu bar use In-Reply-To: <47C15DE4.1030303@irisa.fr> References: <47C15DE4.1030303@irisa.fr> Message-ID: <560259cb0802250658v4a09108cn355b9242ead08b7f@mail.gmail.com> Hello, Unfortunately you cant have Actions (or UIManagers either ) in glade currently because thats blocking on introducing the builder format. Cheers, -Tristan On Sun, Feb 24, 2008 at 9:07 AM, Alexandre Abadie wrote: > Hi glade users, > > I am developping a pygtk application using glade. In the gui, I add a > menu bar widget with some menu items but I can find good informations on > how to connect these items to the corresponding actions. > What is the good way for doing this on where can I find useful > documentation ? > > Thanks in advance, > > Alex > _______________________________________________ > 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/20080225/efa211c1/attachment.html From tvb at gnome.org Mon Feb 25 11:29:16 2008 From: tvb at gnome.org (Tristan Van Berkom) Date: Mon, 25 Feb 2008 13:29:16 -0300 Subject: [Glade-users] Glade api functions In-Reply-To: References: Message-ID: <560259cb0802250829jf743ca6y387ac4b46d1db90d@mail.gmail.com> On Mon, Feb 25, 2008 at 9:24 AM, Germ?n Diago wrote: > Hello. I'd like to know if there is a way from the glade api to obtain, > given a widget name, its type > and the signal and callback names for that widget . > I'm implementing a utility and it should be convenient to be able to > obtain these. If I can't I would have to obtain > info from the xml by hand, which is a little cumbersome. Thanks a lot in > advance. What kind of utility are you writing, should you really be using the gladeui library api ? when running gladeui, all that information is readily handy in our own data structures, in raw gtk+ its also easy to obtain this information, except you must ensure that the widget type in question that you are querying has already been registered in glibs type system. You can find documentation on all those apis readily handy in the GObject docs on developer.gnome.org. Cheers, -Tristan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080225/f873033e/attachment.html From germandiago at gmail.com Mon Feb 25 13:37:47 2008 From: germandiago at gmail.com (=?ISO-8859-1?Q?Germ=E1n_Diago?=) Date: Mon, 25 Feb 2008 19:37:47 +0100 Subject: [Glade-users] Glade api functions In-Reply-To: <560259cb0802250829jf743ca6y387ac4b46d1db90d@mail.gmail.com> References: <560259cb0802250829jf743ca6y387ac4b46d1db90d@mail.gmail.com> Message-ID: > when running gladeui, all that information is readily handy in our own > data structures, > in raw gtk+ its also easy to obtain this information, except you must > ensure that > the widget type in question that you are querying has already been > registered in glibs > type system. > > You can find documentation on all those apis readily handy in the GObject > docs > on developer.gnome.org. > > Cheers, > -Tristan > I browsed the documentation but didn't find how to get the signals and handlers from the gtk+ API (I just found how to get properties). What I want to get: if I have a widget, I want to know its exact type, its signals' names and its associated handlers for the signals (if any). -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080225/f9b44837/attachment.html From tvb at gnome.org Tue Feb 26 00:27:08 2008 From: tvb at gnome.org (Tristan Van Berkom) Date: Tue, 26 Feb 2008 02:27:08 -0300 Subject: [Glade-users] Glade api functions In-Reply-To: References: <560259cb0802250829jf743ca6y387ac4b46d1db90d@mail.gmail.com> Message-ID: <560259cb0802252127g62eebd96g7a8e0310eb626240@mail.gmail.com> On Mon, Feb 25, 2008 at 3:37 PM, Germ?n Diago wrote: > > > I browsed the documentation but didn't find how to get the signals and > handlers from the gtk+ API > (I just found how to get properties). What I want to get: if I have a > widget, I want to know its exact type, > look at the macros here for that: http://library.gnome.org/devel/gobject/stable/gobject-The-Base-Object-Type.html > > its signals' names and its associated handlers for the signals (if any). > and you have g_signal_list_ids here: http://library.gnome.org/devel/gobject/stable/gobject-Signals.html I dont think you can list handlers, but you can search for ones you installed. FYI, this is not related to glade, a better place to discuss gtk+ apis is on gtk-app-devel-list at gnome.org Cheers, -Tristan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080226/5a292e22/attachment.html From guymurray at tiscali.co.uk Tue Feb 26 17:40:48 2008 From: guymurray at tiscali.co.uk (Guy Murray) Date: Tue, 26 Feb 2008 22:40:48 +0000 Subject: [Glade-users] g_signal_connect - Referencing a pointer Message-ID: <47C49570.9090102@tiscali.co.uk> Hi, just starting to get to know gtk+ and glade and have the following problem. I want to connect a button to a callback function and pass it a pointer to a struct. I've done this manually with gtk+ using the deprecated gtk_signal_connect and it worked fine. However, when I try to do the same with glade, by adding the struct pointer as an Object in the button's properties dialogue, g_signal_connect (or rather g_signal_connect_swapped) casts it as a GTK_OBJECT which presumably it isn't. Can anyone explain the best way to get around this? Many thanks Guy From tristan.van.berkom at gmail.com Tue Feb 26 22:47:46 2008 From: tristan.van.berkom at gmail.com (Tristan Van Berkom) Date: Wed, 27 Feb 2008 00:47:46 -0300 Subject: [Glade-users] g_signal_connect - Referencing a pointer In-Reply-To: <47C49570.9090102@tiscali.co.uk> References: <47C49570.9090102@tiscali.co.uk> Message-ID: <560259cb0802261947y3750c39ft40488d8850ffc762@mail.gmail.com> On Tue, Feb 26, 2008 at 7:40 PM, Guy Murray wrote: > Hi, > just starting to get to know gtk+ and glade and have the following > problem. > > I want to connect a button to a callback function and pass it a pointer > to a struct. > > I've done this manually with gtk+ using the deprecated > gtk_signal_connect and it worked fine. However, when I try to do the > same with glade, by adding the struct pointer as an Object in the > button's properties dialogue, g_signal_connect (or rather > g_signal_connect_swapped) casts it as a GTK_OBJECT which presumably it > isn't. > > Can anyone explain the best way to get around this? You can use other signal_connect varients from glade-xml.h, you cannot currently specify pointers as user data in the glade tool, only objects inside the project that can be reffered to by name. Cheers, -Tristan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080227/ded0c5d3/attachment.html