Re: set attributes to rows in GtkTreeView
On 2002.03.13 16:57:49 +0100 Havoc Pennington wrote: > > Bernd Demian <[EMAIL PROTECTED]> writes: > > First the question: Can somebody show me a simple way to change the > > color of one or more rows in GtkTreeView. In CList it was simple to use > > the function gtk_clist_set_background. > > I don't think there is one. What's the application? Hi, I use it also. It is very useful for all purposes ;) It is definietly nice to have it for database applications. For example: you have database of equipment: working ok - green, not working properly - yellow damaged - red, in factory repair - blue etc. It will be pain to do it on per cell basis. So please add it to bugzilla. Regards, Olaf Fraczyk ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
how shrink entire GUI?
With all text and sliders and pixmaps my GUI is very large. Is there any easy way to shrink EVERYTHING a little??... smaller fonts, widgets,etc.? CS -- === | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax)| | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || [EMAIL PROTECTED] | === ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
GtkGLArea and signals
Hi, I've just started using GTK and GtkGLArea imparticular, and I've got a problem with signals... I have a callback that is responsible for redrawing the glarea widget when it receives an "expose_event" signal, which works fine when just resizing the window etc. But I also want a mouse motion callback to trigger a redraw of the widget, in much the same as you can use glutPostRedisplay() with GLUT. So I tried using gtk_signal_emit_by_name(GTK_OBJECT(gd.gl3dview), "expose_event", NULL) but this gives a segfault. When I looked at the example code for the lightwave object viewer it uses gtk_widget_draw() to accomplish the redraw. Why is it that I can't simply have the glarea widget signal itself that it is in need of a refresh? Isn't a widget allowed to signal itself? Thanks, Giles Burdett ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Error messages
Hi, I kept getting this error message: "Xlib: unexpected async reply (sequence 0x342)". After a while, the application crashes out. What does it mean and how can I resolve it? Ricky _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gtk_spin_button_set_shadow_type
Deborah Swayne <[EMAIL PROTECTED]> writes: > The documentation seems to suggest that this routine > should still be part of gtk2, but it isn't there. > > gtk_spin_button_set_shadow_type() > > Is there something else I should use? > It doesn't seem to be in the manual: http://developer.gnome.org/doc/API/2.0/gtk/gtkspinbutton.html The tutorial is not-very-well-upgraded to 2.0, if you found it there. The normal thing to use here is nothing, it's now determined by the theme. Havoc ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Shortcut key
Hi all, I am facing some problem in the allocation of shotcut keys. Anything wrong with my codes? Couldn't seem to get any response from the keyboard. Thanks. Ricky ++ static GnomeUIInfo menu[]= { {GNOME_APP_UI_ITEM, N_("_HOSTS"), NULL, default_cb, NULL, NULL, 0, 0, 'h', GDK_CONTROL_MASK, NULL} }; GtkWidget * create_start (void) { GtkWidget *start; start = gtk_window_new (GTK_WINDOW_TOPLEVEL); : : GtkAccelGroup *accel_group; : : : gtk_widget_add_accelerator (menu[0].widget, "activate", accel_group, GDK_h, 0, GTK_ACCEL_VISIBLE); gtk_window_add_accel_group (GTK_WINDOW(start), accel_group); : : } void default_cb(GtkEditable *editable gpointer user_data); _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
gtk_spin_button_set_shadow_type
The documentation seems to suggest that this routine should still be part of gtk2, but it isn't there. gtk_spin_button_set_shadow_type() Is there something else I should use? Debby ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Max value set for slider is not actual max value in use.
Rasmus I made pagesize be zero like you suggested and it fixed problem with max value. Thank you very much. With zero pagesize I can still drag slider, but, I cannot make it *jump* by clicking to right or left of it anymore. I lost this feature when I zeroed the page size. Scrollbars are nice because they have those arrows on the sides. Scales are nice because values appears above the widget. Is there a widget that has arrows to sides AND value appearing above widget so I can fix this bug and get everything I want all in the same widget??? (Scrollbar + scale = ???) Thanks, Chris On Wed, Mar 13, 2002 at 02:31:43PM +0100, Rasmus Hahn wrote: > On Tue, Mar 12, 2002 at 01:43:35PM -0800, Christian Seberino wrote: > > Your suggestion makes perfect sense to me. It seems like that > > *must* be what is wrong. Yet I checked my code and can't see it > > > > #define INI_N_MASSES 1 > > #define MIN_N_MASSES 1 > > #define MAX_N_MASSES 2048 > > #define INC_N_MASSES 1 > > > > ... > > > >numberOfMassesSliderAdj = GTK_OBJECT(gtk_adjustment_new( > > INI_N_MASSES, MIN_N_MASSES, MAX_N_MASSES, INC_N_MASSES, > > INC_N_MASSES, INC_N_MASSES)); > > Try to set the pagesize of the adjustment to 0. It seems the slider > tries to fit a 'page' in the range [min...max], like it is needed for > scrollbars, but not so useful for scales without a 'page'. So > gtk_adjustment_new (0, 0, 1000, 1, 1, 0) should make the slider value > get the whole range. > > > > > I could not move slider farther to right then 2047. > > > > Chris > > > > > > On Tue, Mar 12, 2002 at 04:00:41PM -0500, [EMAIL PROTECTED] wrote: > > > On Tue, 12 Mar 2002 12:58:16 PST, Christian Seberino <[EMAIL PROTECTED]> >said: > > > > If I make a slider for a value that goes from > > > > 0 to 2000, then leftmost value is 0 > > > > *BUT*, rightmost value is 1999!!! > > > > > > > > Why do I lose the last number? > > > > > > Sounds like a fencepost error to me. Is it "min 0 max 2000", or "min 0 > > > steps 2000"? 0..1999 is 2000 points. > > > -- > > > Valdis Kletnieks > > > Computer Systems Senior Engineer > > > Virginia Tech > > > > > > > > > > > -- > > === > > | Dr. Christian Seberino || (619) 553-7940 (office) | > > | SPAWARSYSCEN 2363 || (619) 553-2836 (fax)| > > | 53560 HULL ST || | > > | SAN DIEGO CA 92152-5001 || [EMAIL PROTECTED] | > > === > > ___ > > 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 -- === | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax)| | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || [EMAIL PROTECTED] | === ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
RE: Sockets
maybe you need to use glibc library.it is more base than xlib. -Original Message- From: Chris Nystrom [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 1:38 AM To: Paul Davis Cc: Nicolas web; [EMAIL PROTECTED] Subject: Re: Sockets On Tue, 12 Mar 2002, Paul Davis wrote: > GTK is a toolkit for creating graphical user interfaces. It has > nothing to do with sockets or other IPC mechanisms, though it has some > builtin support to make integrating I/O handling a little simpler. I > think you need to look at another library that is focussed on this > area, not GTK. He might run into problems when trying to integrate the socket IO with the gtk_main function that never returns. He needs to become familiar with monitoring the IO (14.2 in the tutorial, I think), or how to avoid using the gtk-main function. Chris ___ 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: Gtk2.0 compilation hum... issues...
Thanks Sven, >Again, config.log is a good place to look what went wrong. You were right, I should had looked better into config.log (actually I red it a couple of times, but not as carefully as after reading your message :-) ) It turns out that configure checked for pnglib, which depends on zlib, which was not found (usually I set my own -I and -L directives, so usually this was not required) at link time (though it would be at run time because it was in /etc/ld.so.conf). A sym link at /usr/local/lib solved the problem. Interestingly, make then complained that the new pnglib and the old zlib were not compatible, so I downoaded and installed brand new zlib. Surprisingly make kept failing, because png.h changed since 1.0.06 (Current libs seem to be zlib-1.1.4 libpng-1.0.12). Eventually I switched to the 1.5 year old z/png libs and everything compiled fine, including all the examples which are running just fine. Thanks again, Carlos ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Gtk2.0 compilation hum... issues...
Hi, Carlos Pereira <[EMAIL PROTECTED]> writes: > 1) Running ./configure for pango, it stops > with an error saying that it can compile but not > run the glib test... (of course this is with > /etc/ld.so.conf and /sbin/ldconfig.) > > 2) Oh well, using --disable-glibtest, I can compile > and install both pango and atk, which so far seems > to solve the problem. seems like a bad idea. Better fix your setup so the test program can be built. Check config.log to see what is going wrong. > 3) Regarding ./configure for gtk, it stops with an error > saying that it cannot find png. I had one png-1.0.6 > hapilly running, after this problem I compiled > and installed png-1.0.12, the latest version. > The problem remains, so now I have two libpng in > my system, that compile and run well with other programs, > but gtk configure is totally unable to find them. > in spite of the symlinks in /usr/lib and /usr/local/lib > and /etc/ld.so.conf plus /sbin/ldconfig. you need to set the compiler environment so it can find libpng and its headers. Again, config.log is a good place to look what went wrong. Assuming that libpng is installed in the /usr/foo prefix, you will need to set the environment variables CPP_FLAGS=-I/usr/foo/include LD_FLAGS=-L/usr/foo/lib Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Gtk2.0 compilation hum... issues...
I tried to compile the whole gtk2.0 set, but: 1) Running ./configure for pango, it stops with an error saying that it can compile but not run the glib test... (of course this is with /etc/ld.so.conf and /sbin/ldconfig.) 2) Oh well, using --disable-glibtest, I can compile and install both pango and atk, which so far seems to solve the problem. 3) Regarding ./configure for gtk, it stops with an error saying that it cannot find png. I had one png-1.0.6 hapilly running, after this problem I compiled and installed png-1.0.12, the latest version. The problem remains, so now I have two libpng in my system, that compile and run well with other programs, but gtk configure is totally unable to find them. in spite of the symlinks in /usr/lib and /usr/local/lib and /etc/ld.so.conf plus /sbin/ldconfig. The offending script code starts at line 13100: --- if test x$with_libpng != xno && test -z "$LIBPNG"; then echo "$as_me:13101: checking for png_read_info in -lpng" >&5 echo $ECHO_N "checking for png_read_info in -lpng... $ECHO_C" >&6 if test "${ac_cv_lib_png_png_read_info+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpng -lz -lm $LIBS" cat >conftest.$ac_ext <<_ACEOF #line 13109 "configure" #include "confdefs.h" etc. - 4) Running ./configure for gtk with the option --without-libpng, everything seems well. However, then make reports the error: Unable to load image-loading module: ../../gdk-pixbuf/libpixbufloader-png.so: failed to open libtool archive "../../gdk-pixbuf/libpixbufloader-png.la" make[3]: *** [gtkstockpixbufs.h] Error 1 make[3]: Leaving directory `/home/carlos/gamgi/gtk/gtk-2.0.0/gtk+-2.0.0/gtk/stock-icons' 5) Going to this directory and inserting by hand the right -I/... and -L/... paths, in GTK_DEP_CFLAGS, voila, make continues, but then it stops much further down, this time complaining that it cannot find stock functions: gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_LIBDIR=\"/home/carlos/gamgi/pango/pango-1.0.0/lib\" -DGTK_DATA_PREFIX=\"/home/carlos/gamgi/pango/pango-1.0.0\" -DGTK_SYSCONFDIR=\"/home/carlos/gamgi/pango/pango-1.0.0/etc\" -DGTK_LOCALEDIR=\"/home/carlos/gamgi/pango/pango-1.0.0/share/locale\" -DGTK_VERSION=\"2.0.0\" -DGTK_BINARY_VERSION=\"2.0.0\" -DGTK_HOST=\"i686-pc-linux-gnu\" -DGTK_COMPILATION -I../gtk -I.. -I../gdk -I../gdk -I../gdk-pixbuf -I../gdk-pixbuf -DG_DISABLE_CAST_CHECKS -I/home/carlos/gamgi/glib/glib-2.0.0//include/glib-2.0 -I/home/carlos/gamgi/glib/glib-2.0.0//lib/glib-2.0/include -I/home/carlos/gamgi/pango/pango-1.0.0/include/pango-1.0 -I/usr/X11R6/include -I/home/carlos/gamgi/atk/atk-1.0.0/include/atk-1.0 -g -O2 -Wall -c gtkiconfactory.c -fPIC -DPIC -o gtkiconfactory.o gtkiconfactory.c: In function `get_default_icons': gtkiconfactory.c:461: `stock_dialog_error_48' undeclared (first use this function) gtkiconfactory.c:461: (Each undeclared identifier is reported only once gtkiconfactory.c:461: for each function it appears in.) gtkiconfactory.c:462: `stock_dialog_info_48' undeclared (first use this function) etc. Is there some workaround for this? why oh why is gtk unable to find my png libs? why is there an option to compile gtk without png, if png is definitely required to compile successfully? Oh, well, back to gtk1.2.10... Thanks, Carlos ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: ref_count
Deborah Swayne <[EMAIL PROTECTED]> writes: > Is it appropriate to look at a gobject's ref_count, or is > that supposed to be private? I've been keeping track of its > value whenever I deliberately increment or decrement it, but the > code makes it look as though I'm doing something improper -- and > likely to be disabled. Is there some equivalent of a > g_object_get_ref_count function that I just haven't spotted? It is supposed to be private, but it's OK to use it for debugging code. Havoc ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Pango 1.0.0 patch
Alberto Manuel Brandão Simões <[EMAIL PROTECTED]> writes: > On Wed, 2002-03-13 at 19:47, Owen Taylor wrote: > > > > Alberto Manuel Brandão Simões <[EMAIL PROTECTED]> writes: > > > > > Well, this is not right a 1.0.0 patch, but a Current cvs patch. > > > These were the changes I need to build Pango without problems on a > > > Slackware 8 installation. > > > > Can you explain why you needed to make these changes? > > I know that it's slackware problem... but it would be good to change. > The explanation follows: > > there are in /usr/X11R6/include a freetype and a freetype2 directories. > The first, for freetype 1 and the second for freetype2. If the X > includes are first in the Makefile, it will search > /usr/X11R6/include/freetype/*.h instead of > /usr/X11R6/include/freetype2/freetype/*.h The trouble with making this type of fix is that someone else will have some other directory setup and will want it changed back the other way... Please report a bug against slackware that they need to protect the freetype1 headers inside a subdirectory. Thanks, Owen ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: ref_count
Deborah Swayne <[EMAIL PROTECTED]> writes: > Is it appropriate to look at a gobject's ref_count, or is > that supposed to be private? I've been keeping track of its > value whenever I deliberately increment or decrement it, but the > code makes it look as though I'm doing something improper -- and > likely to be disabled. Is there some equivalent of a > g_object_get_ref_count function that I just haven't spotted? Looking at an object's reference count is _generally_ a sign of doing something wrong [*]... after all, only some of the reference count represents references you own, other parts of the reference count reperesent references other people own. It's hard to say more without knowing what you are doing in detail. Regards, Owen [*] The one exception I'm aware of is that sometimes when writing language bindings, you want to explicitly catch: --\/ Language proxy objectGobject /\--- cycles, which, if both sides are refcounted, can be detected as a refcount of 1 for both objects. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Pango 1.0.0 patch
On Wed, 2002-03-13 at 19:47, Owen Taylor wrote: > > Alberto Manuel Brandão Simões <[EMAIL PROTECTED]> writes: > > > Well, this is not right a 1.0.0 patch, but a Current cvs patch. > > These were the changes I need to build Pango without problems on a > > Slackware 8 installation. > > Can you explain why you needed to make these changes? I know that it's slackware problem... but it would be good to change. The explanation follows: there are in /usr/X11R6/include a freetype and a freetype2 directories. The first, for freetype 1 and the second for freetype2. If the X includes are first in the Makefile, it will search /usr/X11R6/include/freetype/*.h instead of /usr/X11R6/include/freetype2/freetype/*.h Alberto > > Index: modules/arabic/Makefile.am > > === > > RCS file: /cvs/gnome/pango/modules/arabic/Makefile.am,v > > retrieving revision 1.20 > > diff -u -r1.20 Makefile.am > > --- modules/arabic/Makefile.am 2002/03/06 17:05:04 1.20 > > +++ modules/arabic/Makefile.am 2002/03/13 19:37:08 > > @@ -86,7 +86,7 @@ > > moddefine = $(X_PREFIX) $(XFT_PREFIX) $(FT2_PREFIX) > > moduledir = $(libdir)/pango/$(PANGO_MODULE_VERSION)/modules > > > > -INCLUDES = -DPANGO_ENABLE_ENGINE -DG_DISABLE_DEPRECATED -I$(top_srcdir) >-I$(top_srcdir)/pango/ $(moddefine) $(X_CFLAGS) $(FREETYPE_CFLAGS) > > +INCLUDES = -DPANGO_ENABLE_ENGINE -DG_DISABLE_DEPRECATED -I$(top_srcdir) >-I$(top_srcdir)/pango/ $(moddefine) $(FREETYPE_CFLAGS) $(X_CFLAGS) > > > > pango_arabic_x_la_LDFLAGS = -export-dynamic -avoid-version -module > > pango_arabic_x_la_LIBADD = $(arabic_x_libadd) > ___ > gtk-list mailing list > [EMAIL PROTECTED] > http://mail.gnome.org/mailman/listinfo/gtk-list -- Alberto Simoes ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Pango 1.0.0 patch
Alberto Manuel Brandão Simões <[EMAIL PROTECTED]> writes: > Well, this is not right a 1.0.0 patch, but a Current cvs patch. > These were the changes I need to build Pango without problems on a > Slackware 8 installation. Can you explain why you needed to make these changes? Thanks, Owen > Index: modules/arabic/Makefile.am > === > RCS file: /cvs/gnome/pango/modules/arabic/Makefile.am,v > retrieving revision 1.20 > diff -u -r1.20 Makefile.am > --- modules/arabic/Makefile.am2002/03/06 17:05:04 1.20 > +++ modules/arabic/Makefile.am2002/03/13 19:37:08 > @@ -86,7 +86,7 @@ > moddefine = $(X_PREFIX) $(XFT_PREFIX) $(FT2_PREFIX) > moduledir = $(libdir)/pango/$(PANGO_MODULE_VERSION)/modules > > -INCLUDES = -DPANGO_ENABLE_ENGINE -DG_DISABLE_DEPRECATED -I$(top_srcdir) >-I$(top_srcdir)/pango/ $(moddefine) $(X_CFLAGS) $(FREETYPE_CFLAGS) > +INCLUDES = -DPANGO_ENABLE_ENGINE -DG_DISABLE_DEPRECATED -I$(top_srcdir) >-I$(top_srcdir)/pango/ $(moddefine) $(FREETYPE_CFLAGS) $(X_CFLAGS) > > pango_arabic_x_la_LDFLAGS = -export-dynamic -avoid-version -module > pango_arabic_x_la_LIBADD = $(arabic_x_libadd) ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
undefined reference to `gdk_pixbuf_marshal_VOID__VOID'
I'm trying to compile gtk-2.0 on red hat 7.1 (on a p4), and install the resulting libraries in /usr/gtk. Glib-2.0 compiled. Atk compiled after substituting g_value_get_as_pointer with g_value_peek_pointer in atkmarshal.c (which was renamed in glib according to glib-2.0/gobject/Changelog). Pango compiled. Gtk, however, will not compile. ./configure succeeds, but when I run make it eventually says: gcc -g -O2 -Wall -o gdk-pixbuf-csource gdk-pixbuf-csource.o -L/usr/gtk/lib ./.libs/libgdk_pixbuf-2.0.so /usr/gtk/lib/libgmodule-2.0.so -ldl /usr/gtk/lib/libgobject-2.0.so /usr/gtk/lib/libglib-2.0.so -lm -Wl,--rpath -Wl,/home/users/jsnow/armstrong/gtk/gtk+-2.0.0/gdk-pixbuf/.libs -Wl,--rpath -Wl,/usr/gtk/lib -Wl,--rpath -Wl,/usr/gtk/lib ./.libs/libgdk_pixbuf-2.0.so: undefined reference to `gdk_pixbuf_marshal_VOID__VOID' collect2: ld returned 1 exit status gdk-pixbuf-marshal.c has a function called gdk_pixbuf_marshal_VOID__INT_INT_INT_INT, but no gdk_pixbuf_marshal_VOID__VOID. Any suggestions? thanks, -jim ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Pango 1.0.0 patch
Well, this is not right a 1.0.0 patch, but a Current cvs patch. These were the changes I need to build Pango without problems on a Slackware 8 installation. Regards, your's Alberto Simões -- Alberto Simoes ? _ Index: modules/arabic/Makefile.am === RCS file: /cvs/gnome/pango/modules/arabic/Makefile.am,v retrieving revision 1.20 diff -u -r1.20 Makefile.am --- modules/arabic/Makefile.am 2002/03/06 17:05:04 1.20 +++ modules/arabic/Makefile.am 2002/03/13 19:37:08 @@ -86,7 +86,7 @@ moddefine = $(X_PREFIX) $(XFT_PREFIX) $(FT2_PREFIX) moduledir = $(libdir)/pango/$(PANGO_MODULE_VERSION)/modules -INCLUDES = -DPANGO_ENABLE_ENGINE -DG_DISABLE_DEPRECATED -I$(top_srcdir) -I$(top_srcdir)/pango/ $(moddefine) $(X_CFLAGS) $(FREETYPE_CFLAGS) +INCLUDES = -DPANGO_ENABLE_ENGINE -DG_DISABLE_DEPRECATED -I$(top_srcdir) +-I$(top_srcdir)/pango/ $(moddefine) $(FREETYPE_CFLAGS) $(X_CFLAGS) pango_arabic_x_la_LDFLAGS = -export-dynamic -avoid-version -module pango_arabic_x_la_LIBADD = $(arabic_x_libadd) Index: modules/basic/Makefile.am === RCS file: /cvs/gnome/pango/modules/basic/Makefile.am,v retrieving revision 1.23 diff -u -r1.23 Makefile.am --- modules/basic/Makefile.am 2002/03/06 17:05:05 1.23 +++ modules/basic/Makefile.am 2002/03/13 19:37:08 @@ -90,8 +90,8 @@ -DG_DISABLE_DEPRECATED \ -I$(top_srcdir) \ -I$(top_srcdir)/pango/ \ - $(X_CFLAGS) \ $(FREETYPE_CFLAGS) \ + $(X_CFLAGS) \ $(moddefine) pango_basic_x_la_LDFLAGS = -export-dynamic -avoid-version -module Index: modules/hebrew/Makefile.am === RCS file: /cvs/gnome/pango/modules/hebrew/Makefile.am,v retrieving revision 1.10 diff -u -r1.10 Makefile.am --- modules/hebrew/Makefile.am 2002/03/06 17:05:10 1.10 +++ modules/hebrew/Makefile.am 2002/03/13 19:37:08 @@ -75,8 +75,8 @@ -DG_DISABLE_DEPRECATED \ -I$(top_srcdir) \ -I$(top_srcdir)/pango/ \ - $(X_CFLAGS) \ $(FREETYPE_CFLAGS) \ + $(X_CFLAGS) \ $(moddefine) pango_hebrew_x_la_LDFLAGS = -export-dynamic -avoid-version -module Index: modules/tamil/Makefile.am === RCS file: /cvs/gnome/pango/modules/tamil/Makefile.am,v retrieving revision 1.15 diff -u -r1.15 Makefile.am --- modules/tamil/Makefile.am 2002/03/06 17:05:13 1.15 +++ modules/tamil/Makefile.am 2002/03/13 19:37:08 @@ -52,7 +52,7 @@ moddefine = $(X_PREFIX) $(XFT_PREFIX) moduledir = $(libdir)/pango/$(PANGO_MODULE_VERSION)/modules -INCLUDES = -DPANGO_ENABLE_ENGINE -DG_DISABLE_DEPRECATED -I$(top_srcdir) -I$(top_srcdir)/pango/ $(moddefine) $(X_CFLAGS) $(FREETYPE_CFLAGS) +INCLUDES = -DPANGO_ENABLE_ENGINE -DG_DISABLE_DEPRECATED -I$(top_srcdir) +-I$(top_srcdir)/pango/ $(moddefine) $(FREETYPE_CFLAGS) $(X_CFLAGS) pango_tamil_x_la_LDFLAGS = -export-dynamic -avoid-version -module pango_tamil_x_la_LIBADD = $(tamil_x_libadd) Index: pango/Makefile.am === RCS file: /cvs/gnome/pango/pango/Makefile.am,v retrieving revision 1.76 diff -u -r1.76 Makefile.am --- pango/Makefile.am 2002/03/06 17:23:04 1.76 +++ pango/Makefile.am 2002/03/13 19:37:08 @@ -27,8 +27,8 @@ -DLIBDIR=\"$(libdir)\" \ -DMODULE_VERSION=\"$(PANGO_MODULE_VERSION)\"\ -DG_DISABLE_DEPRECATED \ - $(X_CFLAGS) \ $(FREETYPE_CFLAGS) \ + $(X_CFLAGS) \ -I$(top_srcdir) if HAVE_X
Re: Sockets
On Tue, 12 Mar 2002, Paul Davis wrote: > GTK is a toolkit for creating graphical user interfaces. It has > nothing to do with sockets or other IPC mechanisms, though it has some > builtin support to make integrating I/O handling a little simpler. I > think you need to look at another library that is focussed on this > area, not GTK. He might run into problems when trying to integrate the socket IO with the gtk_main function that never returns. He needs to become familiar with monitoring the IO (14.2 in the tutorial, I think), or how to avoid using the gtk-main function. Chris ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
VDK/VDKBuilder 2.0.0 released
VDK Team is proud to announce that: === VDK and VDKBuilder version 2.0.0 is now available at: http://vdkbuilder.sourceforge.net following "downloads" link. Also vdkxdb-2 (a VDK wrapper of xbase library ) is available on the same site. Release notes: == 1. VDK/VDKBuilder 2.0.0 require to have installed: - Gtk+/Glib 2.0.0 - atk version 1.0.0 - pango 1.0.0 that can be downloaded from: http://www.gtk.org 2. User that upgrade from VDK/VDKBuilder 1.2.5 can have both versions running on same box provided that are installed in different prefixes (we suggest /usr for version 1.2.5 and /usr/local for 2.0.0 version) 3. User should consider version 2.0.0 as an unstable and incomplete release, test it and report any problem to [EMAIL PROTECTED] or trough vdkbuilder list available at: http://vdkbuilder.sourceforge.net A new much more stable and complete release will come soon, pending on user feedback. 4. A VDK/VDKBuilder tutorial is available in pdf format. Is still a draft, written with my bad english, but quite usable, i hope. 5. A 150 pages VDK/VDKBuilder tutorial is now available, it covers almost all aspects on using VDK and VDKBuilder, for this reason VDK Reference manual won't be updated anymore, users are encouraged to install Doxygen tool that permits to build a nice reference manual in html, ps and man format. See INSTALL for further informations. You can download doxygen at: http://www.doxygen.org/download.html 6. Both VDK and VDKBuilder 2.0.0 have been tested on Mandrake 8.0 and RedHat 7.2, using either gcc 2.96 and gcc 3.0. User should try on different systems and report problems if any. What's new on VDK 2.0.0 === Library had a huge rewriting to be compatible with Gtk+ 2.0. However users upgrading from VDK 1.2.5 should suffer little code breaks. Some widgets are now deprecated even if still supported for compatibility reason. Newly written code should not use them. Other widget are not supported anymore. Deprecated widgets: -- VDKCustomList VDKCustomTree VDKPixmap VDKCanvas Widget not more supported: -- - gtkcombobutton Used on VDKCustomButton class which is now modified, with API unchanged. - VDKFileTreeDialog Based on an old gtkdirtree widget - VDKDatabox Based on gtkdatabox. - VDKGrid Based on gtksheet. - VDKFileIconDialog Based on gtkiconfilesel, same as above. - VDKCoolbar and VDKCoolButton Was already "deprecated" on previous vdk versions. - VDKPanedForm and VDKScrolledForm As above, was deprecated. - VDKColorBrowser It depends on VDKGrid - VDKLabelToggleButton and VDKPixmapToggleButton Deprecated and substituted with VDKCustomButtons. - VDKPacker - VDKText New widgets and features: - VDKTextView A GtkTextView wrapper that would substitute deprecated and buggy VDKText. - VDKEditor A nice source editor wrapping Mike Hamerson gtksourceview 0.0.2 (still on alpha), with syntax hilighting and other nice feautures such as word completion (ctrl-tab) , parent matching, etc. - VDKImage A GtkImage wrapper that should substitute VDKPixmap. - VDKThread A simple wrapper on posix threads. - VDKInputChannel A wrapper for gdk_input Thanks to Jonathan Hudson <[EMAIL PROTECTED]> . - VDKTreeView A wrapper for GtkTreeView - VDKCalendar A wrapper for GtkCalendar - VDKDrawingArea This widget should substitute VDKCanvas, not deprecated but consider the new a better widget. What's new on VDKBuilder 2.0.0 == - Porting to Gtk+ 2.0.0 - Redesigned interface - New project wizard - New source editor based on GtkTextView - Class browser - More widgets support - More plugins - Many minor bug fixes - Finally a VDK/VDKBuilder tutorial ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
ref_count
Is it appropriate to look at a gobject's ref_count, or is that supposed to be private? I've been keeping track of its value whenever I deliberately increment or decrement it, but the code makes it look as though I'm doing something improper -- and likely to be disabled. Is there some equivalent of a g_object_get_ref_count function that I just haven't spotted? Debby ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: set attributes to rows in GtkTreeView
Bernd Demian <[EMAIL PROTECTED]> writes: > First the question: Can somebody show me a simple way to change the > color of one or more rows in GtkTreeView. In CList it was simple to use > the function gtk_clist_set_background. I don't think there is one. What's the application? You probably have to change the color of each cell separately by setting properties on the cell renderer or writing a custom cell renderer. You can create alternating colors with gtk_tree_view_set_rules_hint(). > Second the bug : I have gtk+ installed on True64 and in the testgtk appl > it crased when I select the text. > Here is the stack from core file. I hope somebody can find the bug. Looks like a divide-by-zero in gtkrange.c. This is in 2.0.0? > and thirdly the suspicion, when you compress a string with g_strcompress > and the last char is '\', it seems the function destroyed the memory. Indeed, it looks like the function is broken. Can you report this on http://bugzilla.gnome.org. You can put the tree-row-color feature request there too, but should explain your use-case for the feature to aid in deciding on an API. Havoc ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
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
Re: Max value set for slider is not actual max value in use.
On Tue, Mar 12, 2002 at 01:43:35PM -0800, Christian Seberino wrote: > Your suggestion makes perfect sense to me. It seems like that > *must* be what is wrong. Yet I checked my code and can't see it > > #define INI_N_MASSES 1 > #define MIN_N_MASSES 1 > #define MAX_N_MASSES 2048 > #define INC_N_MASSES 1 > > ... > >numberOfMassesSliderAdj = GTK_OBJECT(gtk_adjustment_new( > INI_N_MASSES, MIN_N_MASSES, MAX_N_MASSES, INC_N_MASSES, > INC_N_MASSES, INC_N_MASSES)); Try to set the pagesize of the adjustment to 0. It seems the slider tries to fit a 'page' in the range [min...max], like it is needed for scrollbars, but not so useful for scales without a 'page'. So gtk_adjustment_new (0, 0, 1000, 1, 1, 0) should make the slider value get the whole range. > > I could not move slider farther to right then 2047. > > Chris > > > On Tue, Mar 12, 2002 at 04:00:41PM -0500, [EMAIL PROTECTED] wrote: > > On Tue, 12 Mar 2002 12:58:16 PST, Christian Seberino <[EMAIL PROTECTED]> >said: > > > If I make a slider for a value that goes from > > > 0 to 2000, then leftmost value is 0 > > > *BUT*, rightmost value is 1999!!! > > > > > > Why do I lose the last number? > > > > Sounds like a fencepost error to me. Is it "min 0 max 2000", or "min 0 > > steps 2000"? 0..1999 is 2000 points. > > -- > > Valdis Kletnieks > > Computer Systems Senior Engineer > > Virginia Tech > > > > > > -- > === > | Dr. Christian Seberino || (619) 553-7940 (office) | > | SPAWARSYSCEN 2363 || (619) 553-2836 (fax)| > | 53560 HULL ST || | > | SAN DIEGO CA 92152-5001 || [EMAIL PROTECTED] | > === > ___ > 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
set attributes to rows in GtkTreeView
Hi all, thanks for the gtk-version, great job btw I have one question, one bug and one suspicion. First the question: Can somebody show me a simple way to change the color of one or more rows in GtkTreeView. In CList it was simple to use the function gtk_clist_set_background. Second the bug : I have gtk+ installed on True64 and in the testgtk appl it crased when I select the text. Here is the stack from core file. I hope somebody can find the bug. dbx testgtk core dbx version 3.11.10 Type 'help' for help. Core file created by program "testgtk" signal Floating point exception at [gtk_range_calc_layout:2044 +0x34,0x396e4bc] Source not available (dbx) where > 0 gtk_range_calc_layout(range = 0x1404b4800, adjustment_value = 0.0) ["gtkrange.c":2044, 0x396e4bc] 1 gtk_range_size_allocate(widget = 0x1404b4800, allocation = 0x11fffca18) ["gtkrange.c":755, 0x396bc80] 2 g_cclosure_marshal_VOID__BOXED(closure = 0x140032da0, return_value = (nil), n_param_values = 2, param_values = 0x11fffc7d0, invocation_hint = 0x11fffc688, marshal_data = 0x396bc20) ["gmarshal.c":566, 0x30002025808] 3 g_type_class_meta_marshal(closure = 0x140032da0, return_value = (nil), n_param_values = 2, param_values = 0x11fffc7d0, invocation_hint = 0x11fffc688, marshal_data = 0xf8) ["gclosure.c":514, 0x3000200d314] 4 g_closure_invoke(closure = 0x140032da0, return_value = (nil), n_param_values = 2, param_values = 0x11fffc7d0, invocation_hint = 0x11fffc688) ["gclosure.c":437, 0x3000200cfa8] 5 signal_emit_unlocked_R(node = 0x140032bc0, detail = 0, instance = 0x1404b4800, emission_return = (nil), instance_and_params = 0x11fffc7d0) ["gsignal.c":2270, 0x30002023c2c] 6 g_signal_emit_valist(instance = 0x1404b4800, signal_id = 10, detail = 0, var_args = struct { _a0 = 0x11fffc9a0 _offset = 24 }) ["gsignal.c":2099, 0x30002023164] 7 gtk_signal_emit(object = 0x1404b4800, signal_id = 10) ["gtksignal.c":355, 0x3989e88] 8 gtk_widget_size_allocate(widget = 0x1404b4800, allocation = 0x11fffca70) ["gtkwidget.c":2323, 0x3a429c4] 9 gtk_scrolled_window_size_allocate(widget = 0x1404c25a0, allocation = 0x11fffcfc8) ["gtkscrolledwindow.c":1187, 0x3982280] 10 g_cclosure_marshal_VOID__BOXED(closure = 0x140032da0, return_value = (nil), n_param_values = 2, param_values = 0x11fffcd80, invocation_hint = 0x11fffcc38, marshal_data = 0x3981d04) ["gmarshal.c":566, 0x30002025808] 11 g_type_class_meta_marshal(closure = 0x140032da0, return_value = (nil), n_param_values = 2, param_values = 0x11fffcd80, invocation_hint = 0x11fffcc38, marshal_data = 0xf8) ["gclosure.c":514, 0x3000200d314] 12 g_closure_invoke(closure = 0x140032da0, return_value = (nil), n_param_values = 2, param_values = 0x11fffcd80, invocation_hint = 0x11fffcc38) ["gclosure.c":437, 0x3000200cfa8] 13 signal_emit_unlocked_R(node = 0x140032bc0, detail = 0, instance = 0x1404c25a0, emission_return = (nil), instance_and_params = 0x11fffcd80) ["gsignal.c":2270, 0x30002023c2c] 14 g_signal_emit_valist(instance = 0x1404c25a0, signal_id = 10, detail = 0, var_args = struct { _a0 = 0x11fffcf50 _offset = 24 }) ["gsignal.c":2099, 0x30002023164] 15 gtk_signal_emit(object = 0x1404c25a0, signal_id = 10) ["gtksignal.c":355, 0x3989e88] 16 gtk_widget_size_allocate(widget = 0x1404c25a0, allocation = 0x11fffd028) ["gtkwidget.c":2323, 0x3a429c4] 17 gtk_vbox_size_allocate(widget = 0x14046ee20, allocation = 0x11fffd588) ["gtkvbox.c":257, 0x3a38a8c] 18 g_cclosure_marshal_VOID__BOXED(closure = 0x140032da0, return_value = (nil), n_param_values = 2, param_values = 0x11fffd340, invocation_hint = 0x11fffd1f8, marshal_data = 0x3a3870c) ["gmarshal.c":566, 0x30002025808] 19 g_type_class_meta_marshal(closure = 0x140032da0, return_value = (nil), n_param_values = 2, param_values = 0x11fffd340, invocation_hint = 0x11fffd1f8, marshal_data = 0xf8) ["gclosure.c":514, 0x3000200d314] 20 g_closure_invoke(closure = 0x140032da0, return_value = (nil), n_param_values = 2, param_values = 0x11fffd340, invocation_hint = 0x11fffd1f8) ["gclosure.c":437, 0x3000200cfa8] 21 signal_emit_unlocked_R(node = 0x140032bc0, detail = 0, instance = 0x14046ee20, emission_return = (nil), instance_and_params = 0x11fffd340) ["gsignal.c":2270, 0x30002023c2c] 22 g_signal_emit_valist(instance = 0x14046ee20, signal_id = 10, detail = 0, var_args = struct { _a0 = 0x11fffd510 _offset = 24 }) ["gsignal.c":2099, 0x30002023164] 23 gtk_signal_emit(object = 0x14046ee20, signal_id = 10) ["gtksignal.c":355, 0x3989e88] 24 gtk_widget_size_allocate(widget = 0x14046ee20, allocation = 0x11fffd5e8) ["gtkwidget.c":2323, 0x3a429c4] 25 gtk_vbox_size_allocate(widget = 0x1404ae600, allocation = 0x11fffdb48) ["gtkvbox.c":257, 0x3a38a8c] 26 g_cclosure_marshal_VOID__BOXED(closure = 0x140032da0, return_value = (nil), n_param_values = 2, param_values = 0x11fffd900, invocation_hint = 0x11fffd7b8, marshal_data = 0x3a3870c) ["gmarshal.c":566, 0x30002025808] 27 g_
Re: frozen GUI!!! urgent help required!
Hello all, while(g_main_iteration(FALSE)) did help!!! That's great. Anyway, I think I'll go the multithreaded approach (more elegant and 'clean'). Just takes more time... Thanks to you all for the fast replies and given help!!! Many cheers, Michael. -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list