From aaron@diplopic.com Fri Aug 1 01:24:47 2003 From: aaron@diplopic.com (aaron barclay) Date: Fri, 01 Aug 2003 10:24:47 +1000 Subject: [Glade-users] Glade and gettext... In-Reply-To: <20030731124350.GO1167@lavender> References: <200307311245.h6VCjcQ13679@mailgate5.cinetic.de> <20030731124350.GO1167@lavender> Message-ID: <3F29B34F.3060200@diplopic.com> Hi all, Having some problems I was hoping I could get some help with. I believe I have glade-2 installed correctly, it seems to work fine apart from a few hiccups. I get the following error on startup, not sure if it is important or not? (glade-2:3202): Gtk-CRITICAL **: file gtkiconfactory.c: line 1906 (gtk_icon_set_ get_sizes): assertion `icon_set != NULL' failed Also, what is affecting me more at the moment is I can not build, I get the following error when I attempt to build a project: Error running glade-- to generate the C++ source code. Check that you have glade-- installed and that it is in your PATH. Then try running 'glade-- ' in a terminal. am I meant to have glade1 installed as well as 2?? I can't figure out what it is looking for. From the command line I try: $> glade-2 -w project1.glade GTK Accessibility Module initialized sh: line 1: glade--: command not found glade: Error writing source. Something is amiss, I don't see what it is. Any help greatly appreciated. Regards aaron. From bas.driessen@xobas.com Fri Aug 1 06:16:13 2003 From: bas.driessen@xobas.com (Bas Driessen) Date: Fri, 1 Aug 2003 15:16:13 +1000 Subject: [Glade-users] GList. Message-ID: <000d01c357ec$0769abd0$2f9cfea9@REDBACK> This is a multi-part message in MIME format. ------=_NextPart_000_000E_01C3583F.D915BBD0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hello All, The function glade_get_widget_tree in combination with glade_xml_get_widget_prefix can generate a list of all widgets linked to a screen for instance. This works great. However, if I use gtk_container_add after I have opened the screen and insert a new widget, this added widget will not be in the list when using the functions mentioned. Any ideas how I can get a real "actual" list (GList) of widgets? I have looked at gtk_container_get_children, but that one is not recursive unfortunatly. (Obviously I can write my own recursion code, but perhaps there is an easier way.) If you have an idea, please let me know. Thanks, Bas. ------=_NextPart_000_000E_01C3583F.D915BBD0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message
Hello=20 All,
 
The = function=20 glade_get_widget_tree in combination with glade_xml_get_widget_prefix = can=20 generate a list of all widgets linked to a screen for instance. This = works=20 great. However, if I use gtk_container_add after I have opened the = screen and=20 insert a new widget, this added widget will not be in the list when = using the=20 functions mentioned. 
 
Any = ideas how I can=20 get a real "actual" list (GList) of widgets?
 
I have = looked at=20 gtk_container_get_children, but that one is not recursive unfortunatly.=20 (Obviously I can write my own recursion code, but perhaps there is an = easier=20 way.)
 
If you = have an idea,=20 please let me know.
 
Thanks,
Bas.
 
 
------=_NextPart_000_000E_01C3583F.D915BBD0-- From rgiles@telebyte.com Fri Aug 1 11:29:55 2003 From: rgiles@telebyte.com (Rikke D. Giles) Date: Fri, 1 Aug 2003 03:29:55 -0700 Subject: [Glade-users] Glade and gettext... In-Reply-To: <3F29B34F.3060200@diplopic.com>; from aaron@diplopic.com on Thu, Jul 31, 2003 at 17:24:47 -0700 References: <200307311245.h6VCjcQ13679@mailgate5.cinetic.de> <20030731124350.GO1167@lavender> <3F29B34F.3060200@diplopic.com> Message-ID: <20030801102955.GA2012@lavender> Aaron, It sounds like your project has the C++ option set. Is this so? Cheers, Rikke On 2003.07.31 17:24, aaron barclay wrote: > Also, what is affecting me more at the moment is I can not build, I From g_mitter@web.de Fri Aug 1 11:53:05 2003 From: g_mitter@web.de (=?iso-8859-1?Q? G=FCnther=20Mittermayer ?=) Date: Fri, 1 Aug 2003 12:53:05 +0200 Subject: [Glade-users] make doesn't know where my gnome.h is... Message-ID: <200308011053.h71Ar5Q11569@mailgate5.cinetic.de> Ok.. got this problem making the executable now: main.c:10:19: gnome.h: No such file or directory=20 (and many related errors that follow...) I have checked and my gnome.h is at /usr/include/libgnomeui-2.0, but someh= ow make can't find it. =20 I've tried inserting the include path in the Makefile, make will then find= gnome.h, but can't find the includes that are in gnome.h (gtk.h, etc..) I could go on hard-coding the paths, but I got I feeling it's all about so= me silly configuration.. anyone got a hint=3F=3F thanx, g=FCnther. =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F Spam-Filter fuer alle - bester Spam-Schutz laut ComputerBild 15-03 WEB.DE FreeMail - Deutschlands beste E-Mail - http://s.web.de/=3Fmc=3D021120 From anthony@unihedron.com Fri Aug 1 23:43:34 2003 From: anthony@unihedron.com (Anthony Tekatch) Date: Fri, 1 Aug 2003 18:43:34 -0400 Subject: [Glade-users] ada95 output Message-ID: <20030801184334.64f88303.anthony@unihedron.com> I thought that Glade once had ADA95 language output. The latest glade2.0.0 does not seem to have that option anymore. I have Glade-2 installed on a Debian system. Has it been removed? Thanks, -- Anthony From rgiles@telebyte.com Sat Aug 2 02:58:21 2003 From: rgiles@telebyte.com (Rikke D. Giles) Date: Fri, 1 Aug 2003 18:58:21 -0700 Subject: [Glade-users] ada95 output In-Reply-To: <20030801184334.64f88303.anthony@unihedron.com>; from anthony@unihedron.com on Fri, Aug 01, 2003 at 15:43:34 -0700 References: <20030801184334.64f88303.anthony@unihedron.com> Message-ID: <20030802015821.GA1182@lavender> Anthony, Glade1 had it. Glade2 doesn't, yet. It's not that it's been removed really, it's that the gtk2 port for Ada95 hasn't been finished (as far as I know). Note, I'm just going from the README, perhaps things have changed. Cheers, Rikke From ravula_venkat7@yahoo.co.in Sat Aug 2 12:17:17 2003 From: ravula_venkat7@yahoo.co.in (=?iso-8859-1?q?venkatesh=20reddy=20ravula?=) Date: Sat, 2 Aug 2003 12:17:17 +0100 (BST) Subject: [Glade-users] some help on Glade Message-ID: <20030802111717.25940.qmail@web8104.in.yahoo.com> --0-2088558219-1059823037=:23818 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit hi friends, if glade wont import C code how to cade then.there is any other way to code or i have to learn gtk for coding. please give me suggestions because i am stuck with this problem. i have to develop an frentend with glade2. please help me SMS using the Yahoo! Messenger;Download latest version. --0-2088558219-1059823037=:23818 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
hi friends,
 
               if glade wont import C code how to cade then.there is any other way to code or i have to learn gtk for coding. please give me suggestions because i am stuck with this problem. i have to develop an frentend with glade2.
please help me
 

Yahoo! India Mobile SMS using the Yahoo! Messenger; Download latest version. --0-2088558219-1059823037=:23818-- From rgiles@telebyte.com Sat Aug 2 12:17:43 2003 From: rgiles@telebyte.com (Rikke D. Giles) Date: Sat, 2 Aug 2003 04:17:43 -0700 Subject: [Glade-users] some help on Glade In-Reply-To: <20030802111717.25940.qmail@web8104.in.yahoo.com>; from ravula_venkat7@yahoo.co.in on Sat, Aug 02, 2003 at 04:17:17 -0700 References: <20030802111717.25940.qmail@web8104.in.yahoo.com> Message-ID: <20030802111743.GI1182@lavender> Glade exports C code. It's not an IDE though, you can't write the code within Glade. Glade lets you develop the graphical user interface. It will write the code for that part of your project. Then you must write the code to do something with that interface. Glade is used with Gtk, you will have to learn some Gtk in order to do anything useful with Glade, no matter what language or wrapper you are using. Gtk is written in C. If you know C, it's fairly easy to understand (once you have a grasp on the main concepts). Please look at the tutorials mentioned on the glade.gnome.org webpage. They will help you see what Glade is. There are also tutorials at www.kplug.org/tutorials.shtml. Good luck! Rikke From esaracco@noos.fr Sat Aug 2 18:44:37 2003 From: esaracco@noos.fr (Emmanuel Saracco) Date: 02 Aug 2003 19:44:37 +0200 Subject: [Glade-users] [hbox] fixed width Message-ID: <1059846277.17632.6.camel@badiou> hi all, I have a hbox with to cols. at the left col I have a GtkImage, and at the right a vbox containing three labels (whose width can change during the program life). -> how can I fix the width of those two cols to avoid items moving when my label width change? thanks, bye -- Emmanuel Saracco - esaracco@noos.fr http://emmanuel.saracco.free.fr From esaracco@noos.fr Sat Aug 2 18:47:57 2003 From: esaracco@noos.fr (Emmanuel Saracco) Date: 02 Aug 2003 19:47:57 +0200 Subject: [Glade-users] [vbox] problem solved Message-ID: <1059846477.17632.8.camel@badiou> oops, sorry for my precedent mail. it ok now. thanks, bye -- Emmanuel Saracco - esaracco@noos.fr http://emmanuel.saracco.free.fr From reshmi@sumerusolutions.com Mon Aug 4 13:13:56 2003 From: reshmi@sumerusolutions.com (Reshmi Jain) Date: Mon, 04 Aug 2003 17:43:56 +0530 (IST) Subject: [Glade-users] Problem in Installing Glade2 Message-ID: Hi, I'm trying to install glade2 on RH7.3 I've successfully installed the gtk+2.0 libraries. However when I try to install glade2 using rpm -i glade2-1.1.3-3.i386.rpm I get: error: failed dependencies: gail-devel >= 0.17 is needed by glade2-1.1.3-3 libc.so.6(GLIBC_2.3) is needed by glade2-1.1.3-3 However when I try to install gail, I get: gtk2 >= 2.2.0 is needed by gail-1.2.0-1 and when I try to install rpm -i gtk2-2.2.2-2.1.i386.rpm I get: error: failed dependencies: glib2 >= 2.2.0-1 is needed by gtk2-2.2.2-2.1 libXft.so.2 is needed by gtk2-2.2.2-2.1 libXrandr.so.2 is needed by gtk2-2.2.2-2.1 libc.so.6(GLIBC_2.3) is needed by gtk2-2.2.2-2.1 libfontconfig.so.1 is needed by gtk2-2.2.2-2.1 libpng12.so.0 is needed by gtk2-2.2.2-2.1 pango >= 1.2.0-3 is needed by gtk2-2.2.2-2.1 and when I try: rpm -i glib2-2.2.2-1.i386.rpm I get error: failed dependencies: libc.so.6(GLIBC_2.3) is needed by glib2-2.2.2-1 libpthread.so.0(GLIBC_2.3.2) is needed by glib2-2.2.2-1 However someone told me that GLIBC_2.3 cannot be installed on RH7.3 I am new to all this. Can someone please guide me on this? Thanks you very much. Regards, Reshmi From g_mitter@web.de Mon Aug 4 14:39:08 2003 From: g_mitter@web.de (=?iso-8859-1?Q? G=FCnther=20Mittermayer ?=) Date: Mon, 4 Aug 2003 15:39:08 +0200 Subject: [Glade-users] Popup Windows vs Dialogs.. Message-ID: <200308041339.h74Dd7Q08794@mailgate5.cinetic.de> Hi all.. I got this strange behaviour on some glade generated windows.. I got this = ready code that I need to edit. In it the person who made it has created = windows with the "type" widget property set as "Pop-up", instead of creati= ng dialogs. When I compile the whole thing, the main window works fine, but the "popup= " windows don't show any frame, that is the top bar and the -, maximize an= d X buttons... =20 I've tried creating my own simple application and the "pop ups" behave in = the same strange way... If I use dialogs, it works fine, and I could con= vert all windows to dialogs, but isn't there some easier way=3F=3F=3F Am I mis= sing something=3F=3F anyone ever go through this=3F I noticed I am calling the windows a bit differently as the original code = that is,=20 I am calling the windows like that: GtkWidget *window=5FMyWin; window=5FMyWin =3D create=5Fwindow=5FMyWin(); gtk=5Fwidget=5Fshow(window=5FMyWin); and the original code had something like: ShowMyWinWindow(); Although I have no Idea on where he got these "Show..." functions from.. any thoughts=3F=3F Thanks... G=FCnther. =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F Spam-Filter fuer alle - bester Spam-Schutz laut ComputerBild 15-03 WEB.DE FreeMail - Deutschlands beste E-Mail - http://s.web.de/=3Fmc=3D021120 From rameshkumar@linuxmail.org Mon Aug 4 14:56:54 2003 From: rameshkumar@linuxmail.org (Ramesh Kumar) Date: Mon, 04 Aug 2003 21:56:54 +0800 Subject: [Glade-users] Problem in Installing Glade2 Message-ID: <20030804135655.17781.qmail@linuxmail.org> Dear Reshmi, Happy Linuxing ... This is Ramesh Kumar.. The Soultion to your Problem ... 1.The Libs for the Galde2 is Enitrely Different from RH8,9 based to the RH7 2.Even Though if you install the Glade3 RPM with Options --force --nodeps it also again back with Libs Problem 3.so You have install the Gnome 2.2 from the www.planetmirror.com/pub/gnome/2.2/* in your RH7 and then install Galde2 it works Try it .... Happy Linuxing ... Ramesh Kumar (ALTOSYS TECHNOLOGIES ) www.altosys.co.in www.geocities.com/rameshkumar132 ----- Original Message ----- From: "Reshmi Jain" Date: Mon, 04 Aug 2003 17:43:56 +0530 (IST) To: glade-users@lists.ximian.com Subject: [Glade-users] Problem in Installing Glade2 Hi, I'm trying to install glade2 on RH7.3 I've successfully installed the gtk+2.0 libraries. However when I try to install glade2 using rpm -i glade2-1.1.3-3.i386.rpm I get: error: failed dependencies: gail-devel >= 0.17 is needed by glade2-1.1.3-3 libc.so.6(GLIBC_2.3) is needed by glade2-1.1.3-3 However when I try to install gail, I get: gtk2 >= 2.2.0 is needed by gail-1.2.0-1 and when I try to install rpm -i gtk2-2.2.2-2.1.i386.rpm I get: error: failed dependencies: glib2 >= 2.2.0-1 is needed by gtk2-2.2.2-2.1 libXft.so.2 is needed by gtk2-2.2.2-2.1 libXrandr.so.2 is needed by gtk2-2.2.2-2.1 libc.so.6(GLIBC_2.3) is needed by gtk2-2.2.2-2.1 libfontconfig.so.1 is needed by gtk2-2.2.2-2.1 libpng12.so.0 is needed by gtk2-2.2.2-2.1 pango >= 1.2.0-3 is needed by gtk2-2.2.2-2.1 and when I try: rpm -i glib2-2.2.2-1.i386.rpm I get error: failed dependencies: libc.so.6(GLIBC_2.3) is needed by glib2-2.2.2-1 libpthread.so.0(GLIBC_2.3.2) is needed by glib2-2.2.2-1 However someone told me that GLIBC_2.3 cannot be installed on RH7.3 I am new to all this. Can someone please guide me on this? Thanks you very much. Regards, Reshmi _______________________________________________ Glade-users maillist - Glade-users@lists.ximian.com http://lists.ximian.com/mailman/listinfo/glade-users -- ______________________________________________ http://www.linuxmail.org/ Now with e-mail forwarding for only US$5.95/yr Powered by Outblaze From rjshaw@iprimus.com.au Tue Aug 5 09:12:22 2003 From: rjshaw@iprimus.com.au (Russell Shaw) Date: Tue, 05 Aug 2003 18:12:22 +1000 Subject: [Glade-users] Passing objects to libglade callbacks Message-ID: <3F2F66E6.40606@iprimus.com.au> Hi, I put a button on a glade-2.0 window. In the properties form, i selected the "clicked" signal. For the handler, i entered "on_button_clicked". For the object, i entered "1" (without the quotes). In the following gtk+2 program, when i click the button, the on_button_clicked callback prints a very large integer instead of "1". Why? #include #include #include void on_button_clicked(GtkWidget *widget, gpointer user_data) { g_print("Butt=%d\n",GPOINTER_TO_INT(user_data)); // g_print("Butt=%d\n",*((gint*)user_data)); } int main(int argc, char *argv[]) { GladeXML *xml; gtk_init(&argc, &argv); glade_init(); /* load the interface */ xml = glade_xml_new("keypad.glade",NULL,NULL); /* connect the signals in the interface */ glade_xml_signal_autoconnect(xml); /* start the event loop */ gtk_main(); return 0; } From g_mitter@web.de Tue Aug 5 10:35:28 2003 From: g_mitter@web.de (=?iso-8859-1?Q? G=FCnther=20Mittermayer ?=) Date: Tue, 5 Aug 2003 11:35:28 +0200 Subject: [Glade-users] closing dialog boxes Message-ID: <200308050935.h759ZSQ14659@mailgate5.cinetic.de> Hi all... how do I close a dialog box. I wanted to have it closed when the user clic= ked on "Cancel". I tried gtk=5Fmain=5Fquit(), but of course it closes the whole application.. anywhere on the web where I can find good GTK the documentation=3F=3F thanks G=FCnther. =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F Spam-Filter fuer alle - bester Spam-Schutz laut ComputerBild 15-03 WEB.DE FreeMail - Deutschlands beste E-Mail - http://s.web.de/=3Fmc=3D021120 From g_mitter@web.de Tue Aug 5 11:12:13 2003 From: g_mitter@web.de (=?iso-8859-1?Q? G=FCnther=20Mittermayer ?=) Date: Tue, 5 Aug 2003 12:12:13 +0200 Subject: [Glade-users] Passing objects to libglade callbacks Message-ID: <200308051012.h75ACDQ25388@mailgate5.cinetic.de> Russell,=20 I'm not sure on what you want to do, but I think you might be using the Ob= ject field in a wrong manner... I might be just guessing, since I actually= never used it, but I think it is used to determine the object which shoul= d receive the specified signal, and therefore, "1" doesn't make any sense = to me..... I would try finding out what it really means.. and again, I'm just guessin= g.. G=FCnther. Russell Shaw schrieb am 05.08.03 10:16:10: >=20 > Hi, > I put a button on a glade-2.0 window. In the properties form, > i selected the "clicked" signal. For the handler, i entered > "on=5Fbutton=5Fclicked". For the object, i entered "1" (without > the quotes). >=20 > In the following gtk+2 program, when i click the button, the > on=5Fbutton=5Fclicked callback prints a very large integer instead > of "1". Why=3F >=20 > #include > #include > #include >=20 > void on=5Fbutton=5Fclicked(GtkWidget *widget, gpointer user=5Fdata) { > g=5Fprint("Butt=3D%d\n",GPOINTER=5FTO=5FINT(user=5Fdata)); > // g=5Fprint("Butt=3D%d\n",*((gint*)user=5Fdata)); > } >=20 > int main(int argc, char *argv[]) > { > GladeXML *xml; >=20 > gtk=5Finit(&argc, &argv); > glade=5Finit(); >=20 > /* load the interface */ > xml =3D glade=5Fxml=5Fnew("keypad.glade",NULL,NULL); > /* connect the signals in the interface */ > glade=5Fxml=5Fsignal=5Fautoconnect(xml); > /* start the event loop */ > gtk=5Fmain(); > return 0; > } >=20 > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F > Glade-users maillist - Glade-users@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/glade-users =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F ComputerBild (15-03) empfiehlt: Der beste Spam-Schutz ist bei WEB.DE FreeMail - Deutschlands beste E-Mail - http://s.web.de/=3Fmc=3D021124 From rgiles@telebyte.com Tue Aug 5 11:14:19 2003 From: rgiles@telebyte.com (Rikke D. Giles) Date: Tue, 5 Aug 2003 03:14:19 -0700 Subject: [Glade-users] closing dialog boxes In-Reply-To: <200308050935.h759ZSQ14659@mailgate5.cinetic.de>; from g_mitter@web.de on Tue, Aug 05, 2003 at 02:35:28 -0700 References: <200308050935.h759ZSQ14659@mailgate5.cinetic.de> Message-ID: <20030805101419.GA1114@lavender> Hey Gunther, There is documentation at www.gnome.org under developer or develope with gnome or whatever it's called now. Also gtk documentation at www. gtk.org. You want to destroy or hide the dialog, not quit out of the main gtk loop (which is what gtk_main_quit()) does. So to destroy use gtk_widget_destroy() and call it on the parent of the 'Cancel' button on the dialog box (ie the dialog box itself). I'll leave it to you to find out how to hide and raise windows :). Also, look at the example program that came with glade, it shows some simple ways of doing these things. Cheers, Rikke From rjshaw@iprimus.com.au Tue Aug 5 11:29:38 2003 From: rjshaw@iprimus.com.au (Russell Shaw) Date: Tue, 05 Aug 2003 20:29:38 +1000 Subject: [Glade-users] Passing objects to libglade callbacks In-Reply-To: <200308051012.h75ACDQ25388@mailgate5.cinetic.de> References: <200308051012.h75ACDQ25388@mailgate5.cinetic.de> Message-ID: <3F2F8712.3010507@iprimus.com.au> G�nther Mittermayer wrote: > Russell, > > I'm not sure on what you want to do, but I think you might be using the Object > field in a wrong manner... I might be just guessing, since I actually never > used it, but I think it is used to determine the object which should receive > the specified signal, and therefore, "1" doesn't make any sense to me..... > > I would try finding out what it really means.. and again, I'm just guessing.. > > G�nther. Hi, I found in a previous post that filling in that field determines whether g_signal_connect() or g_signal_connect_swappped() is called. > Russell Shaw schrieb am 05.08.03 10:16:10: > >>Hi, >>I put a button on a glade-2.0 window. In the properties form, >>i selected the "clicked" signal. For the handler, i entered >>"on_button_clicked". For the object, i entered "1" (without >>the quotes)... From ravula_venkat7@yahoo.co.in Wed Aug 6 12:59:16 2003 From: ravula_venkat7@yahoo.co.in (=?iso-8859-1?q?venkatesh=20reddy=20ravula?=) Date: Wed, 6 Aug 2003 12:59:16 +0100 (BST) Subject: [Glade-users] how to export 'C' code in to glade Message-ID: <20030806115916.47109.qmail@web8107.mail.in.yahoo.com> hi everydody, could anybody tell me how to export 'C' code in to glade. i really dont know how to exoprt 'C' code in to glade. if any body know please any example for this. suggest me any book and web site where i can get examples. please help me this regard. sincerely venkatesh ________________________________________________________________________ Send free SMS using the Yahoo! Messenger. Go to http://in.mobile.yahoo.com/new/pc/ From g_mitter@web.de Wed Aug 6 13:51:16 2003 From: g_mitter@web.de (=?iso-8859-1?Q? G=FCnther=20Mittermayer ?=) Date: Wed, 6 Aug 2003 14:51:16 +0200 Subject: [Glade-users] how to export 'C' code in to glade Message-ID: <200308061251.h76CpGQ10286@mailgate5.cinetic.de> hi venkatesh, not sure I understood your question, what exactly do you want to do=3F=3F inse= rt some C code in the code generated by Glade=3F=3F Could you be a little more= specific=3F G=FCnther. venkatesh reddy ravula schrieb am 06.08.03 14:00:13: >=20 > hi everydody, > could anybody tell me how to export 'C' > code in to glade. i really dont know how to exoprt 'C' > code in to glade. > if any body know please any example for this. suggest > me any book and web site where i can get examples. > please help me this regard. >=20 > sincerely > venkatesh=20 >=20 >=20 > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= > Send free SMS using the Yahoo! Messenger. Go to http://in.mobile.yahoo.c= om/new/pc/ > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F > Glade-users maillist - Glade-users@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/glade-users =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F Schoenere E-Mails - kinderleicht zu bedienen und 37xTestsieger WEB.DE FreeMail Deutschlands beste E-Mail - http://f.web.de/=3Fmc=3D021127 From f.parzefall@multitest.de Wed Aug 6 13:52:31 2003 From: f.parzefall@multitest.de (f.parzefall@multitest.de) Date: Wed, 6 Aug 2003 14:52:31 +0200 Subject: [Glade-users] glade-2 ported to windows? Message-ID: Hi list, due to some framegrabber trouble I seem to be forced to temporarily run my programs under Windos :-(. The pitty is I converted the projects to glade-2 meanwhile and now I'd need glade-2 for Windows or at least a good advice how to hack configure.sh et al to get it all compiled (preferably in the cygwin enfiroment). Any hints? Franz --------------------------------------------------------------------------- Franz Parzefall Vision Systems Multitest elektronische Systeme GmbH Aeussere Oberaustr. 4 83026 Rosenheim Germany Tel: +49 (0)8031 406 473 Fax: +49 (0)8031 406 420 Email: f.parzefall@multitest.de Web: www.multitest.de --------------------------------------------------------------------------- ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From manu@sumerusolutions.com Thu Aug 7 00:26:38 2003 From: manu@sumerusolutions.com (Manu C S) Date: Wed, 6 Aug 2003 18:26:38 -0500 (CDT) Subject: [Glade-users] gnome warning Message-ID: Hi, When I run a gtk application (built using glade) on a RH7.3 box running gnome as my desktop, I get the following message: GnomeUI-Warning **: While connecting to session manager: Authentication Rejected, reason: None of the authentication protocols specified are supported and host-based authentication failed. Can anyone explain why this message appears and how to fix it? -- Regards, Manu From ravula_venkat7@yahoo.co.in Thu Aug 7 11:32:10 2003 From: ravula_venkat7@yahoo.co.in (=?iso-8859-1?q?venkatesh=20reddy=20ravula?=) Date: Thu, 7 Aug 2003 11:32:10 +0100 (BST) Subject: [Glade-users] how to export C code to Glade Message-ID: <20030807103210.17692.qmail@web8106.mail.in.yahoo.com> hi gunther, sorry for giving mail directly to your mail id. but my problam is how to export C code to glade. that means i have written one application in C. now i have to give GUI for that application. so can i import that C code into glade. please help if any body knows. if any body have example in this regord please help me sincerely venkatesh ________________________________________________________________________ Send free SMS using the Yahoo! Messenger. Go to http://in.mobile.yahoo.com/new/pc/ From john@jcoppens.com Thu Aug 7 15:40:18 2003 From: john@jcoppens.com (John Coppens) Date: Thu, 7 Aug 2003 11:40:18 -0300 Subject: [Glade-users] GtkTreeView - row select event? Message-ID: <20030807114018.4058d178.john@jcoppens.com> Hello people. I'm getting my feet wet with the GtkTreeStore & friends, and was looking for a way to get an event each time the user selects another item in the treeview. The row-activate requires a double click, I'm not happy about that. Is there a way to get events with just selecting? Like the row-selected event in the old gtk 1.xx CList? Is it necessary to hang events to each iter? Can someone give me a hint where to start looking? Thanks John From john@jcoppens.com Thu Aug 7 16:16:55 2003 From: john@jcoppens.com (John Coppens) Date: Thu, 7 Aug 2003 12:16:55 -0300 Subject: [Glade-users] how to export C code to Glade In-Reply-To: <20030807103210.17692.qmail@web8106.mail.in.yahoo.com> References: <20030807103210.17692.qmail@web8106.mail.in.yahoo.com> Message-ID: <20030807121655.6161dbd2.john@jcoppens.com> On Thu, 7 Aug 2003 11:32:10 +0100 (BST) venkatesh reddy ravula wrote: > hi gunther, > > sorry for giving mail directly to your mail id. > > but my problam is how to export C code to glade. > that means i have written one application in C. now i > have to give GUI for that application. so can i import > that C code into glade. Hi Venkatesh 1) Design the GUI first. 2) Copy your old C files (.c and .h) to the src directory, 3) Add them to the Makefile.am 4) Call the correct routines from the callbacks in callbacks.c That's it... (Well it may not be that easy, but that's the procedure) John > > please help if any body knows. > if any body have example in this regord please help me > > sincerely > venkatesh > > ________________________________________________________________________ > Send free SMS using the Yahoo! Messenger. Go to > http://in.mobile.yahoo.com/new/pc/ > _______________________________________________ > Glade-users maillist - Glade-users@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/glade-users From Remi@Cohen-Scali.com Thu Aug 7 21:26:54 2003 From: Remi@Cohen-Scali.com (=?ISO-8859-1?Q?R=E9mi_Cohen-Scali?=) Date: Thu, 07 Aug 2003 22:26:54 +0200 Subject: [Glade-users] GtkTreeView - row select event? In-Reply-To: <20030807114018.4058d178.john@jcoppens.com> References: <20030807114018.4058d178.john@jcoppens.com> Message-ID: <3F32B60E.5010908@Cohen-Scali.com> Get the GtkTreeSelection object on your treeview (gtk_tree_view_get_selection) then listen for "changed" events g_signal_connect (G_OBJECT (selection), "changed", G_CALLBACK (selection_changed_cb), data) with callback signature static void selection_changed_cb (GtkTreeSelection *selection, gpointer data) John Coppens wrote: >Hello people. > >I'm getting my feet wet with the GtkTreeStore & friends, and was looking >for a way to get an event each time the user selects another item in the >treeview. > >The row-activate requires a double click, I'm not happy about that. Is >there a way to get events with just selecting? Like the row-selected event >in the old gtk 1.xx CList? Is it necessary to hang events to each iter? > >Can someone give me a hint where to start looking? > >Thanks >John >_______________________________________________ >Glade-users maillist - Glade-users@lists.ximian.com >http://lists.ximian.com/mailman/listinfo/glade-users > > From john@jcoppens.com Fri Aug 8 03:05:01 2003 From: john@jcoppens.com (John Coppens) Date: Thu, 7 Aug 2003 23:05:01 -0300 Subject: [Glade-users] GtkTreeView - row select event? In-Reply-To: <3F32B60E.5010908@Cohen-Scali.com> References: <20030807114018.4058d178.john@jcoppens.com> <3F32B60E.5010908@Cohen-Scali.com> Message-ID: <20030807230501.359532e3.john@jcoppens.com> On Thu, 07 Aug 2003 22:26:54 +0200 R=E9mi Cohen-Scali wrote: > Get the GtkTreeSelection object on your treeview=20 > (gtk_tree_view_get_selection) then listen for > "changed" events >=20 > g_signal_connect (G_OBJECT (selection), "changed", G_CALLBACK=20 > (selection_changed_cb), data) Hello R=E9mi, Thanks for the reply. I had noticed the 'changed event', but I read in the GTK reference: "Emitted whenever the selection has (possibly) changed. Please note that this signal is mostly a hint. It may only be emitted once when a range of rows are selected, and it may occasionally be emitted when nothing has happened." This didn't give me a very convincing impression... Is this wrong? Or is is necessary to keep a copy of the selection and compare it each time an event arrives? John From esaracco@noos.fr Fri Aug 8 08:24:06 2003 From: esaracco@noos.fr (Emmanuel Saracco) Date: 08 Aug 2003 09:24:06 +0200 Subject: [Glade-users] GtkTreeView - row select event? In-Reply-To: <20030807114018.4058d178.john@jcoppens.com> References: <20030807114018.4058d178.john@jcoppens.com> Message-ID: <1060327446.501.6.camel@badiou> Le jeu 07/08/2003 � 16:40, John Coppens a �crit : > Hello people. hi john, > I'm getting my feet wet with the GtkTreeStore & friends, and was looking > for a way to get an event each time the user selects another item in the > treeview. > > The row-activate requires a double click, I'm not happy about that. Is > there a way to get events with just selecting? Like the row-selected event > in the old gtk 1.xx CList? Is it necessary to hang events to each iter? > > Can someone give me a hint where to start looking? use "cursor_changed" + "button_release_event" and test if there is really something selected when those events occured with "gtk_tree_view_get_selection" and "gtk_tree_selection_get_selected". bye -- Emmanuel Saracco - esaracco@noos.fr http://emmanuel.saracco.free.fr From g_mitter@web.de Fri Aug 8 13:09:48 2003 From: g_mitter@web.de (=?iso-8859-1?Q? G=FCnther=20Mittermayer ?=) Date: Fri, 8 Aug 2003 14:09:48 +0200 Subject: [Glade-users] List Widgets.. Message-ID: <200308081209.h78C9mQ11440@mailgate5.cinetic.de> Hi all, I 'm struggling right now trying to understand how to deal with List Widge= ts.. Already read some of the API documentation, where these nice functions are= showed, but I don't understand where should I place my code... being more specific, in interfaces.c, I saw that glade creates the ListVie= w with the gtk=5Flist=5Fstore=5Fnew (), but it is called without parameters, and= therefore, my list is created, but empty. The doubts: *If I want a list with, say 3 columns, should I change the call of gtk=5Flis= t=5Fstore=5Fnew in interfaces.c=3F=3F I think glade will overwrite it anyway, so I= t doen't make much sense to me... Where should I define then my columns=3F *How do I retrieve the view in order to attach it to the model=3F *Is there any tutorial or running example on Tree / List widgets that I co= uld take a look=3F=3F=3F thanks, g=FCnther. =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= Die sicherste Form der Kommunikation: E-Mails verschluesseln, Spam-Filter,= Adressverifizierung, digitale Unterschrift: http://freemail.web.de From rgiles@telebyte.com Fri Aug 8 13:09:41 2003 From: rgiles@telebyte.com (Rikke D. Giles) Date: Fri, 8 Aug 2003 05:09:41 -0700 Subject: [Glade-users] List Widgets.. In-Reply-To: <200308081209.h78C9mQ11440@mailgate5.cinetic.de>; from g_mitter@web.de on Fri, Aug 08, 2003 at 05:09:48 -0700 References: <200308081209.h78C9mQ11440@mailgate5.cinetic.de> Message-ID: <20030808120941.GC4978@lavender> Use gtk_list_store_set_column_types(), and other such functions for changing the list parameters and don't mess with interface.c. Instead write a function that's called in main.c to set your tree/list up. Cheers, Rikke P.S. I know this is confusing, the new gtk2.0 list/tree/text stuff is pretty darn convoluted. It's slower than molasses in January too if you are using a big list or tree :(, requiring extensive coding around it. Ohh well. On 2003.08.08 05:09, =?iso-8859-1?Q? G=FCnther=20Mittermayer ?= wrote: > Hi all, > > I 'm struggling right now trying to understand how to deal with List > Widgets.. > > Already read some of the API documentation, where these nice functions > are showed, but I don't understand where should I place my code... > > being more specific, in interfaces.c, I saw that glade creates the > ListView with the gtk_list_store_new (), but it is called without > parameters, and therefore, my list is created, but empty. > > The doubts: > > *If I want a list with, say 3 columns, should I change the call of > gtk_list_store_new in interfaces.c?? I think glade will overwrite it > anyway, so It doen't make much sense to me... Where should I define > then my columns? > > *How do I retrieve the view in order to attach it to the model? > > *Is there any tutorial or running example on Tree / List widgets that > I could take a look??? > > thanks, > > g�nther. > > __________________________________________________________________________ > Die sicherste Form der Kommunikation: E-Mails verschluesseln, > Spam-Filter, > Adressverifizierung, digitale Unterschrift: http://freemail.web.de > > _______________________________________________ > Glade-users maillist - Glade-users@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/glade-users > From Remi@Cohen-Scali.com Fri Aug 8 10:34:25 2003 From: Remi@Cohen-Scali.com (=?ISO-8859-1?Q?R=E9mi_Cohen-Scali?=) Date: Fri, 08 Aug 2003 11:34:25 +0200 Subject: [Glade-users] GtkTreeView - row select event? In-Reply-To: <20030807230501.359532e3.john@jcoppens.com> References: <20030807114018.4058d178.john@jcoppens.com> <3F32B60E.5010908@Cohen-Scali.com> <20030807230501.359532e3.john@jcoppens.com> Message-ID: <3F336EA1.9060309@Cohen-Scali.com> Yes you can then test if there's a selection with 'get_selected'. Another way exists by registering a select func. here is an example of code (from gpdf): static gboolean gpdf_bookmarks_view_bookmark_select_func (GtkTreeSelection *selection, GtkTreeModel *model, GtkTreePath *path, gboolean path_currently_selected, gpointer data) { GPdfBookmarksView *bookmarks_view; GPdfBookmarksViewPrivate *priv; GValue selection_item = {0,}; GtkTreeIter iterator; OutlineItem *item; gboolean ret = FALSE; bookmarks_view = GPDF_BOOKMARKS_VIEW (data); g_return_val_if_fail (GPDF_IS_NON_NULL_BOOKMARKS_VIEW (bookmarks_view), FALSE); do { priv = bookmarks_view->priv; gtk_tree_model_get_iter (GTK_TREE_MODEL (priv->model), &iterator, path); /* handle only if is about to be selected */ if (!gtk_tree_selection_get_selected (selection, &model, &iterator)) { gtk_tree_model_get_value (GTK_TREE_MODEL (priv->model), &iterator, GPDF_BKVIEW_COLUMN4, &selection_item); item = (OutlineItem *)g_value_peek_pointer ((const GValue*) &selection_item); gpdf_bookmarks_view_emit_bookmark_selected (bookmarks_view, item->getAction ()); } ret = TRUE; } while (0); return ret; } Note the 'if (!gtk_tree_selection_get_selected'. You may compare this use with another that update sensitivity of some buttons and using the "changed" signal. static void gpdf_bookmarks_view_update_popup_actions (GPdfBookmarksView *bookmarks_view) { GPdfBookmarksViewPrivate *priv; GtkTreeSelection *selection; GtkTreeModel *model; GtkTreeIter iter; G_List *selrows; GtkTreePath *path; GtkWidget *item; gboolean is_expandable = FALSE, is_expanded = FALSE; g_return_if_fail (GPDF_IS_NON_NULL_BOOKMARKS_VIEW (bookmarks_view)); priv = bookmarks_view->priv; model = GTK_TREE_MODEL (priv->model); selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (priv->treeview)); selrows = gtk_tree_selection_get_selected_rows (selection, &model); g_message ("gpdf_bookmarks_view_update_popup_actions: %d rows selected", g_list_length (selrows)); if (g_list_length (selrows) == 1) { path = (GtkTreePath *)g_list_nth_data (selrows, 0); g_message ("gpdf_bookmarks_view_update_popup_actions: selected path = '%s'", gtk_tree_path_to_string (path)); if (gtk_tree_model_get_iter (model, &iter, path)) { g_message ("gpdf_bookmarks_view_update_popup_actions: iterator = '%s'", gtk_tree_model_get_string_from_iter(model, &iter)); is_expandable = gtk_tree_model_iter_has_child(GTK_TREE_MODEL (priv->model), &iter); is_expanded = gtk_tree_view_row_expanded (GTK_TREE_VIEW (priv->treeview), path); } } item = gtk_item_factory_get_widget (priv->ifactory, POPUP_MENU_EXPAND_ITEM_PATH); gtk_widget_set_sensitive (item, is_expandable && !is_expanded); item = gtk_item_factory_get_widget (priv->ifactory, POPUP_MENU_COLLAPSE_ITEM_PATH); gtk_widget_set_sensitive (item, is_expandable && is_expanded); } static void gpdf_bookmarks_view_selection_changed_cb (GtkTreeSelection *selection, gpointer data) { GPdfBookmarksView *bookmarks_view = GPDF_BOOKMARKS_VIEW (data); g_return_if_fail (GPDF_IS_NON_NULL_BOOKMARKS_VIEW (bookmarks_view)); gpdf_bookmarks_view_update_popup_actions (bookmarks_view); } You can have full file access by checking out the gpdf/xpdf/gpdf-bookmarks-view.c from gpdf-outlines branch in gnome CVS repository. cvs co -r gpdf-outlines gpdf/xpdf/gpdf-bookmarks-view.c Hope it will help John Coppens wrote: >On Thu, 07 Aug 2003 22:26:54 +0200 >R�mi Cohen-Scali wrote: > > > >>Get the GtkTreeSelection object on your treeview >>(gtk_tree_view_get_selection) then listen for >>"changed" events >> >>g_signal_connect (G_OBJECT (selection), "changed", G_CALLBACK >>(selection_changed_cb), data) >> >> > >Hello R�mi, > >Thanks for the reply. I had noticed the 'changed event', but I read in the >GTK reference: > >"Emitted whenever the selection has (possibly) changed. Please note that >this signal is mostly a hint. It may only be emitted once when a range of >rows are selected, and it may occasionally be emitted when nothing has >happened." > >This didn't give me a very convincing impression... Is this wrong? Or is >is necessary to keep a copy of the selection and compare it each time an >event arrives? > >John > > > From john@jcoppens.com Sat Aug 9 17:11:49 2003 From: john@jcoppens.com (John Coppens) Date: Sat, 9 Aug 2003 13:11:49 -0300 Subject: [Glade-users] GtkTreeView - row select event? In-Reply-To: <3F336EA1.9060309@Cohen-Scali.com> References: <20030807114018.4058d178.john@jcoppens.com> <3F32B60E.5010908@Cohen-Scali.com> <20030807230501.359532e3.john@jcoppens.com> <3F336EA1.9060309@Cohen-Scali.com> Message-ID: <20030809131149.479fd229.john@jcoppens.com> On Fri, 08 Aug 2003 11:34:25 +0200 R=E9mi Cohen-Scali wrote: > Yes you can then test if there's a selection with 'get_selected'. > Another way exists by registering a select func. > here is an example of code (from gpdf): I did a much more simpler thing, maybe this will frighten people who read this less (the requirement is that only one item gets selected, of course): void on_card_view_cursor_changed (GtkTreeView *treeview, gpointer user_data) { GtkTreeModel *tstore; GtkTreeSelection *tsel; GtkTreeIter iter; GValue value; memset (&value, 0, sizeof (value)); tsel =3D gtk_tree_view_get_selection(treeview); if (gtk_tree_selection_get_selected(tsel, &tstore, &iter)) { gtk_tree_model_get_value(tstore, &iter, 1, &value); do_something_with_this(g_value_get_uint(&value)); } } Note: I have two values in each iter: A name, and a number which I use to look up records in a database. I pass the number to the 'do_something_with_this' function to show the record on a form. Hope this helps someone... John From f.parzefall@multitest.de Mon Aug 11 13:30:25 2003 From: f.parzefall@multitest.de (f.parzefall@multitest.de) Date: Mon, 11 Aug 2003 14:30:25 +0200 Subject: [Glade-users] glade-2 on windows? Message-ID: Hi, is there anyone out there who has successfully compiled a glade-2 or gtk2 application on windows under the cygwin package? I had some hard days until it went through autogen and make and it now copiles ok. But when I try to start the program I get the message: (process:263): Gdk-WARNING **: locale not supported by C library (process:263): Gdk-WARNING **: locale not supported by Xlib (process:263): Gdk-WARNING **: can not set locale modifiers Gtk-ERROR **: Incompatible build! The code using GTK+ thinks GtkBox is of different size than it actually is in this build of GTK+. On Windows, this probably means that you have compiled your code with gcc without the -fnative-struct (or -mms-bitfields) switch, or that you are using an unsupported compiler. aborting... Aborted (core dumped) I tried gcc2 with -fnative-struct and gcc3 with -mms-bitfields but it's all the same. Anyone a clue? Seems that I got definitely stuck here. bye Franz --------------------------------------------------------------------------- Franz Parzefall Vision Systems Multitest elektronische Systeme GmbH Aeussere Oberaustr. 4 83026 Rosenheim Germany Tel: +49 (0)8031 406 473 Fax: +49 (0)8031 406 420 Email: f.parzefall@multitest.de Web: www.multitest.de --------------------------------------------------------------------------- ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From jdespatis@yahoo.fr Mon Aug 11 14:11:04 2003 From: jdespatis@yahoo.fr (=?iso-8859-1?q?J=E9r=F4me=20DESPATIS?=) Date: Mon, 11 Aug 2003 15:11:04 +0200 (CEST) Subject: [Glade-users] Glade 3 ? :) Message-ID: <20030811131104.23706.qmail@web11704.mail.yahoo.com> Hello Some progress is done on glade 3 ? :) The news from Damon on http://glade.gnome.org/todo.html will have soon its birthday :) What new functionnalities glade3 will propose ? thanks enzo ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais ! Yahoo! Mail : http://fr.mail.yahoo.com From fubarbaz@bigpond.com Tue Aug 12 03:27:55 2003 From: fubarbaz@bigpond.com (twb) Date: Tue, 12 Aug 2003 12:27:55 +1000 Subject: [Glade-users] java? yuk Message-ID: <20030812122755.09242f7e.fubarbaz@bigpond.com> I am being forced by my inbred NT-based university to program in java / swing. Strangely enough, I happen to love the glade UI-design interface. Are there any crufty hacks around that'll turn a .glade file into something resembling java/swing (or awt)? --trent -- The best answer when anybody asks you if you're any good with explosives is to hold up two open hands and simply say "Ten". -- Anthony DeBoer From oogothoo@yahoo.fr Tue Aug 12 15:08:49 2003 From: oogothoo@yahoo.fr (=?iso-8859-1?q?goth=20goth?=) Date: Tue, 12 Aug 2003 16:08:49 +0200 (CEST) Subject: [Glade-users] libglade, GtkDrawingArea, GdkEvents ? Message-ID: <20030812140849.73867.qmail@web40412.mail.yahoo.com> Hello, I realise a simple application using libglade 2, Gtk 2.2 : a GtkDrawingArea in a GtkWindow. window : signal destroy connect to gtk_main_quit drawingarea : signals button_release_event and motion_notify_event on two function who g_print event. drawingarea use the string "00000000001000000100" to the GdkEvent (activate GDK_MOTION_NOTIFY_MASK and GDK_BUTTON_RELEASE_MASK). Events are not send : no error message but no action What is the problem ? This is the code : ---------------------------------- #include #include gboolean on_drawingarea_motion_notify_event(GtkWidget *widget, GdkEventMotion *event) { g_print("%f %f.\n", event->x, event->y); return TRUE; } gboolean on_drawingarea_button_release_event(GtkWidget *widget, GdkEventButton *event) { g_print("bouton = %d.\n", event->button); return TRUE; } int main(int argc, char **argv) { GladeXML *xml; gtk_init(&argc, &argv); glade_init(); xml = glade_xml_new("test.glade", NULL, NULL); if(!xml) { g_warning("error loading gtk.glade"); return 1; } else { glade_xml_signal_autoconnect(xml); gtk_main(); return 0; } } ------------------------------- This is the test.glade : True window GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False True False True True True GDK_POINTER_MOTION_MASK | GDK_BUTTON_RELEASE_MASK GDK_EXTENSION_EVENTS_CURSOR ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais ! Yahoo! Mail : http://fr.mail.yahoo.com From e98cuenc@free.fr Tue Aug 12 17:13:30 2003 From: e98cuenc@free.fr (e98cuenc@free.fr) Date: Tue, 12 Aug 2003 18:13:30 +0200 Subject: [Glade-users] libglade, GtkDrawingArea, GdkEvents ? In-Reply-To: <20030812140849.73867.qmail@web40412.mail.yahoo.com> References: <20030812140849.73867.qmail@web40412.mail.yahoo.com> Message-ID: <1060704810.3f39122a78fbd@impt2-2.free.fr> In addition of adding the callback in glade, you should also connect to the callback on your code using glade_xml_signal_connect, or connect at the same time all the callbacks using glade_xml_signal_autoconnect (if you want to use autoconnect, you should export the symbols of your executable. Using the - export-dynamic option of libtool should do the trick in a portable way). Cheers, Selon goth goth : > Hello, > > I realise a simple application using libglade 2, Gtk > 2.2 : a GtkDrawingArea in a GtkWindow. > > window : signal destroy connect to gtk_main_quit > drawingarea : signals button_release_event and > motion_notify_event on two function who g_print event. > > drawingarea use the string "00000000001000000100" to > the GdkEvent (activate GDK_MOTION_NOTIFY_MASK and > GDK_BUTTON_RELEASE_MASK). > > Events are not send : no error message but no action > What is the problem ? > > This is the code : > > ---------------------------------- > > #include > #include > > gboolean > on_drawingarea_motion_notify_event(GtkWidget *widget, > GdkEventMotion *event) > { > g_print("%f %f.\n", event->x, event->y); > return TRUE; > } > > > > gboolean > on_drawingarea_button_release_event(GtkWidget *widget, > GdkEventButton *event) > { > g_print("bouton = %d.\n", event->button); > return TRUE; > } > > > int > main(int argc, char **argv) > { > GladeXML *xml; > > gtk_init(&argc, &argv); > glade_init(); > > xml = glade_xml_new("test.glade", NULL, NULL); > > if(!xml) > { > g_warning("error loading gtk.glade"); > return 1; > } else { > glade_xml_signal_autoconnect(xml); > gtk_main(); > return 0; > } > } > > ------------------------------- > > This is the test.glade : > > > "http://glade.gnome.org/glade-2.0.dtd"> > > > > > True > translatable="yes">window > GTK_WINDOW_TOPLEVEL > name="window_position">GTK_WIN_POS_NONE > False > True > name="destroy_with_parent">False > last_modification_time="Mon, 11 Aug 2003 22:50:33 > GMT"/> > > > > True > True > True > GDK_POINTER_MOTION_MASK > | GDK_BUTTON_RELEASE_MASK > name="extension_events">GDK_EXTENSION_EVENTS_CURSOR > handler="on_drawingarea_motion_notify_event" > last_modification_time="Mon, 11 Aug 2003 22:57:56 > GMT"/> > handler="on_drawingarea_button_release_event" > last_modification_time="Mon, 11 Aug 2003 22:58:03 > GMT"/> > > > > > > > > > > > ___________________________________________________________ > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais ! > Yahoo! Mail : http://fr.mail.yahoo.com > _______________________________________________ > Glade-users maillist - Glade-users@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/glade-users > From pop.mail.yahoo.fr@listsmx.ximian.com Tue Aug 12 23:48:30 2003 From: pop.mail.yahoo.fr@listsmx.ximian.com (oogothoo) Date: Wed, 13 Aug 2003 00:48:30 +0200 Subject: [Glade-users] libglade, GtkDrawingArea, GdkEvents ? In-Reply-To: <1060704810.3f39122a78fbd@impt2-2.free.fr> References: <20030812140849.73867.qmail@web40412.mail.yahoo.com> <1060704810.3f39122a78fbd@impt2-2.free.fr> Message-ID: <200308130048.31087.oogothoo@yahoo.fr> Thanks for your help ! I modify my code, with the same file glade : #include #include gboolean motion_notify_event(GtkWidget *widget, GdkEventMotion *event) { g_print("%f %f.\n", event->x, event->y); return TRUE; } gboolean button_release_event(GtkWidget *widget, GdkEventButton *event) { g_print("bouton =3D %d.\n", event->button); return TRUE; } int main(int argc, char **argv) { GladeXML *xml; gtk_init(&argc, &argv); glade_init(); =09 xml =3D glade_xml_new("test.glade", NULL, NULL); if(!xml) { g_warning("error loading gtk.glade"); return 1; } else { gtk_widget_add_events(glade_xml_get_widget(xml, "drawingarea"), GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK); glade_xml_signal_connect(xml, "on_drawingarea_motion_notify_event", G_CALLBACK(motion_notify_event)); glade_xml_signal_connect(xml, "on_drawingarea_button_release_event", G_CALLBACK(button_release_event)); =09 glade_xml_signal_connect(xml, "on_window_destroy", G_CALLBACK(gtk_main_quit)); gtk_main(); return 0; } } But only the 'motion_notify_event' work.=20 'button_release_event' doesn't work but no error in log... If i delete the call to gtk_widget_add_events, event on drawingarea events= =20 doesn't work. What is the problem ? Le Mardi 12 Ao=FBt 2003 18:13, e98cuenc@free.fr a =E9crit : > In addition of adding the callback in glade, you should also connect to t= he > callback on your code using glade_xml_signal_connect, or connect at the > same time all the callbacks using glade_xml_signal_autoconnect (if you wa= nt > to use autoconnect, you should export the symbols of your executable.=20 > Using the - export-dynamic option of libtool should do the trick in a > portable way). > > Cheers, > > Selon goth goth : > > Hello, > > > > I realise a simple application using libglade 2, Gtk > > 2.2 : a GtkDrawingArea in a GtkWindow. > > > > window : signal destroy connect to gtk_main_quit > > drawingarea : signals button_release_event and > > motion_notify_event on two function who g_print event. > > > > drawingarea use the string "00000000001000000100" to > > the GdkEvent (activate GDK_MOTION_NOTIFY_MASK and > > GDK_BUTTON_RELEASE_MASK). > > > > Events are not send : no error message but no action > > What is the problem ? > > > > This is the code : > > > > ---------------------------------- > > > > #include > > #include > > > > gboolean > > on_drawingarea_motion_notify_event(GtkWidget *widget, > > GdkEventMotion *event) > > { > > g_print("%f %f.\n", event->x, event->y); > > return TRUE; > > } > > > > > > > > gboolean > > on_drawingarea_button_release_event(GtkWidget *widget, > > GdkEventButton *event) > > { > > g_print("bouton =3D %d.\n", event->button); > > return TRUE; > > } > > > > > > int > > main(int argc, char **argv) > > { > > GladeXML *xml; > > > > gtk_init(&argc, &argv); > > glade_init(); > > > > xml =3D glade_xml_new("test.glade", NULL, NULL); > > > > if(!xml) > > { > > g_warning("error loading gtk.glade"); > > return 1; > > } else { > > glade_xml_signal_autoconnect(xml); > > gtk_main(); > > return 0; > > } > > } > > > > ------------------------------- > > > > This is the test.glade : > > > > > > > "http://glade.gnome.org/glade-2.0.dtd"> > > > > > > > > > > True > > > translatable=3D"yes">window > > GTK_WINDOW_TOPLEVEL > > > name=3D"window_position">GTK_WIN_POS_NONE > > False > > True > > > name=3D"destroy_with_parent">False > > > last_modification_time=3D"Mon, 11 Aug 2003 22:50:33 > > GMT"/> > > > > > > > > True > > True > > True > > GDK_POINTER_MOTION_MASK > > > > | GDK_BUTTON_RELEASE_MASK > > > > > name=3D"extension_events">GDK_EXTENSION_EVENTS_CURSOR > > > handler=3D"on_drawingarea_motion_notify_event" > > last_modification_time=3D"Mon, 11 Aug 2003 22:57:56 > > GMT"/> > > > handler=3D"on_drawingarea_button_release_event" > > last_modification_time=3D"Mon, 11 Aug 2003 22:58:03 > > GMT"/> > > > > > > > > > > > > > > > > > > > > > > ___________________________________________________________ > > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran=E7ais ! > > Yahoo! Mail : http://fr.mail.yahoo.com > > _______________________________________________ > > Glade-users maillist - Glade-users@lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/glade-users From rjshaw@iprimus.com.au Wed Aug 13 02:16:41 2003 From: rjshaw@iprimus.com.au (Russell Shaw) Date: Wed, 13 Aug 2003 11:16:41 +1000 Subject: [Glade-users] libglade, GtkDrawingArea, GdkEvents ? In-Reply-To: <20030812140849.73867.qmail@web40412.mail.yahoo.com> References: <20030812140849.73867.qmail@web40412.mail.yahoo.com> Message-ID: <3F399179.4090703@iprimus.com.au> goth goth wrote: > Hello, > > I realise a simple application using libglade 2, Gtk > 2.2 : a GtkDrawingArea in a GtkWindow. > > window : signal destroy connect to gtk_main_quit > drawingarea : signals button_release_event and > motion_notify_event on two function who g_print event. > > drawingarea use the string "00000000001000000100" to > the GdkEvent (activate GDK_MOTION_NOTIFY_MASK and > GDK_BUTTON_RELEASE_MASK). > > Events are not send : no error message but no action > What is the problem ? From the docs: To receive mouse events on a drawing area, you will need to enable them with gtk_widget_add_events(). From pop.mail.yahoo.fr@listsmx.ximian.com Wed Aug 13 09:10:01 2003 From: pop.mail.yahoo.fr@listsmx.ximian.com (oogothoo) Date: Wed, 13 Aug 2003 10:10:01 +0200 Subject: [Glade-users] libglade, GtkDrawingArea, GdkEvents ? In-Reply-To: <3F399179.4090703@iprimus.com.au> References: <20030812140849.73867.qmail@web40412.mail.yahoo.com> <3F399179.4090703@iprimus.com.au> Message-ID: <200308131010.01553.oogothoo@yahoo.fr> Yes, but my problem is : Only motion_notify_event work. =2E.. gtk_widget_add_events(glade_xml_get_widget(xml,"drawingarea"), GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK); glade_xml_signal_connect(xml, "on_drawingarea_motion_notify_event", G_CALLBACK(motion_notify_event)); glade_xml_signal_connect(xml, "on_drawingarea_button_release_event", G_CALLBACK(button_release_event)); =2E.. The function button_release_event is never call. ??? Le Mercredi 13 Ao=FBt 2003 03:16, Russell Shaw a =E9crit : > goth goth wrote: > > Hello, > > > > I realise a simple application using libglade 2, Gtk > > 2.2 : a GtkDrawingArea in a GtkWindow. > > > > window : signal destroy connect to gtk_main_quit > > drawingarea : signals button_release_event and > > motion_notify_event on two function who g_print event. > > > > drawingarea use the string "00000000001000000100" to > > the GdkEvent (activate GDK_MOTION_NOTIFY_MASK and > > GDK_BUTTON_RELEASE_MASK). > > > > Events are not send : no error message but no action > > What is the problem ? > > From the docs: > > To receive mouse events on a drawing area, you will > need to enable them with gtk_widget_add_events(). > > _______________________________________________ > Glade-users maillist - Glade-users@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/glade-users From cjcollier@colliertech.org Thu Aug 14 17:19:55 2003 From: cjcollier@colliertech.org (C.J. Collier) Date: Thu, 14 Aug 2003 09:19:55 -0700 Subject: [Glade-users] libglademm Message-ID: <1060877994.2011.2.camel@karma.localnet> Can someone point me toward a well-written, well-documented application that uses libglademm? I don't know how to set up an object hierarchy that takes advantage of the XML data. Help! I'd love to use this library, but I just don't know how ;) C.J. From xigorj@sezam.net Sat Aug 16 14:48:40 2003 From: xigorj@sezam.net (Igor Jovanovic) Date: 16 Aug 2003 15:48:40 +0200 Subject: [Glade-users] big executable Message-ID: <1061041697.1843.13.camel@dominator.localdomain> Hi. I'm using glade2 2.0.0 under RH9. I created interface with a simple main window, 2 dialogs, 10 buttons and a few entry's with labels and one main menu. When i compile the project, executable file is 3.5Mb big !!! Why its so big ??? From olafandjasper@hushmail.com Wed Aug 20 21:55:50 2003 From: olafandjasper@hushmail.com (olafandjasper@hushmail.com) Date: Wed, 20 Aug 2003 13:55:50 -0700 Subject: [Glade-users] semi new Message-ID: <200308202055.h7KKtqlW031767@mailserver2.hushmail.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello List I am new to GTK/GLADE and have a question. What widgets or set of widgets should I use to display the results of a db query. I am poking around Glade but have not found anything, or I do not know how to build what I need. I will want a horziontal scroll bar. A vertical scroll bar maybe, not sure. The result set will be an unknow number of rows and 6 columns, all text fields. Thanks, Olaf -----BEGIN PGP SIGNATURE----- Note: This signature can be verified at https://www.hushtools.com/verify Version: Hush 2.3 wkYEARECAAYFAj9D4akACgkQsJfNyoeLaF6koACgt9ec+hdJdYyGL2csCId89iQVoVsA oLOwumfRWp8vocU+vIvIDcY5Y8j5 =/woB -----END PGP SIGNATURE----- Concerned about your privacy? Follow this link to get FREE encrypted email: https://www.hushmail.com/?l=2 Free, ultra-private instant messaging with Hush Messenger https://www.hushmail.com/services.php?subloc=messenger&l=434 Promote security and make money with the Hushmail Affiliate Program: https://www.hushmail.com/about.php?subloc=affiliate&l=427 From kms@passback.co.uk Thu Aug 21 23:59:10 2003 From: kms@passback.co.uk (Keith Sharp) Date: 21 Aug 2003 23:59:10 +0100 Subject: [Glade-users] semi new In-Reply-To: <200308202055.h7KKtqlW031767@mailserver2.hushmail.com> References: <200308202055.h7KKtqlW031767@mailserver2.hushmail.com> Message-ID: <1061506750.31889.1.camel@animal> --=-vi5Q7bot55Qu4ZvYLGYy Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2003-08-20 at 21:55, olafandjasper@hushmail.com wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 > Hello List > I am new to GTK/GLADE and have a question. What widgets or set of widget= s > should I use to display the results of a db query. I am poking around > Glade but have not found anything, or I do not know how to build what > I need. http://www.gnome-db.org/ Keith. --=-vi5Q7bot55Qu4ZvYLGYy Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQA/RU693hYOICG30CYRAjYSAJ4g63PpBftxEZIIiwFrCctPyxBsiwCdEtDJ 5sFlzf3fSyAPuhHyZyQGDkU= =EEgX -----END PGP SIGNATURE----- --=-vi5Q7bot55Qu4ZvYLGYy-- From vg560075@yahoo.co.in Fri Aug 22 07:27:42 2003 From: vg560075@yahoo.co.in (=?iso-8859-1?q?vikram=20gadagkar?=) Date: Fri, 22 Aug 2003 07:27:42 +0100 (BST) Subject: [Glade-users] how to use gthreads with glade Message-ID: <20030822062742.58751.qmail@web8205.mail.in.yahoo.com> Hi All I am sorry if this question has been asked earlier, but I tried to search in "google", but I didnt get any solution to my problem. I have implemented a test routine using gthreads in a application which is developed using glade and gtk-1.2.9. I have my own reasons to use gtk-1.2.9, so I have no intentions of upgrading to a newer version. When I compile the project I get these errors stating implicit function declaration for gdk_init and undefined functions reference to gdk_thread_enter and gdk_threads_leave. Could someone tell me what is the right way to configure glade to use gthreads. TIA Vikram Gadagkar ________________________________________________________________________ Yahoo! India Promos: Win TVs, Bikes, DVD players & more! Go to http://in.promos.yahoo.com From g_mitter@web.de Fri Aug 22 10:37:21 2003 From: g_mitter@web.de (=?iso-8859-1?Q? G=FCnther=20Mittermayer ?=) Date: Fri, 22 Aug 2003 11:37:21 +0200 Subject: [Glade-users] semi new Message-ID: <200308220937.h7M9bKQ20046@mailgate5.cinetic.de> Hi Olaf, You could try a List View... I think it's what you're looking for, somethi= ng like a table to which you can add lines on demand.. Unfotunalelly it's= a bit weird working with it in Glade. (you actually only create it, but a= ll handling should be done manually using gtk functions). I am currently working (in my spare time, that is) on a quick tutorial to = trees/lists, but it is still going to take a while. Meanwhile you could t= ry taking a look at: http://developer.gnome.org/doc/API/2.0/gtk/TreeWidget.html hope it helps. G=FCnther. schrieb am 20.08.03 22:57:07: >=20 > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 > Hello List > I am new to GTK/GLADE and have a question. What widgets or set of widget= s > should I use to display the results of a db query. I am poking around > Glade but have not found anything, or I do not know how to build what > I need. >=20 > I will want a horziontal scroll bar. A vertical scroll bar maybe, not > sure. The result set will be an unknow number of rows and 6 columns, >=20 > all text fields. >=20 > Thanks, > Olaf > -----BEGIN PGP SIGNATURE----- > Note: This signature can be verified at https://www.hushtools.com/verify= > Version: Hush 2.3 >=20 > wkYEARECAAYFAj9D4akACgkQsJfNyoeLaF6koACgt9ec+hdJdYyGL2csCId89iQVoVsA > oLOwumfRWp8vocU+vIvIDcY5Y8j5 > =3D/woB > -----END PGP SIGNATURE----- >=20 >=20 >=20 >=20 > Concerned about your privacy=3F Follow this link to get > FREE encrypted email: https://www.hushmail.com/=3Fl=3D2 >=20 > Free, ultra-private instant messaging with Hush Messenger > https://www.hushmail.com/services.php=3Fsubloc=3Dmessenger&l=3D434 >=20 > Promote security and make money with the Hushmail Affiliate Program:=20 > https://www.hushmail.com/about.php=3Fsubloc=3Daffiliate&l=3D427 > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F > Glade-users maillist - Glade-users@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/glade-users =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= Die sicherste Form der Kommunikation: E-Mails verschluesseln, Spam-Filter,= Adressverifizierung, digitale Unterschrift: http://freemail.web.de From g_mitter@web.de Wed Aug 27 15:25:38 2003 From: g_mitter@web.de (=?iso-8859-1?Q? G=FCnther=20Mittermayer ?=) Date: Wed, 27 Aug 2003 16:25:38 +0200 Subject: [Glade-users] glade-2 sizing error. Message-ID: <200308271425.h7REPcQ19079@mailgate5.cinetic.de> Hi all, I am getting the following message: Gtk-CRITICAL **: file gtkwidget.c: line 5140 (gtk=5Fwidget=5Fset=5Fsize=5Frequest)= : assertion 'height >=3D-1' failed looking on the web, it seems that that is a commo glade-2 problem (glade s= eems to place some sizes wrongly), but I'm not sure on how to fix it. Some= talk about hard coding in interfaces.c, but that doesn't seem to make any= sense to me, since glade will overwrite it any way.. any suggestions=3F thanks, G=FCnther. =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= Die sicherste Form der Kommunikation: E-Mails verschluesseln, Spam-Filter,= Adressverifizierung, digitale Unterschrift: http://freemail.web.de From john@jcoppens.com Wed Aug 27 23:21:34 2003 From: john@jcoppens.com (John Coppens) Date: Wed, 27 Aug 2003 19:21:34 -0300 Subject: [Glade-users] glade-2 sizing error. In-Reply-To: <200308271425.h7REPcQ19079@mailgate5.cinetic.de> References: <200308271425.h7REPcQ19079@mailgate5.cinetic.de> Message-ID: <20030827192134.560fa255.john@jcoppens.com> On Wed, 27 Aug 2003 16:25:38 +0200 "G=FCnther Mittermayer" wrote: > Hi all, >=20 > I am getting the following message: >=20 > Gtk-CRITICAL **: file gtkwidget.c: line 5140 > (gtk_widget_set_size_request): assertion 'height >=3D-1' failed >=20 > looking on the web, it seems that that is a commo glade-2 problem (glade > seems to place some sizes wrongly), but I'm not sure on how to fix it. > Some talk about hard coding in interfaces.c, but that doesn't seem to > make any sense to me, since glade will overwrite it any way.. >=20 > any suggestions? It is a glade error. Edit interface.c (near the end of development, because it gets rewritten after each change made with Glade), and change the -2's to -1. That should fix it. Someone mentioned he wrote a script to do this automatically. John >=20 > thanks, >=20 > G=FCnther. > _______________________________________________________________________ > ___ Die sicherste Form der Kommunikation: E-Mails verschluesseln, > Spam-Filter, Adressverifizierung, digitale Unterschrift: > http://freemail.web.de >=20 > _______________________________________________ > Glade-users maillist - Glade-users@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/glade-users From reshmi@sumerusolutions.com Thu Aug 28 20:49:07 2003 From: reshmi@sumerusolutions.com (Reshmi Jain) Date: Thu, 28 Aug 2003 14:49:07 -0500 (CDT) Subject: [Glade-users] Doubt on Gnome Druid Page. Message-ID: Hi, I have a doubt regarding Gnome Druid. In the second page of the Druid i have a check button. Until the check button is clicked, the forward button of that particular page of the Druid should be disabled. How can i do this? Is there any function which gives me the name of the current page,so that i can disable the forward button in that page alone, or is there any other way to do it? Thanking you, Regards, Reshmi. From g_mitter@web.de Thu Aug 28 13:50:49 2003 From: g_mitter@web.de (=?iso-8859-1?Q? G=FCnther=20Mittermayer ?=) Date: Thu, 28 Aug 2003 14:50:49 +0200 Subject: [Glade-users] selected row Message-ID: <200308281250.h7SComQ00919@mailgate5.cinetic.de> Hi all,=20 thanks for all the ideas, I ended up solving it by just setting a fixed si= ze to the buttons that were giving me the error. I found changing the XML= a bit to "aggressive" and having a different interfaces.c a bit too impro= ductive, since I'm not yet near the end of the program.... Well diff programming styles i guess ;) I got another doubt though. I got a list (GtkStore), where I show some da= ta. I wanted to show the properties of a highlighted list item on the click of= a button. To do that I need to get some reference to the highlighted row= , but I can't find the right signal to it.. =20 row=5Factivated is only called when I double-lick the row, cursor=5Fchanged is= only activated when I change the row with the arrow keys, and couldn't fi= gure out yet what toggle=5Fcursor=5Frow does..=20 spent some time in Gtk API looking for some "get=5Fselected=5Frow" without suc= cess... I think the answer might be on the Iterators, but couldn't yet fi= nd it... anyone got a shortcut=3F tks, G=FCnther. John Coppens schrieb am 28.08.03 00:23:04: >=20 > On Wed, 27 Aug 2003 16:25:38 +0200 > "G=FCnther Mittermayer" wrote: >=20 > > Hi all, > >=20 > > I am getting the following message: > >=20 > > Gtk-CRITICAL **: file gtkwidget.c: line 5140 > > (gtk=5Fwidget=5Fset=5Fsize=5Frequest): assertion 'height >=3D-1' failed > >=20 > > looking on the web, it seems that that is a commo glade-2 problem (gla= de > > seems to place some sizes wrongly), but I'm not sure on how to fix it.= > > Some talk about hard coding in interfaces.c, but that doesn't seem to > > make any sense to me, since glade will overwrite it any way.. > >=20 > > any suggestions=3F >=20 > It is a glade error. Edit interface.c (near the end of development, > because it gets rewritten after each change made with Glade), and change= > the -2's to -1. That should fix it. >=20 > Someone mentioned he wrote a script to do this automatically. >=20 > John >=20 > >=20 > > thanks, > >=20 > > G=FCnther. > > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F > > =5F=5F=5F Die sicherste Form der Kommunikation: E-Mails verschluesseln, > > Spam-Filter, Adressverifizierung, digitale Unterschrift: > > http://freemail.web.de > >=20 > > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F > > Glade-users maillist - Glade-users@lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/glade-users >=20 >=20 > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F > Glade-users maillist - Glade-users@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/glade-users =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= Die sicherste Form der Kommunikation: E-Mails verschluesseln, Spam-Filter,= Adressverifizierung, digitale Unterschrift: http://freemail.web.de From f.parzefall@multitest.de Fri Aug 29 05:45:09 2003 From: f.parzefall@multitest.de (f.parzefall@multitest.de) Date: Fri, 29 Aug 2003 06:45:09 +0200 Subject: [Glade-users] selected row Message-ID: Hi Guenther, > I got another doubt though. I got a list (GtkStore), where I show some data. > I wanted to show the properties of a highlighted list item on the click > of a button. To do that I need to get some reference to the highlighted > row, but I can't find the right signal to it.. > ... I used the button_release event for this. I'll append you my callback function. It reads out a single (!!!) line from a GtkTreeview: gboolean on_treeview_button_release_event(GtkWidget *widget, GdkEventButton *event, gpointer user_data) { GtkTreeSelection *selection; GtkTreeView *tree_view; GList *sel_row_list; char *dummy; if(event->type =3D=3D GDK_BUTTON_RELEASE) { printf(" button %d\n", event->button); tree_view =3D GTK_TREE_VIEW(lookup_widget(widget, "treeview_name")); selection =3D gtk_tree_view_get_selection(tree_view); sel_row_list =3D gtk_tree_selection_get_selected_rows(selection, NULL); dummy =3D gtk_tree_path_to_string((GtkTreePath*) sel_row_list->data); printf(" selected row: %s\n", dummy); g_free(dummy); } return FALSE; } hope this helps... Franz ----------------------------------------------------- Franz Parzefall Vision Systems Multitest elektronische Systeme GmbH Aeussere Oberaustra=DFe 4 D - 83026 Rosenheim Tel. +49-(0)8031-406-356 Fax +49-(0)8031-406-148 ----------------------------------------------------- ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************