Re: reverse function to g_flags_register_static()
Never mind... It seems that the next code works: GFlagsClass *eclass; GFlagsValue *values; GType etype = gdk_event_mask_get_type(); eclass = G_FLAGS_CLASS (g_type_class_ref (etype)); values = eclass->values; Oliver Singla wrote: > In GTK 2.0: > > Funtion gdk_event_mask_get_type() return a GType. > How could I retrieve the GFlagsValue structure values from this type ? > > So basically I am looking for the reverse functions as > g_flags_register_static() and g_enum_register_static(). > > TIA, > Olivier ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
reverse function to g_flags_register_static()
In GTK 2.0: Funtion gdk_event_mask_get_type() return a GType. How could I retrieve the GFlagsValue structure values from this type ? So basically I am looking for the reverse functions as g_flags_register_static() and g_enum_register_static(). TIA, Olivier ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Trouble to compile atk-0.12
Padraig, Here is my /usr/lib/pkgconfig/glib-2.0.pc: (BTW please note that 'make install' did not copy the .pc files into my /usr/lib/pkgconfig directory, so I copied these files manually) prefix=/usr/local exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include glib_genmarshal=glib-genmarshal gobject_query=gobject-query glib_mkenums=glib-mkenums Name: GLib Description: C Utility Library Version: 2.0.0 Libs: -L${libdir} -lglib-2.0 Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include Thanks, Olivier Padraig O'Briain wrote: > Olivier, > > What is the value of Cflags in your installed version of glib-2.0.pc? > > Padraig > > >>Oliver Singla wrote: >> >> >>>Hi, >>> >>>On my RH7.2 box, I have trouble to compile atk-0.12. After I have ran >>>.configure, here is what I get when I do a make: >>> >>> >>>[omsingla@oliver atk-0.12]$ make >>>Making all in atk >>>make[1]: Entering directory `/home/omsingla/gtk/1.3/atk-0.12/atk' >>>case ..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal >>>in\ >>> .*) >>> >>> > glib_genmarshal=`pwd`/..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmars > hal > >>>;;\ *) >>> >>> > glib_genmarshal=..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal > >>>;;\ >>>esac; \ >>>$glib_genmarshal --prefix=atk_marshal ./atkmarshal.list --body >> >>>xgen-gmc\ >>>&& (cmp -s xgen-gmc ./atkmarshal.c || cp xgen-gmc ./atkmarshal.c)\ >>>&& rm -f xgen-gmc xgen-gmc~\ >>>&& echo timestamp > stamp-atkmarshal.c >>>/bin/sh: >>> >>> > /home/omsingla/gtk/1.3/atk-0.12/atk/..//home/omsingla/gtk/1.3/glib-1.3.14/gobjec > t/glib-genmarshal: > >>>No such file or directory >>>make[1]: *** [stamp-atkmarshal.c] Error 127 >>>make[1]: Leaving directory `/home/omsingla/gtk/1.3/atk-0.12/atk' >>>make: *** [all-recursive] Error 1 >>>[omsingla@oliver atk-0.12]$ >>> >>>Any idea ? >>> >>>TIA, >>>Olivier Singla >>> >>> >>I still have the same problem with the release candidate of gtk2. >>My box is a standard RedHat 7.2, running currently Gnome. >>I am able to compile glib2 without trouble, and it seems to work fine. >>But for all other stuff (atk, pango and gtk), I have the problem related >>above. I can have atk compiled fine if I manually modify all Makefile. >> >>For instance, in the atk Makefile I got: >>GLIB_CFLAGS =-I$(top_builddir)//usr/lib/pkgconfig >>where: >>top_builddir = .. >> >>I have tried configure without options, or with a prefix specification >>(--prefix=/usr). >> >>Any help will be really appreciated ;-) >> >>TIA, >>Olivier >>GTK Application Builder: http://glg.logafet.firstream.net/ >> >>___ >>gtk-list mailing list >>[EMAIL PROTECTED] >>http://mail.gnome.org/mailman/listinfo/gtk-list >> > > ___ > gtk-list mailing list > [EMAIL PROTECTED] > http://mail.gnome.org/mailman/listinfo/gtk-list > > ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Trouble to compile atk-0.12
Oliver Singla wrote: > Hi, > > On my RH7.2 box, I have trouble to compile atk-0.12. After I have ran > .configure, here is what I get when I do a make: > > > [omsingla@oliver atk-0.12]$ make > Making all in atk > make[1]: Entering directory `/home/omsingla/gtk/1.3/atk-0.12/atk' > case ..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal > in\ >.*) > glib_genmarshal=`pwd`/..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal > ;;\ *) > glib_genmarshal=..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal > ;;\ > esac; \ > $glib_genmarshal --prefix=atk_marshal ./atkmarshal.list --body >> > xgen-gmc\ > && (cmp -s xgen-gmc ./atkmarshal.c || cp xgen-gmc ./atkmarshal.c)\ > && rm -f xgen-gmc xgen-gmc~\ > && echo timestamp > stamp-atkmarshal.c > /bin/sh: > >/home/omsingla/gtk/1.3/atk-0.12/atk/..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal: > > No such file or directory > make[1]: *** [stamp-atkmarshal.c] Error 127 > make[1]: Leaving directory `/home/omsingla/gtk/1.3/atk-0.12/atk' > make: *** [all-recursive] Error 1 > [omsingla@oliver atk-0.12]$ > > Any idea ? > > TIA, > Olivier Singla > I still have the same problem with the release candidate of gtk2. My box is a standard RedHat 7.2, running currently Gnome. I am able to compile glib2 without trouble, and it seems to work fine. But for all other stuff (atk, pango and gtk), I have the problem related above. I can have atk compiled fine if I manually modify all Makefile. For instance, in the atk Makefile I got: GLIB_CFLAGS =-I$(top_builddir)//usr/lib/pkgconfig where: top_builddir = .. I have tried configure without options, or with a prefix specification (--prefix=/usr). Any help will be really appreciated ;-) TIA, Olivier GTK Application Builder: http://glg.logafet.firstream.net/ ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Get & Set pixel from a pixmap.
Eleni Ryan wrote: > Hi, > > I want to get & then set a pixel value from a GdkPixmap, but can't seem to > find where to start. I see that pixels can be manipulated in a GdkImage > using gdk_image_get_pixel() & gdk_image_put_pixel(), however I need to > manipulate an off-screen pixmap rather than a copy of the window. > > Does anybody have any idea how to do this or an example? > > Thanks, > Eleni > > ___ > gtk-list mailing list > [EMAIL PROTECTED] > http://mail.gnome.org/mailman/listinfo/gtk-list > > Months ago I started a life game under the GTK, and I used a GdkPixmap to hold the cells. I used gdk_draw_points() inside the pixmap. Surprisly, I found this pretty fast. In case that would be useful, here is the source: http://glg.logafet.firstream.net/freelife/ Olivier ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Force a widget to redraw itself (1.2.10)
Hi, How can I really force a widget to redraw itself ? If I call gtk_widget_queue_draw(), that seems to work only for widgets without an X-Window (such GtkLabel or GtkHSeparator). I attached a expose_event signal to see if the draw is performed or not. TIA, Olivier Singla, QNX, Raleigh NC [EMAIL PROTECTED] ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Trouble to compile atk-0.12
Hi, On my RH7.2 box, I have trouble to compile atk-0.12. After I have ran .configure, here is what I get when I do a make: [omsingla@oliver atk-0.12]$ make Making all in atk make[1]: Entering directory `/home/omsingla/gtk/1.3/atk-0.12/atk' case ..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal in \ .*) glib_genmarshal=`pwd`/..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal ;; \ *) glib_genmarshal=..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal ;; \ esac; \ $glib_genmarshal --prefix=atk_marshal ./atkmarshal.list --body >> xgen-gmc \ && (cmp -s xgen-gmc ./atkmarshal.c || cp xgen-gmc ./atkmarshal.c) \ && rm -f xgen-gmc xgen-gmc~ \ && echo timestamp > stamp-atkmarshal.c /bin/sh: /home/omsingla/gtk/1.3/atk-0.12/atk/..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal: No such file or directory make[1]: *** [stamp-atkmarshal.c] Error 127 make[1]: Leaving directory `/home/omsingla/gtk/1.3/atk-0.12/atk' make: *** [all-recursive] Error 1 [omsingla@oliver atk-0.12]$ Any idea ? TIA, Olivier Singla ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
GTK Application Builder
Hi, I've put a new version of GLG, Application Builder for the GTK and/or Gnome. Many bug fixes, cscope support, styles support, etc. Looking forward to hear suggestions, problems, etc. Source and/or binaries can be downloaded from http://glg.sourceforge.net/ Olivier _ 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: A new application builder for the GTK
--- Drazen Kacar <[EMAIL PROTECTED]> wrote: > Oliver Singla wrote: > > > To describe a new widget, I have choosen to go > with a > > table (populated to describe resources available > for > > the widget) vs. other methods (custom widget as in > > > Glade, for example). > > Would it be possible to add some Xt code to the > application and then use > X resources to set the properties at run-time? I have no such plan. What exacly would like to do ? Do you have a precise example ? Olivier Singla __ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
A new application builder for the GTK
Hi, I am currently working on a free application builder for the GTK. Lo Gafet (LG) produce C source code itself. Interaction with Widgets is mainly done by settings resources and not using functions, when this is possible. Actually, the generated code often does not use any other functions that gtk_widget_new() and gtk_widget_set(), unless a resource can only be manipulated through a function. To describe a new widget, I have choosen to go with a table (populated to describe resources available for the widget) vs. other methods (custom widget as in Glade, for example). It is the early beginning of 'Lo Gafet'. LG is under heavy development. Many features are still missing and to be added. Many others are still very buggy or not very well tested. Anyway, I usually post a new version each Sunday evening ;-) I am interested by any feedback... Thanks, Olivier Singla [EMAIL PROTECTED] http://www.qnx.com/~omsingla/glg/glg.htm http://freshmeat.net/appindex/2000/07/26/964620754.html __ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list