Re: How do I disable automatic drag and drop between GtkEntry widgets?

2008-05-16 Thread Brian J. Tarricone
On Fri, 16 May 2008 16:12:50 -0400 [EMAIL PROTECTED] wrote: > I'm using mwm and libglade if that makes a difference. Is this > automatic drag and drop something that libglade sets up for me by > chance? Why would you want to do this? People accustomed to how entry widgets behave will likely be

Re: Question aboutusing message dialog to ask confirmation

2008-05-16 Thread Brian J. Tarricone
On Fri, 16 May 2008 19:19:55 +0100 John M Collins wrote: > I want to have a "do you really want to do this" type question and I'm > trying to use a message dialog thus: > > GtkWidget *dlg = gtk_message_dialog_new(GTK_WINDOW(previous), > GTK_DIALOG_DESTROY_WITH_PARENT, > GTK_MESSAGE_QUESTION, >

Re: Recalculation of timeouts with g_timeout_add

2008-05-16 Thread Luis Menina
Mitko Haralanov a écrit : > On Fri, 16 May 2008 09:54:22 +0200 > G Hasse <[EMAIL PROTECTED]> wrote: > >> Let your callback return FALSE and reregister before the return > > Hi, I thought of that but I was sure that there is a better way to do > this without playing games with unregistering and r

Can I turn off scrolling on combobox lists?

2008-05-16 Thread kmbruhnk
I'm trying to simulate an application that does not feature scrolling combobox lists (this only happens when near the top or bottom of the screen). I need to disable this feature. Can it be done without modifying Gtk itself? Kurt M. Bruhnke Rockwell-Collins Simulation & Training Solutions Pho

How do I disable automatic drag and drop between GtkEntry widgets?

2008-05-16 Thread kmbruhnk
I'm using mwm and libglade if that makes a difference. Is this automatic drag and drop something that libglade sets up for me by chance? Kurt M. Bruhnke Rockwell-Collins Simulation & Training Solutions Phone: 703-234-2163 Email: [EMAIL PROTECTED] ___ g

Re: Recalculation of timeouts with g_timeout_add

2008-05-16 Thread jcupitt
2008/5/16 Mitko Haralanov <[EMAIL PROTECTED]>: > I am not sure why the GTK devs decided that re-calculating the timeout > based on the time right after the timeout thread is started is the > right thing to do but it seems very wrong to me. I think the idea is that the timeout might represent a

Re: Recalculation of timeouts with g_timeout_add

2008-05-16 Thread Daniel Atallah
On Fri, May 16, 2008 at 1:20 PM, Mitko Haralanov <[EMAIL PROTECTED]> wrote: > On Fri, 16 May 2008 09:54:22 +0200 > G Hasse <[EMAIL PROTECTED]> wrote: > >> Let your callback return FALSE and reregister before the return > > Hi, I thought of that but I was sure that there is a better way to do > this

Re: Recalculation of timeouts with g_timeout_add

2008-05-16 Thread G Hasse
Let your callback return FALSE and reregister before the return #include #include #include #include #include gboolean callback (gpointer data) { int seconds = 0; struct tm *mytm; time_t mytime; mytime = time( NULL ); mytm = gmtime( &mytime ); printf("Called :"); printf(

Re: problem finding the position of a button in the gtk dialog ( sample code inside )

2008-05-16 Thread Federico Mena Quintero
On Wed, 2008-05-07 at 11:33 +0530, chirag juneja wrote: > approach i am using is : > i will find the distance of the button from its parent, and then its > parent's distance form its parent .. and so on, till i get toplevel > window. > then i am adding the decoration's height, border's width and d

Re: Question aboutusing message dialog to ask confirmation

2008-05-16 Thread Eduardo M KALINOWSKI
On Fri, May 16, 2008 at 3:19 PM, John M Collins <[EMAIL PROTECTED]> wrote: > I want to have a "do you really want to do this" type question and I'm > trying to use a message dialog thus: > > GtkWidget *dlg = gtk_message_dialog_new(GTK_WINDOW(previous), > GTK_DIALOG_DESTROY_WITH_PARENT, > GTK_MESS

Question aboutusing message dialog to ask confirmation

2008-05-16 Thread John M Collins
I want to have a "do you really want to do this" type question and I'm trying to use a message dialog thus: GtkWidget *dlg = gtk_message_dialog_new(GTK_WINDOW(previous), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, "Are you sure?"); g_signal_connect_swapped(dlg, "

Re: Recalculation of timeouts with g_timeout_add

2008-05-16 Thread Mitko Haralanov
On Fri, 16 May 2008 09:54:22 +0200 G Hasse <[EMAIL PROTECTED]> wrote: > Let your callback return FALSE and reregister before the return Hi, I thought of that but I was sure that there is a better way to do this without playing games with unregistering and re-registering the timeout. I am not sur

Re: Broken Input Shaping

2008-05-16 Thread natan yellin
I've experimented around with this, and I've found that it doesn't work when the input shape was set from another application using a foreign GdkWindow. I've encountered some strangeness when using it within the same application, it doesn't fail totally. Natan On Thu, May 15, 2008 at 12:39 PM, na

Re: Recalculation of timeouts with g_timeout_add

2008-05-16 Thread Pascal Bonfils
I haven't tried to pass the timeout value but what do is with a global variable. Imagine that you have the reference of the timeout, as a global variable : guint TimeOut_Ref; then you have a first call to your callback function TimeOut_Ref = g_timeout_add (20*1000, callback, (gpointer)&ti