Re: [hv]scale doesn't quite work the way I thought it would...

2001-09-14 Thread Skip Montanaro
>> Also, can I get it to only display values as integers ("1" instead of >> "1.0")? Paul> this may do the trick: Paul> gtk_hscale_set_digits (GTK_SCALE(hsc), 0); Thanks, this did the trick. In fact, it solves both problems. It limits the display of the number of digits after

Re: [hv]scale doesn't quite work the way I thought it would...

2001-09-14 Thread Paul Davis
>adj = gtk.GtkAdjustment(1,1,6,1,1,1) >hsc = gtk.GtkHScale(adj) > >If I click in the trough, it increments or decrements by 1. However, if I >drag the slider, it increments by 0.1. I only want it to take on integer >values between 1 and 5 (inclusive). Is there a way to force the step >i

[hv]scale doesn't quite work the way I thought it would...

2001-09-14 Thread Skip Montanaro
I created a scale widget in Python like so: adj = gtk.GtkAdjustment(1,1,6,1,1,1) hsc = gtk.GtkHScale(adj) If I click in the trough, it increments or decrements by 1. However, if I drag the slider, it increments by 0.1. I only want it to take on integer values between 1 and 5 (inclusiv

limiting the size of a scrolled window

2001-09-14 Thread Paul Davis
i've run into this problem several times before, but i've forgotten how to fix it. i changed the layout of one of my windows. i used to pack 2 widgets into a table, then pack the table into a scrolled window, then put the window in a vbox, then that into an hbox, and add the hbox to the main even

Re: gtk12-config doen't recognize libintl

2001-09-14 Thread Tilman Linneweh
Hi Havoc Pennington wrote: >>My gtk12-config doesn't show -lintl: >> >>[tilman@tl tilman]$ gtk12-config --libs >>-L/usr/X11R6/lib -L/usr/X11R6/lib -lgtk12 -lgdk12 -L/usr/local/lib -Wl,-E >>-lgmodule12 -lglib12 -lXext -lX11 -lm >> >>My Hosts OS is FreeBSD. The libintl.so and libintl.a are in /usr/

Re: gtk & system startup

2001-09-14 Thread Havoc Pennington
"Marek Stochel" <[EMAIL PROTECTED]> writes: > An application is using gtk, but not in graphical form (gtk_timeout_add & > remove) > ... > So, as it doesn't need any display is there a possibility to start it as > described above? > > Or the only way is to get rid of gtk functions in this appl

Re: question about GTK+ and LGPL

2001-09-14 Thread Havoc Pennington
[EMAIL PROTECTED] writes: > To my question: is it correct, that I can use/sell my programs (using > GTK+) commercially, WITHOUT paying a license fee to someone??? Yes, that is generally considered true. But, I am not a lawyer, etc. You do have some obligations; briefly, it must be possible for

Re: gtk12-config doen't recognize libintl

2001-09-14 Thread Havoc Pennington
Tilman Linneweh <[EMAIL PROTECTED]> writes: > My gtk12-config doesn't show -lintl: > > [tilman@tl tilman]$ gtk12-config --libs > -L/usr/X11R6/lib -L/usr/X11R6/lib -lgtk12 -lgdk12 -L/usr/local/lib -Wl,-E > -lgmodule12 -lglib12 -lXext -lX11 -lm > > My Hosts OS is FreeBSD. The libintl.so and libin

Re: gtk & system startup

2001-09-14 Thread Ralph Walden
Use the g_timer_xxx functions instead of gtk_timer_xxx, and link with glib only. Ralph Walden > Marek Stochel wrote: > > I'd like to get such result: > An application is using gtk, but not in graphical form > (gtk_timeout_add & remove) > It acts as a daemon - collects information, serving to o

question about GTK+ and LGPL

2001-09-14 Thread RevX
Hello everybody, this is my first message to this mailing list, so, don't beat me if I go against some rules. To my question: is it correct, that I can use/sell my programs (using GTK+) commercially, WITHOUT paying a license fee to someone??? I don't plan to make modifications to the GTK+ librar

gtk & system startup

2001-09-14 Thread Marek Stochel
I'd like to get such result: An application is using gtk, but not in graphical form (gtk_timeout_add & remove) It acts as a daemon - collects information, serving to other applications, etc. The operating system is Solaris7, and application is compiled under gcc. When initiated as last of rc

gtk12-config doen't recognize libintl

2001-09-14 Thread Tilman Linneweh
Hi My gtk12-config doesn't show -lintl: [tilman@tl tilman]$ gtk12-config --libs -L/usr/X11R6/lib -L/usr/X11R6/lib -lgtk12 -lgdk12 -L/usr/local/lib -Wl,-E -lgmodule12 -lglib12 -lXext -lX11 -lm My Hosts OS is FreeBSD. The libintl.so and libintl.a are in /usr/local/lib. I can only compile gtk-ap