where is the gtkwidget. file ...
I want to make a seletion box. but the contents of the box should be the files in the computer connect to my computer thro' serial port using null modem cable.is there and widget available for that of how can i make changes in a widget.Can i set differnt theams for differnt windows at a time .if i can please tell me how.i can only change to one them only by changing .gtkrc i want to have different thems for differnt window . how can i adjust the size of button ,want to have button in differnt sizes in the same window... -- __ http://www.linuxmail.org/ Now with e-mail forwarding for only US$5.95/yr Powered by Outblaze ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
succeeded in Xscreensaver+GTK on Solaris 2.8
I have been able to install Xscreensaver-4.09 (the latest version as of the date when I have sent this mail), with GTK+-2.2.1 on Solaris 2.8. It was really a tiring job, therefore I want to share what I have done to be able to install this tool: 1. Platform is Sun Solaris 2.8. 2. C Compiler is GCC v3.2 (http://gcc.gnu.org) 3. Not to mention, I have installed make-3.80, m4-1.4, autoconf-2.57, automake-1.7.3 (http://www.gnu.org). Some tarballs require aclocal-1.4 instead of aclocal and automake-1.4 instead of automake in $PATH, therefore I have manually created symbolic link to aclocal-1.4 and automake-1.4. (I don't know if this is automatically done-able during installation of these programs) configure script of autoconf, automake produces such Makefile's, in which they have PERL= identifier to show the full path of Perl. I have renamed it with PERL = perl-path -Iperl_package_path. The configure-make dance could not generate the -I option correctly, therefore I had developed just a small Perl script that is run between configure and make of the tools above. This can be done in all tarball installations, where Makefile's have this feature. 4. zlib-1.1.4 has been installed (http://www.gzip.org/lib). It is dependency of libpng. 5. libpng-1.2.5 has been installed (http://http.libpng.org). It is dependency of gtk. 6. libtiff-3.60-beta has been installed (http://www.libtiff.org). It is dependency of gtk. Its installation cannot copy *.h header files in tarball, to --prefix/include directory. that's why GTK configure complains about it with Cannot load TIFF Loader Therefore I have manually copied all header files, because each header calls the other. Also, I have copied libjpeg.a manually, to --prefix/lib directory. 7. JPEG library jpegsrc-6b has been installed (ftp://ftp.uu.net/graphics/jpeg/). It is dependency of gtk and Xscreensaver. Its installation cannot copy *.h header files in tarball, to --prefix/include directory. That's why GTK configure complains about it with Cannot load JPEG Loader Therefore I have manually copied all header files, because each header calls the other. Also, I have copied libjpeg.a manually, to --prefix/lib directory. Another workaround has just been announced, which was the best one, but it was too late for me to try it: (http://mail.gnome.org/archives/gtk-list/2003-April/msg00024.html) 8. libtool-1.4.3 has been installed (http://www.gnu.org). 9. pkg-config 0.15.0 has been installed (http://www.freedesktop.org/software/pkgconfig/). It is the dependency of glib. PKG_CONFIG_PATH environment variable -must- be set to --prefix/lib/pkgconfig directory. This is required by gtk. Before configure-make dance, add the three lines stated in README file, to the end of configure.in. 10. glib-2.2.1 has been installed (ftp://ftp.gtk.org/pub/gtk/v2.2). It is dependency of gtk. 11. pango-1.2.1 has been installed (ftp://ftp.gtk.org/pub/gtk/v2.2). It is dependency of gtk. 12. atk-1.2.0 has been installed (ftp://ftp.gtk.org/pub/gtk/v2.2). It is dependency of gtk. 13. gtk-2.2.1 has been installed (ftp://ftp.gtk.org/pub/gtk/v2.2). It is dependency of Xscreensaver. 14. libxml2-2.5.5 has been installed (http://www.xmlsoft.org). It is dependency of Xscreensaver. 15. python-2.2.2 has been installed (http://www.python.org). It is dependency of libglade. 16. pythonxml-0.8.2 has been installed (http://prdownloads.sourceforge.net/pyxml/PyXML-0.8.2.tar.gz). It is dependency of libglade. 17. libglade-2.0.1 has been installed (ftp.gnome.org/pub/GNOME/desktop/2.2/2.2.1/sources/libglade-2.0.1.tar.bz2). It is dependency of Xscreensaver. FINALLY WE ARE READY TO INSTALL XSCREENSAVER!! 18. Xscreensaver-4.09 has been installed ( http://www.jwz.org/xscreensaver). Since I have used Solaris' gettext and libiconv, I had to to do following: a. copy configure to configure.original. b. change #define ENABLE_NLS 1 with #undef ENABLE_NLS. (http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=19473) c. configure script has been called in this way: ./configure --prefix=install_dir --with-gtk --with-jpeg --with-xml \ --without-motif d. Add to the first line of intltool-merge -Iperl-package-dir option. e. make f. install NOW YOU CAN USE XSCREENSAVER WITH GTK!! Comments: GTK+ library has been only used in Xscreensaver demo. In the real program (ie. during real screensaver locking) GTK is never used. This can be proven by ldd `which xscreensaver` and all hacks in --prefix/lib/xscreensaver directory. None of them is dependent upon GTK. Only xscreensaver-demo is dependent of GTK. It took 2 months for me to understand to flow above. Utku ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: succeeded in Xscreensaver+GTK on Solaris 2.8
Hi, Utku Ozcan [EMAIL PROTECTED] writes: 3. Not to mention, I have installed make-3.80, m4-1.4, autoconf-2.57, automake-1.7.3 (http://www.gnu.org). Some tarballs require aclocal-1.4 instead of aclocal and automake-1.4 instead of automake in $PATH, therefore I have manually created symbolic link to aclocal-1.4 and automake-1.4. (I don't know if this is automatically done-able during installation of these programs) these packages require automake-1.4. That's why they explicitely use the versioned exectuable name. Instead of creating links to a wrong version, you should have installed automake-1.4. Recent patchlevels install versioned binaries and can coexist with automake-1.7 Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: succeeded in Xscreensaver+GTK on Solaris 2.8
Hi, Utku Ozcan writes: 3. Not to mention, I have installed make-3.80, m4-1.4, autoconf-2.57, automake-1.7.3 (http://www.gnu.org). Some tarballs require aclocal-1.4 instead of aclocal and automake-1.4 instead of automake in $PATH, therefore I have manually created symbolic link to aclocal-1.4 and automake-1.4. (I don't know if this is automatically done-able during installation of these programs) these packages require automake-1.4. That's why they explicitely use the versioned exectuable name. Instead of creating links to a wrong version, you should have installed automake-1.4. Recent patchlevels install versioned binaries and can coexist with automake-1.7 Salut, Sven Sven, I haven't used automake-1.4 before, can't we say that automake-1.7 program is backwards compatible with automake-1.4? What kind of side effects might have the symbolic link workaround I've found above? Regards, Utku PS: Additional info on my reference mail: xscreensaver-demo cannot show some GTK demos in the windows correctly. Sometimes the program does not respond fast mouse clicks of items on left, or responds very late. I have a machine RAM of 2 GB with limit stacksize 131072K (Sun Ultra-80 double RISC). OpenGL/Mesa3D had not been installed. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: succeeded in Xscreensaver+GTK on Solaris 2.8
Hi, Utku Ozcan [EMAIL PROTECTED] writes: I haven't used automake-1.4 before, can't we say that automake-1.7 program is backwards compatible with automake-1.4? What kind of side effects might have the symbolic link workaround I've found above? unfortunately, 1.7 is not 100% backward compatible. If you got away with linking, that is fine, but in general it is better to install automake-1.4 if it is explicitely requested. Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Pango/Xft compile problem
On 4 Apr 2003, Sven Neumann wrote: Hi, Frank Hrebabetzky [EMAIL PROTECTED] writes: GTK is needed for a bunch of X-Windows programs, and it requires pango, so I downloaded pango-1.0.5. I tried to install, but during ./configure, the following lines appeared: configure: WARNING: X11/Xft/XftFreetype.h: present but cannot be compiled take a look at config.log to see what really goes wrong about compiling XftFreetype.h. I'd guess you are missing freetype headers. Thanks for the hint 'config.log'. Nevertheless it contains basically the same lines as the 'make' output (see below). So what can I try? Anybody succeeded in installing pango with XFree86-4.3.0 from source? ---snip--- configure:9762: checking X11/Xft/XftFreetype.h usability configure:9771: gcc -c -g -O2 -Wall -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/X11R6/include conftest.c 5 In file included from configure:9799: /usr/X11R6/include/X11/Xft/XftFreetype.h:73: parse error before `*' /usr/X11R6/include/X11/Xft/XftFreetype.h:74: warning: type defaults to `int' in declaration of `XftFreeTypeOpen' /usr/X11R6/include/X11/Xft/XftFreetype.h:74: warning: data definition has no type or storage class /usr/X11R6/include/X11/Xft/XftFreetype.h:77: parse error before `XftFontStruct' /usr/X11R6/include/X11/Xft/XftFreetype.h:79: parse error before `*' /usr/X11R6/include/X11/Xft/XftFreetype.h:80: warning: type defaults to `int' in declaration of `XftFreeTypeGet' /usr/X11R6/include/X11/Xft/XftFreetype.h:80: warning: data definition has no type or storage class /usr/X11R6/include/X11/Xft/XftFreetype.h:88: parse error before `XftFontStruct' /usr/X11R6/include/X11/Xft/XftFreetype.h:94: parse error before `XftFontStruct' /usr/X11R6/include/X11/Xft/XftFreetype.h:101: parse error before `XftFontStruct' /usr/X11R6/include/X11/Xft/XftFreetype.h:108: parse error before `XftFontStruct' /usr/X11R6/include/X11/Xft/XftFreetype.h:115: parse error before `XftFontStruct' /usr/X11R6/include/X11/Xft/XftFreetype.h:122: parse error before `XftFontStruct' /usr/X11R6/include/X11/Xft/XftFreetype.h:129: parse error before `XftFontStruct' /usr/X11R6/include/X11/Xft/XftFreetype.h:136: parse error before `XftFontStruct' /usr/X11R6/include/X11/Xft/XftFreetype.h:143: parse error before `XftFontStruct' /usr/X11R6/include/X11/Xft/XftFreetype.h:150: parse error before `XftFontStruct' /usr/X11R6/include/X11/Xft/XftFreetype.h:157: parse error before `XftFontStruct' --- snip --- - Frank Hrebabetzky Tel.: +55 / 48 / 9998 7686 Florianopolis email:[EMAIL PROTECTED] Brazil ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Pango/Xft compile problem
Hi, Frank Hrebabetzky [EMAIL PROTECTED] writes: Thanks for the hint 'config.log'. Nevertheless it contains basically the same lines as the 'make' output (see below). So what can I try? you could have a look at the header file that fails: /usr/X11R6/include/X11/Xft/XftFreetype.h:73: parse error before `*' The problem should be obvious if you look there. My version seems to be slightly different, but I'd say it chokes on FcPattern. You installed fontconfig, didn't you ? Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
RE: copy text the to the clipboard
On Fri, 2003-04-04 at 02:34, [EMAIL PROTECTED] wrote: It depends on the widget. For simple text, gtk_editable_copy_clipboard() might be what you need. Or there's something similar for GtkTextView. For custom data you'll need to understand the concepts. Here are some C++ examples: http://www.gtkmm.org/gtkmm2/docs/tutorial/html/ch16.html Since that's pretty complicated, let me point out, to copy a string to the clipboard, all you need is: GtkClipboard *clipboard = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD); gtk_clipboard_set_text (clipboard, My Text, -1); Getting the text on the clipboard can be as simple as: char *my_text = gtk_clipboard_wait_for_text (clipboard); /* use text */ g_free (my_text); [ Note, gtk_clipboard_wait_for_text() runs a recursive main loop, so any of your applications callbacks could be invoked while it is running ] Regards, Owen ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Pango/Xft compile problem
On Fri, 2003-04-04 at 09:22, Frank Hrebabetzky wrote: On 4 Apr 2003, Sven Neumann wrote: Hi, Frank Hrebabetzky [EMAIL PROTECTED] writes: GTK is needed for a bunch of X-Windows programs, and it requires pango, so I downloaded pango-1.0.5. I tried to install, but during ./configure, the following lines appeared: configure: WARNING: X11/Xft/XftFreetype.h: present but cannot be compiled take a look at config.log to see what really goes wrong about compiling XftFreetype.h. I'd guess you are missing freetype headers. Thanks for the hint 'config.log'. Nevertheless it contains basically the same lines as the 'make' output (see below). So what can I try? Anybody succeeded in installing pango with XFree86-4.3.0 from source? XFree86-4.3.0 requires Pango-1.2. (I'm curious ... why were you using pango-1.0.5? Is there some link that still points to the old version around?) Regards, Owen ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: succeeded in Xscreensaver+GTK on Solaris 2.8
On Fri, 2003-04-04 at 07:00, Utku Ozcan wrote: I have been able to install Xscreensaver-4.09 (the latest version as of the date when I have sent this mail), with GTK+-2.2.1 on Solaris 2.8. It was really a tiring job, therefore I want to share what I have done to be able to install this tool: 1. Platform is Sun Solaris 2.8. 2. C Compiler is GCC v3.2 (http://gcc.gnu.org) 3. Not to mention, I have installed make-3.80, m4-1.4, autoconf-2.57, automake-1.7.3 (http://www.gnu.org). Some tarballs require aclocal-1.4 instead of aclocal and automake-1.4 instead of automake in $PATH, therefore I have manually created symbolic link to aclocal-1.4 and automake-1.4. (I don't know if this is automatically done-able during installation of these programs) m4, autoconf, and automake are _not_ needed. Don't run autogen.sh when compiling from the distributed tarball. These tools are only needed if you are modifying the configure scripts. configure script of autoconf, automake produces such Makefile's, in which they have PERL= identifier to show the full path of Perl. I have renamed it with PERL = perl-path -Iperl_package_path. The configure-make dance could not generate the -I option correctly, therefore I had developed just a small Perl script that is run between configure and make of the tools above. This can be done in all tarball installations, where Makefile's have this feature. Sounds like you have a broken installation of Perl. If your perl needs -I .. to work, it is simply not correctly installed. 4. zlib-1.1.4 has been installed (http://www.gzip.org/lib). It is dependency of libpng. 5. libpng-1.2.5 has been installed (http://http.libpng.org). It is dependency of gtk. 6. libtiff-3.60-beta has been installed (http://www.libtiff.org). It is dependency of gtk. Its installation cannot copy *.h header files in tarball, to --prefix/include directory. that's why GTK configure complains about it with Cannot load TIFF Loader Therefore I have manually copied all header files, because each header calls the other. Also, I have copied libjpeg.a manually, to --prefix/lib directory. Please read the instructions about setting CPPFLAGS and LDFLAGS in: http://developer.gnome.org/doc/API/2.2/gtk/gtk-building.html 7. JPEG library jpegsrc-6b has been installed (ftp://ftp.uu.net/graphics/jpeg/). It is dependency of gtk and Xscreensaver. Its installation cannot copy *.h header files in tarball, to --prefix/include directory. That's why GTK configure complains about it with Cannot load JPEG Loader Therefore I have manually copied all header files, because each header calls the other. Also, I have copied libjpeg.a manually, to --prefix/lib directory. Another workaround has just been announced, which was the best one, but it was too late for me to try it: (http://mail.gnome.org/archives/gtk-list/2003-April/msg00024.html) I very much doubt that would be useful. (The person writing that mail had a much easier fix available .. simply install the libjpeg-devel package.) 8. libtool-1.4.3 has been installed (http://www.gnu.org). Again, not needed. 9. pkg-config 0.15.0 has been installed (http://www.freedesktop.org/software/pkgconfig/). It is the dependency of glib. PKG_CONFIG_PATH environment variable -must- be set to --prefix/lib/pkgconfig directory. This is required by gtk. Before configure-make dance, add the three lines stated in README file, to the end of configure.in. That's a misreading of the README file. The README file is describing how to modify your own program to use pkg-config. If you actually added those lines to pkg-config's configure.in, I'm surprised you managed to get it installed. [...] It took 2 months for me to understand to flow above. I'm sorry you had so much trouble installing GTK+. I do think that some careful reading of the installation guide, as mentioned above would have saved you a lot of trouble. Regards, Owen ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
unsubscribe 262422 mplutz2@wanadoo.fr
unsubscribe 262422 [EMAIL PROTECTED] -- Michel ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: META -- including screenshots on the list
..gif has patent problems and is a technical fuckup (256 colors max). See http://burnallgifs.org/ for a (biased) view on it. .png is much nicer for lossless compression (32-bit). Point taken. .png is better. -ed falk ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
GTypeInfo.instance_init vs. GObject.constructor
If I'm trying to create a type derived from GObject, and I'm not clear on which of the instantiation/destruction methods I should be using for what. I've looked at GtkObject for reference, but I still don't see why the things that are done in gtk_object_init (which gets registered as GTypeInfo.instance_init) are done there as opposed to in GObject.constructor, and vice versa. Also, I'm not clear on what should be done in dispose and what in finalize and why. Finally, I don't understand why this (from gobject.c, in g_object_last_unref()) is safe: if (object-ref_count == 1) /* may have been re-referenced meanwhile */ G_OBJECT_GET_CLASS (object)-dispose (object); #ifdef G_ENABLE_DEBUG if (g_trap_object_ref == object) G_BREAKPOINT (); #endif /* G_ENABLE_DEBUG */ object-ref_count -= 1; if (object-ref_count == 0) /* may have been re-referenced meanwhile */ { g_signal_handlers_destroy (object); g_datalist_id_set_data (object-qdata, quark_weak_refs, NULL); G_OBJECT_GET_CLASS (object)-finalize (object); If there is a possibility of object-ref_count being incremented while g_object_last_unref() runs, shouldn't there be a lock or somehing after the last check and before the finalize() call? Thanks to anyone wh ocan enlighten me, Britton Kerin __ GNU GPL: The Source will be with you... always. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list