Re: How to set cursor color in GtkEntry?

2005-02-11 Thread Zeeshan Ali
Hello, I used to do such a thing and my way of doing such stuff was using gtkrc files (which is what i still use). There are two arrays that you need to set here: text and fg. Set them both to black for all possible indexes and I think you'll get the behavior you want. Here is a how the relevent

Re: intercept nervous button clicks...

2005-02-11 Thread Freddie Unpenstein
> Let me sum up: > * In the beginning of each button click callback you call a > function to make the buttons insensitive (even the clicked one? > protection is needed here also), I just kept a list of all the buttons that mattered, and insensitised them all rather indiscriminantly (even the cli

Re: intercept nervous button clicks...

2005-02-11 Thread Marc Santhoff
Am Fr, den 11.02.2005 schrieb Felix Kater um 22:09: > Iago Rubio: > > > Set the window insensitive - or the buttons - and use a wait cursor to > > tell the user the program is working and should not be disturbed :) > > Thanks, this is, however, no solution. The problem is harder than it > seems i

How to set cursor color in GtkEntry?

2005-02-11 Thread HOCHSTETLER, BRUCE W. (JSC-DV3/T) (TSI)
It seems by default the cursor color is always set to black. The problem is, I've set my entry widget background to black (per user's requirement), now the cursor is appears 'invisible', but is actually black on black. There should be a way to set the cursor color to the text color currently in use

Re: intercept nervous button clicks...

2005-02-11 Thread Felix Kater
Freddie Unpenstein: > How about clearing the button blocked flag from an idler, started once > the action is complete? [...] > All I'd need to deal with your situation, would be to slip in > an idle timeout to call the restore function instead of calling the > restore function directly. That's

Re: intercept nervous button clicks...

2005-02-11 Thread Felix Kater
Iago Rubio: > Set the window insensitive - or the buttons - and use a wait cursor to > tell the user the program is working and should not be disturbed :) Thanks, this is, however, no solution. The problem is harder than it seems in the beginning: Whatever you do/block/change inside the button's

Re: gdk_threads_enter/leave() in threaded and non threaded situation

2005-02-11 Thread Stefan Kost
hi again, this with the thread was a bad idea ;). I now have a solution that is imho hacky. I wrap my g_object_set() call by gdk_threads_leave()/enter() to temporaily release the lock. Meanwhile I have downloaded the sources of a lot of gnome apps and now I will study how they do it. Thanks a l

Re: gdk_threads_enter/leave() in threaded and non threaded situation

2005-02-11 Thread Tristan Van Berkom
On Fri, 11 Feb 2005 19:06:44 +0100, Stefan Kost <[EMAIL PROTECTED]> wrote: [...] > The g_object_set() is called from a signal callback that gets triggered > by user action and thus already runs gdk_mutex protected. > Wrapping this with enter/leave would block. > I can wrap the g_object_notify() wit

Re: gdk_threads_enter/leave() in threaded and non threaded situation

2005-02-11 Thread Stefan Kost
another go in trying to make the situation clear. I have two place in the source that is causing the notify signal to be emited: A) core lib :: sequence.play() * when called from a gtk app it will run inside a thread * the method directly changes the property and calls g_object_notify() B) g

Re: gdk_threads_enter/leave() in threaded and non threaded situation

2005-02-11 Thread Stefan Kost
Hi hi, it is still not that simple :( I have a core lib, that is used by a commandline and by a gtk based app. All is gobject based. In the core lib I have an object A that has a property A.a. Now from the gtk app I set this property from a thread (when playing) and from my main thread (via user

Re: Expose Event

2005-02-11 Thread John Vetterli
On Fri, 11 Feb 2005 06:06:00 + "[ A b h i s h e k ]" <[EMAIL PROTECTED]> wrote: > Im having problem regarding writing code in the expose event of my > event box. Whenever this event occurs, i am writing code to draw a > rectangle in the handler but nothing seems to happen whereas if i run > the

date widget

2005-02-11 Thread Giovanni Manenti
Hi, there is a widget that show the current date and time? Giovanni ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: gdk_threads_enter/leave() in threaded and non threaded situation

2005-02-11 Thread Tristan Van Berkom
On Fri, 11 Feb 2005 09:46:41 +0200, Olexiy Avramchenko <[EMAIL PROTECTED]> wrote: > Stefan Kost wrote: > > hi hi, > Hello > > I have a gobject property that is set (via g_object_set()) from within a > > thread and from the main thread. > > Further I have signal handlers that watch this via notify::

Re: gtk_calendar_get_date returns month from starting from 0

2005-02-11 Thread Matthias Clasen
On Fri, 2005-02-11 at 13:15 +0100, Hubert Sokolowski wrote: > Hi! > > I didn't find it on bugs.gnome.org. I have gtk 2.4.13 and > gtk_calendar_get_date returns month number starting from 0, year and day > is ok. is this a bug? or I should just add 1? > The documentation could be clearer, but if

Re: GtkFixed redraws

2005-02-11 Thread John Cupitt
On Thu, 10 Feb 2005 23:10:06 -0500, Matt Moseley <[EMAIL PROTECTED]> wrote: > I have an application where I dynamically add GtkButtons to a GtkFixed area. > Whenever I add a button to the fixed area, everything to the right of and > below the top left of the button I'm adding gets cleared out an

Re: gtktreeview / multiple cell renderers

2005-02-11 Thread Denis
Hazael Maldonado Torres wrote: Hi everybody, I am trying to build a tree_view on top of a GtkTreeModel I made and I would like to see in each cell an icon of the gtk stock by giving its stock-id and a text. You should have a look on the gtk demo programm, its name is gtk-demo. It has what I

Re: gtktreeview / multiple cell renderers

2005-02-11 Thread Denis
Martyn Russell wrote: On Thu, 2005-02-10 at 14:46 +0100, Denis wrote: Hi everybody, Hi, I am trying to build a tree_view on top of a GtkTreeModel I made and I would like to see in each cell an icon of the gtk stock by giving its stock-id and a text. Instead of using the "pixbuf" p

gtk_calendar_get_date returns month from starting from 0

2005-02-11 Thread Hubert Sokolowski
Hi! I didn't find it on bugs.gnome.org. I have gtk 2.4.13 and gtk_calendar_get_date returns month number starting from 0, year and day is ok. is this a bug? or I should just add 1? regards hs ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome

Re: gtktreeview / multiple cell renderers

2005-02-11 Thread Hazael Maldonado Torres
Hi everybody, I am trying to build a tree_view on top of a GtkTreeModel I made and I would like to see in each cell an icon of the gtk stock by giving its stock-id and a text. You should have a look on the gtk demo programm, its name is gtk-demo. It has what I think is what you want to achi