GTK+ equivalent to Motif "XtAppProcessEvent()"
Hi, I want my aplication to stop the gtk_main() until the user press a button, which change the value of a variable called "state": while(state == EXIT_WAIT) { **stop gtk_main** } if (state == EXIT_OK) { [...] } else { [...] } -- In Motif I used: while (state == EXIT_WAIT) XtAppProcessEvent(GB_context, XtIMAll); if (state == EXIT_OK) { [...] } else { [...] } - Which is the GTK+ equivalent? Thanks, Ignacio Nodal ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: auto repeat
> >Hi > >Can anyone give me some pointers on implementing a form of auto-repeat...? >I've looked through the FAQ and the Tutorial, but it's only mentioned as a >"things to add later" when talking about designing custom widgets... > >I don't want to add repeat to buttons or similar type widgets, but instead to >a GDK drawing area. I have 'hotspots' in my drawing area that the user can >click in to increment a value, and I'd like to have an autorepeat so the user >doesn't wear his mouse button out > >Anyone give me any pointers...? look at the spinbutton code, which users timers to achieve this. i have a generic C++ class called AutoSpinner which splits the spinbutton code out into a distinct object that can be used for other things besides spinbuttons. let me know if you're interested. --p ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
auto repeat
Hi Can anyone give me some pointers on implementing a form of auto-repeat...? I've looked through the FAQ and the Tutorial, but it's only mentioned as a "things to add later" when talking about designing custom widgets... I don't want to add repeat to buttons or similar type widgets, but instead to a GDK drawing area. I have 'hotspots' in my drawing area that the user can click in to increment a value, and I'd like to have an autorepeat so the user doesn't wear his mouse button out Anyone give me any pointers...? -- David J. Singer [EMAIL PROTECTED] "Time flies like an arrow, fruit flies like a banana" ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Run time error in gtk1.3 application
Well, I think you need something like gnome 2.0. Your gnome version (and mine too) uses gtk+-1.2 and when you link your app with the gnome libs it will also use gtk+-1.2 Have a look at gnome-config --libs gnomeui or gnome-config --libs gnome glib+-1.2 and gtk+-1.2 are always linked to your executable. But have a look at this http://developer.gnome.org/dotplan/porting/ it might help you with your work. Ciao, Olaf Am 05 Feb 2002 14:40:34 -0200 schrieb Flávio Alberto Lopes Soares: > Is true that to compile gtk+2.0 I need Gnome 2.0 ? > > If true I'm crashing my head in wall ! > > I need to install all gnome2.0 to correctly compile my program ? > > Thanks for all help > > Flavio Alberto > > ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Release date of GTK+ 2.0 ?
Dear Havoc, thanks for the information. Regards, Volkan Havoc Pennington wrote: > Volkan Arslan <[EMAIL PROTECTED]> writes: > > > > does someone know, when GTK+ 2.0 will be released ? I have looked at > > www.gtk.org, but couldn't find anything regarding the release date of > > GTK+ 2.0. > > > > Look at developer.gnome.org/dotplan, it will be out before GNOME 2 is. > > Havoc ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Release date of GTK+ 2.0 ?
Volkan Arslan <[EMAIL PROTECTED]> writes: > > does someone know, when GTK+ 2.0 will be released ? I have looked at > www.gtk.org, but couldn't find anything regarding the release date of > GTK+ 2.0. > Look at developer.gnome.org/dotplan, it will be out before GNOME 2 is. Havoc ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: [INIMSS] How to avoid focusing on CList column titles.
On Tue, 2002-02-05 at 06:21, Dino wrote: > Hi, > > How can I avoid the focusing of the column titles in a CList when i go thru the >widgets in a window using the TAB key. > > Thank You > Dino CK > > ___ > gtk-list mailing list > [EMAIL PROTECTED] > http://mail.gnome.org/mailman/listinfo/gtk-list Dino, Try gtk_clist_column_titles_passive (). -- regards, Luciano Chavez [EMAIL PROTECTED] http://sf.net/projects/evms ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
[INIMSS] How to add a pixmap to a toggle button?
Hi Anybody please help me in adding a pixmap to a toggle button. I added it from the glade interface but it is not showing up not when compiled and run, or while editing in glade. Thankyou Dino CK _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Run time error in gtk1.3 application
Hello all, I was writing this message bellow when my mail-server crash yesterday, then I attempt to run autogen.sh and my application compileted normally & run normally, I see the Makefile and found some references to gtk-1.2, gtk-2.0, glib-1.2, glib-2.0, I don't know what's the diferences behind this new Makefile (made by autogen.sh) and old (compile but not run), I suspect that my application compiled in gtk-1.2 and not in gtk-2.0, but I don't know to say. If anyone has a clue I thanks very much. Thanks in advance Flavio Alberto ORIGINAL MAIL * I made the changes that Olaf sugests and now doesn't show "stranger" messages in compilation, but the resulting program continues with the same crash when I run it. The Makefile has many references to glib-1.2 & gtk-1.2 (old) and I don't know how to change these files, if I change 1.2 to 2.0 the errors are this : gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-2.0 -I/usr/lib/glib/include -I/usr/include/gtk-2.0 -I/usr/X11R6/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 -Wall -Wunused -c main.c In file included from /usr/include/libgnomeui/libgnomeui.h:19, from /usr/include/gnome.h:17, from main.c:10: /usr/include/libgnomeui/gnome-canvas-image.h:15: gtk/gtkpacker.h: Arquivo ou diretório não encontrado In file included from /usr/include/libgnomeui/libgnomeui.h:24, from /usr/include/gnome.h:17, from main.c:10: /usr/include/libgnomeui/gnome-canvas-text.h:15: gtk/gtkpacker.h: Arquivo ou diretório não encontrado In file included from /usr/include/libgnomeui/libgnomeui.h:26, from /usr/include/gnome.h:17, from main.c:10: /usr/include/libgnomeui/gnome-canvas-widget.h:15: gtk/gtkpacker.h: File not found make: *** [main.o] Error 1 Really, the file gtkpacker.h doesn't exists inside gtk-2.0, I have to change some thing in my program ? I will send the glib-config & gtk-config that I edited how sugests Olaf and the Makefile.am & Makefile that ./configure script generated; Excuse-me for send so many files but really I don't know what to do. Thanks for all help Flavio Alberto Em 04 Feb 2002 11:35:59 -0500, Havoc Pennington escreveu: > > Flávio Alberto Lopes Soares <[EMAIL PROTECTED]> writes: > > > > I make some modifications in my Makefile (attached in mail) in order > > to compile my application in gtk+1.3 (gtk+2.0), in compilation I get > > this messages (was several similar messages to each file of my > > application, I put only piece of messages) : > > Your Makefile is all screwed up somehow. Note that you're getting GTK > 1.2 flags in there, and GNOME 1.x. You need GNOME 2 to use GTK 2. > > Show us the Makefile.am, rather than the Makefile. > > Havoc #!/bin/sh prefix=/usr exec_prefix=${prefix} exec_prefix_set=no usage() { cat <&2 fi lib_glib=yes while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case $1 in --prefix=*) prefix=$optarg if test $exec_prefix_set = no ; then exec_prefix=$optarg fi ;; --prefix) echo_prefix=yes ;; --exec-prefix=*) exec_prefix=$optarg exec_prefix_set=yes ;; --exec-prefix) echo_exec_prefix=yes ;; --version) echo 1.3.7 exit 0 ;; --cflags) echo_cflags=yes ;; --libs) echo_libs=yes ;; glib) lib_glib=yes ;; gmodule) lib_gmodule=yes ;; gthread) lib_gthread=yes ;; *) usage 1 1>&2 ;; esac shift done if test "$echo_prefix" = "yes"; then echo $prefix fi if test "$echo_exec_prefix" = "yes"; then echo $exec_prefix fi if test "$echo_cflags" = "yes"; then cflags="" if test "$lib_gthread" = "yes"; then cflags="$cflags -D_REENTRANT" fi echo -I${prefix}/include/glib-2.0 -I/usr/lib/glib/include $includes $cflags fi if test "$echo_libs" = "yes"; then libsp="" libsa="" if test "$lib_glib" = "yes"; then libsp="$libsp -lglib" fi if test "$lib_gthread" = "yes"; then libsp="-lgthread $libsp" libsa="$libsa -lpthread" fi if test "$lib_gmodule" = "yes"; then libsp="-rdynamic -lgmodule $libsp" libsa="$libsa -ldl" fi echo -L/usr/lib $libsp $libsa fi # Generated automatically from Makefile.in by configure. # Makefile.in generated automatically by automake 1.4a from Makefile.am # Copyright
[INIMSS] How to avoid focusing on CList column titles.
Hi, How can I avoid the focusing of the column titles in a CList when i go thru the widgets in a window using the TAB key. Thank You Dino CK ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Release date of GTK+ 2.0 ?
Hello, does someone know, when GTK+ 2.0 will be released ? I have looked at www.gtk.org, but couldn't find anything regarding the release date of GTK+ 2.0. Best regards, Volkan Arslan ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list