Plotting graphs

2007-05-24 Thread Bluezapper
Hi, Can someone refer me to an example which plots a simple 2D graph using gtkextra API. thanks, bluezapper. - Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out. ___

how to constrain the cursor in just one screen.

2007-05-24 Thread Liu Jie
Hi, I'm working a GTK based applicaion, which uses double screens. Without any constraint, the user can move the cursor freely from one scrren to another. Now, I want to constrain the cursor in just one screen. How can I do it? Is there a gtk function which can help me solve my problem? Andy

Re: Plotting graphs

2007-05-24 Thread Vivien Malerba
On 5/24/07, Bluezapper [EMAIL PROTECTED] wrote: Hi, Can someone refer me to an example which plots a simple 2D graph using gtkextra API. thanks, bluezapper. A bit off topic, but there is also the GtkDatabox library out there (I have not tested it though!) Regards, Vivien

GTK+ 2.11.0 released

2007-05-24 Thread Matthias Clasen
GTK+ 2.11.0 is now available for download at: ftp://ftp.gtk.org/pub/gtk/2.11/ http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.11/ gtk+-2.11.0.tar.bz2 md5sum: e6a5d829bb729b2d7c35d2988974119b gtk+-2.21.0.tar.gzmd5sum: c2db34848bb99da1b742b92c8393c5bb This is a development release leading

Capture GdkWindow event

2007-05-24 Thread 小多
Hi, I want to capture a GdkWindow's destory event. And I have tried 'g_signal_connect' function, but failed. Can someone refer me to an example? thanks, -- Sorry for my poor English :) - http://www.aragonconsultinggroup.com - http://www.aiyo.cn ___

Re: Capture GdkWindow event

2007-05-24 Thread Marcelo Armengot
小多 escribió: Hi, I want to capture a GdkWindow's destory event. And I have tried 'g_signal_connect' function, but failed. Can someone refer me to an example? thanks, What's the matther following this example? Is the doc exampl, i used it last time... g_signal_connect(G_OBJECT

Re: menuitem activate

2007-05-24 Thread DanH
On Wed, 23 May 2007 16:49:50 +0200, David Neèas (Yeti) wrote On Wed, May 23, 2007 at 10:36:13AM -0400, danielg RHCE wrote: Why don't you just call the callback function which is connected to the signal? Or use g_signal_emit() or g_signal_emit_by_name() to emulate a click on the menu

Re: menuitem activate

2007-05-24 Thread DanH
If you know what action you want to invoke, you can also call the callback function of the item directly (or some other function that performs the requested action), can't you? I guess it'll be shorter to start from the beginning. I'm messing around with GimageView 0.2.27. I want it to

Re: menuitem activate

2007-05-24 Thread DanH
You have to find you what dv is, where is is constructed and how to pass it where you set up the notify handler. DirView * dirview_create (const gchar *root_dir, GtkWidget *parent_win, GimvThumbWin *tw) { (...) dnotify is being slowly overtaken by inotify but

Re: Capture GdkWindow event

2007-05-24 Thread 小多
I have wrote a firefox extension. My code is: NS_IMETHODIMP nsTray::Connect_window_event(nsIBaseWindow *aBaseWindow, nsITrayCallback *aCallback) { nsresult rv; NS_ENSURE_ARG_POINTER(aBaseWindow); nativeWindow aNativeWindow; rv = aBaseWindow-GetParentNativeWindow(aNativeWindow);

Re: Capture GdkWindow event

2007-05-24 Thread Marcelo Armengot
0x8444920 is the address of the instance G_OBJECT(gdk_window_get_toplevel(NS_REINTERPRET_CAST(GdkWindow*, aNativeWindow))) He is telling you that is a wrong reference and he cant redirect it. I think you are addressing wrongly your window, try to look for the window without toplevel() primitive

Re: Capture GdkWindow event

2007-05-24 Thread 小多
Without toplevel(): GLib-GObject-WARNING **: gsignal.c:1669: signal `destroy' is invalid for instance `0x8444a28' But gdk_window_hide(gdk_window_get_toplevel(NS_REINTERPRET_CAST(GdkWindow*, aNativeWindow))); can hide the window. It's wried... On 5/24/07, Marcelo Armengot [EMAIL PROTECTED] wrote:

Re: Capture GdkWindow event

2007-05-24 Thread Marcelo Armengot
It seems you are looking for the parent of a window. When you created that window you knew its parent. Save the parent and call for his destruction. Another way is to revise this way of addressing, but i cant help you... G_OBJECT(gdk_window_get_toplevel(NS_REINTERPRET_CAST(GdkWindow*,

Re: Capture GdkWindow event

2007-05-24 Thread Emmanuele Bassi
On Thu, 2007-05-24 at 23:07 +0800, 小多 wrote: Without toplevel(): GLib-GObject-WARNING **: gsignal.c:1669: signal `destroy' is invalid for instance `0x8444a28' GObject is trying to tell you that GdkWindow instances do not have a destroy signal; the destroy signal is available for GtkObjects -

Re: Capture GdkWindow event

2007-05-24 Thread 小多
Good idea! But I don't know how to recast the nativeWindow as a GtkWindow object. When I tried: g_signal_connect(G_OBJECT(NS_REINTERPRET_CAST(GtkWindow*, aNativeWindow)), destroy, G_CALLBACK(nsTray::window_close_event), this); It shows that: GLib-GObject-WARNING **: gsignal.c:1669:

Re: Capture GdkWindow event

2007-05-24 Thread Emmanuele Bassi
On Thu, 2007-05-24 at 23:25 +0800, 小多 wrote: Good idea! But I don't know how to recast the nativeWindow as a GtkWindow object. When I tried: g_signal_connect(G_OBJECT(NS_REINTERPRET_CAST(GtkWindow*, aNativeWindow)), destroy, G_CALLBACK(nsTray::window_close_event), this); It

Re: Capture GdkWindow event

2007-05-24 Thread 小多
OK, but how could I capture a GdkWindow's event? On 5/24/07, Emmanuele Bassi [EMAIL PROTECTED] wrote: On Thu, 2007-05-24 at 23:25 +0800, 小多 wrote: Good idea! But I don't know how to recast the nativeWindow as a GtkWindow object. When I tried:

Re: Capture GdkWindow event

2007-05-24 Thread Emmanuele Bassi
could you please reply below? and could you please reply to the list? I'm subscribe, so there's no need to Cc: me. On Thu, 2007-05-24 at 23:38 +0800, 小多 wrote: OK, but how could I capture a GdkWindow's event? you don't. you need to get a GtkWindow to connect to the events. I have no idea of

Re: Capture GdkWindow event

2007-05-24 Thread 小多
On 5/24/07, Emmanuele Bassi [EMAIL PROTECTED] wrote: could you please reply below? and could you please reply to the list? I'm subscribe, so there's no need to Cc: me. On Thu, 2007-05-24 at 23:38 +0800, 小多 wrote: OK, but how could I capture a GdkWindow's event? you don't. you need to get

Re: Capture GdkWindow event

2007-05-24 Thread 小多
I will search some doc for revising this way of addressing. Thanks again. On 5/24/07, Marcelo Armengot [EMAIL PROTECTED] wrote: It seems you are looking for the parent of a window. When you created that window you knew its parent. Save the parent and call for his destruction. Another way is

Re: Plotting graphs

2007-05-24 Thread Nickolai Dobrynin
Greetings, GtkExtra comes with a decent number of sample programs demonstrating its capabilities. Please refer to them. Personally, I think, GtkExtra is a great choice for plotting. It has an absolute minimum number of dependencies, which makes it easy to maintain and upgrade, and is very

Re: Plotting graphs

2007-05-24 Thread James Scott Jr
On Thu, 2007-05-24 at 06:27 -0700, Bluezapper wrote: Hi, Can someone refer me to an example which plots a simple 2D graph using gtkextra API. thanks, bluezapper. I have used successfully both GtkExtra and GtkDataBox libraries. However, for the app I was writing I found them too