Re: stop on Gtk-WARNING

2005-10-17 Thread Tim Flechtner
there is an argument you can pass in to the application at invocation 
that does this.  i think it is --g-fatal-warnings (eg ./foo 
--g-fatal-warnings).


-tim

** 
http://mail.gnome.org/archives/gtk-devel-list/1998-August/msg00088.htmlBoncek, 
John wrote: 
http://mail.gnome.org/archives/gtk-devel-list/1998-August/msg00088.html



The same for GLib-GObject-WARNINGs and other similar ones.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Boncek, John
Sent: Monday, October 17, 2005 11:33 AM
To: gtk-app-devel-list@gnome.org
Subject: stop on Gtk-WARNING

When a GTK app gets Gtk-WARNINGs without actually stopping, it can be hard
to determine exactly where they're coming from.  Is there a way to tell
GTK to stop immediately on such a warning?  This would allow using a
debugger to localize the first warning much more easily.
 




___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


enter_notify_event and leave_notify_event signals

2005-08-30 Thread Tim Flechtner

hi everyone,
 i would like to receive the enter notfy event and leave notify event 
signals even when the mouse is moved into/out of a widget while a mouse 
button is down.  anecdotal evidence shows me that only when the mouse 
button is released do i get these signals, beyond the leave notify event 
in the widget i pressed the mouse button down in.  i suspect this has 
something to do with the drag/drop signals (which i have no experience 
with), as the GdkEventCrossing pointer supplied by these signals has its 
mode set to GDK_CROSSING_GRAB when i leave the first widget, and 
GDK_CROSSING_UNGRAB when i release the mouse button.  does anyone know 
of a way i can get the enter and leave event signals regardless of any 
mouse buttons currently down?


thanks!
-tim
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


warning - bug in solaris x86 ldd breaks install of gtk+-2.4.10

2004-10-07 Thread Tim Flechtner
i'm writing this to warn the other three users of solaris x86 in the 
world. :)  for solaris 8 and 9, on x86 (maybe other versions as well), 
the sun ldd chokes on some library names, including, for example, 
libgtk-x11-2.0.so.0.400.10.  this manifests in at least two ways:

1. when you run ldd against the library, the first line printed out has 
garbage (or sometimes it just crashes) for the library name.  eg

usira:/home/troll/timf/src/gnome/2.4/build/gtk+-2.4.10/gtk/.libs $ ldd 
libgtk-x11-2.0.so.0.400.10
รน = (file not found)
libgdk_pixbuf-2.0.so.0 = 
/opt/app/gnome-2.4//lib/libgdk_pixbuf-2.0.so.0
libgdk-x11-2.0.so.0 = 
/opt/app/gnome-2.4//lib/libgdk-x11-2.0.so.0
libX11.so.4 =   /usr/openwin/lib/libX11.so.4
libsocket.so.1 =/usr/lib/libsocket.so.1
libnsl.so.1 =   /usr/lib/libnsl.so.1
libpangoxft-1.0.so.0 = 
/opt/app/gnome-2.4//lib/libpangoxft-1.0.so.0
libpangox-1.0.so.0 =/opt/app/gnome-2.4//lib/libpangox-1.0.so.0
libpango-1.0.so.0 = /opt/app/gnome-2.4//lib/libpango-1.0.so.0
libatk-1.0.so.0 =   /opt/app/gnome-2.4//lib/libatk-1.0.so.0
libgobject-2.0.so.0 = 
/opt/app/gnome-2.4//lib/libgobject-2.0.so.0
libgmodule-2.0.so.0 = 
/opt/app/gnome-2.4//lib/libgmodule-2.0.so.0
libdl.so.1 =/usr/lib/libdl.so.1
libglib-2.0.so.0 =  /opt/app/gnome-2.4//lib/libglib-2.0.so.0
libiconv.so.2 = /opt/app/lib/libiconv.so.2
libm.so.1 = /usr/lib/libm.so.1
libc.so.1 = /usr/lib/libc.so.1
libgcc_s.so.1 = /opt/lang/gcc-3.3.2/lib/libgcc_s.so.1
libXext.so.0 =  /usr/openwin/lib/libXext.so.0
libXft.so.2 =   /opt/app/gnome-2.4//lib/libXft.so.2
libfreetype.so.6 =  /opt/app/lib/libfreetype.so.6
libz.so.1 = /usr/lib/libz.so.1
libfontconfig.so.1 = 
/opt/app/fontconfig-2.2.0/lib/libfontconfig.so.1
libXcursor.so.1 =   /opt/app/gnome-2.4//lib/libXcursor.so.1
libXrender.so.1 =   /opt/app/gnome-2.4//lib/libXrender.so.1
libmp.so.2 =/usr/lib/libmp.so.2
libpangoft2-1.0.so.0 = 
/opt/app/gnome-2.4//lib/libpangoft2-1.0.so.0
libdga.so.1 =   /usr/openwin/lib/libdga.so.1
libexpat.so.0 = /opt/app/expat-1.95.7/lib/libexpat.so.0

2. when you run applications which link against the shared object in 
question, they crash.

NOTE!!! This is not a complaint about gtk, just an attempt to warn 
others who might be bitten by this.

-tim
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: jpeg-6b

2004-07-05 Thread Tim Flechtner
look at the generated file 'config.log'.  i suspect you need to add a 
directory to either your include directories or library directories to 
pick up jpeg's headers and/or libraries.  ./configure will listen to the 
environmental variables CFLAGS, CPPFLAGS and LDFLAGS, so you can set 
directives in these.

for example, lets say the jpeg library is installed in /opt 
(/opt/include for the headers, /opt/lib for the libraries), and you are 
on a linux box;

export CFLAGS=-I/opt/include
export CPPFLAGS=$CFLAGS
export LDFLAGS=-L/opt/lib
-tim
Jerry Pringle wrote:
Hello All,
Further to my earlier question (regarding Pango). I have compiled and 
installed Pango, but now when running configure for GTK+ I get the 
following error:

checking for jpeg_destroy_decompress in -ljpeg... no
configure: WARNING: *** JPEG loader will not be built (JPEG library not 
found) ***
configure: error:
*** Checks for JPEG loader failed. You can build without it by passing
*** --without-libjpeg to configure but some programs using GTK+ may
*** not work properly

I have tried running make clean and the rerunning configure and make for 
the jpeg-6b library (downloaded from GTK ftp site), but still get the 
same error.

Is there something obvious I am missing?
Thanks
Jerry
___
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: want to add number to label

2003-03-18 Thread Tim Flechtner
gtk_label_new expects a pointer to a character array (char *), but 
simply telling the compiler that nr is a pointer to a character array by 
casting it to char * does not make it a valid array. (i could tell you i 
was a flounder, but trust me, its still not true).  you need to convert 
nr to a character representation of nr's floating point value.  one way 
to do this is by using sprintf.  do a 'man sprintf', but it will look 
something like:

char buf[20];
sprintf(buf, %f, nr);
-tim

edward hage wrote:
Hello, I think I have a simple problem but I cannot figure out how to
get a float on a label. It is designed for a string, like this is a
button but I want to show a float value. 

So my question is how can I turn a float into a suitable format to stick
to a label?
Example that does not work:

GtkWidget *button;
float nr;
nr = 3.123;
button = gtk_label_new ((char *) nr);  
Thank you, Edward
___
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


TreeView performance

2003-02-11 Thread Tim Flechtner
hello all,
  i am writing a trading application that displays updates to financial 
contracts in real time, using a TreeView widget.  there can be four to 
five hundred updates coming in a second, and under this load my 
application takes about 60% of the cpu time of my dual processor 2.53 
mhz box.  through experimentation, i noticed that when i commented out 
the code which updates text in its various columns (but all the other 
processing, and rendering of colors still occurs), my cpu usage falls to 
 2%.
  this leads me to believe that the TreeView widget just wasn't 
intended to be used for this sort of purpose.  i'm just writing in the 
hopes that maybe there's something easy i could do which would lose me 
about 55% of the cpu usage. :)  this is not a criticism of the widget at 
all, i think its really flexible, and once the learning curve has been 
climbed, convienent to use (which is why i want to do so :) ).  any 
comments are greatly appreciated.

  i'm posting to both the gtk and gtkmm list, because i'm using gtkmm, 
but am not sure if the processing overhead is being incurred in the 
template instantiations of my columns or the the core tree_view widget.

thanks!
-tim

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


glib event loop thrashing on solaris x86?

2003-02-11 Thread Tim Flechtner
hi!
  this is a somewhat vague question, which i apologize for.  i'm just 
trying for suggestions of where i should look to find my glitch:

i am running on a dual processor x86 solaris 8 box, and my gtkmm 
application seems to spend a lot of time thrashing in the glib event 
loop.  truss reveals lots of this:

ioctl(4, FIONREAD, 0x0804657C)= 0
gettimeofday(0x08046584)= 0
poll(0x0832D400, 2, 0)= 0
gettimeofday(0x080465A4)= 0
ioctl(4, FIONREAD, 0x0804657C)= 0
gettimeofday(0x08046584)= 0
poll(0x0832D400, 2, 0)= 0
gettimeofday(0x080465A4)= 0

top reports my cpu usage at around 60%, which seems very high for the 
amount of processing that is going on.  has anyone run into a similar 
situation?  if so, can you suggest things i might be doing wrong?

thanks!
-tim

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Solaris X86 - thrashing in glib event loop?

2003-02-07 Thread Tim Flechtner
hi!
  this is a somewhat vague question, which i apologize for.  i'm just 
trying for suggestions of where i should look to find my glitch:

gtk-2.2.1

i am running on a dual processor x86 solaris 8 box, and my gtkmm 
application seems to spend a lot of time thrashing in the glib event 
loop.  truss reveals lots of this:

ioctl(4, FIONREAD, 0x0804657C)= 0
gettimeofday(0x08046584)= 0
poll(0x0832D400, 2, 0)= 0
gettimeofday(0x080465A4)= 0
ioctl(4, FIONREAD, 0x0804657C)= 0
gettimeofday(0x08046584)= 0
poll(0x0832D400, 2, 0)= 0
gettimeofday(0x080465A4)= 0

top reports my cpu usage at around 60%, which seems very high for the 
amount of processing that is going on.  has anyone run into a similar 
situation?  if so, can you suggest things i might be doing wrong?

thanks!
-tim

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list