Re: Pluggable widgets II

2006-12-20 Thread Mark McLoughlin
Hi Tim, Just a couple of things I'm confused about: - How does this work for interface types? e.g. I can understand how you might want to replace GtkEntry's editable interface, but not how you'd appoint an implementation type for GTK_TYPE_EDITABLE - How does this work

Re: Pluggable widgets II

2006-12-20 Thread Tim Janik
On Wed, 20 Dec 2006, Mark McLoughlin wrote: Hi Tim, Just a couple of things I'm confused about: - How does this work for interface types? e.g. I can understand how you might want to replace GtkEntry's editable interface, but not how you'd appoint an implementation type for

Re: Pluggable widgets II

2006-12-20 Thread Mark McLoughlin
On Wed, 2006-12-20 at 10:22 +0100, Tim Janik wrote: On Wed, 20 Dec 2006, Mark McLoughlin wrote: - How does this work for application derived types? e.g. if vino derives from GtkLabel to make a label which looks like a clickable URL, then even if it is instantiated using

I think gtk+-2.10.0/examplesshould be u se --enable-examples to enable when confi gure!

2006-12-20 Thread 凉爽
Dear GTK+ Team: Now I cross-compile gtk+-2.10.0 in host am33 successful,but the directory examples is not compile in. So,I think gtk+-2.10.0/examplesshould be use --enable-examples to enable when configure! The attachement is a patch make by me with no test.but I can't change the

Re: Pluggable widgets II

2006-12-20 Thread Benjamin Otte
Tim Janik timj at imendio.com writes: - How does this work for application derived types? e.g. if vino derives from GtkLabel to make a label which looks like a clickable URL, then even if it is instantiated using g_factory_create() a gtk theme module will not be able to

Different outputs over X and over DirectFB

2006-12-20 Thread Prasanna Kumar K
/*Hi .. I have modified scribble-simple.c from gtk/examples to check the behaviour of foregrond/background color of this application over X and then over DFB. in expose_event() I have set the new foreground color, it is working fine over X but over DirectFB it doesn't has any effect... any

Re: Pluggable widgets II

2006-12-20 Thread Mark McLoughlin
On Wed, 2006-12-20 at 10:46 +0100, Tim Janik wrote: On Wed, 20 Dec 2006, Mark McLoughlin wrote: Whichever it is, I'm wondering about things like VinoUrl - i.e. an application derived widget. Should it be expected that a plugged-in re-implementation of GtkLabel would also be used by

Re: Pluggable widgets II

2006-12-20 Thread Tim Janik
On Wed, 20 Dec 2006, Mark McLoughlin wrote: Suppose gnome-panel implements PanelMenu[1] as a sub-class of GtkMenu in order to display an ugly logo on the left hand side of the menu. If a platform vendor goes to the trouble of introducing a customised GtkMenu implementation, then

Re: Pluggable widgets II

2006-12-20 Thread Mark McLoughlin
On Wed, 2006-12-20 at 15:04 +0100, Tim Janik wrote: On Wed, 20 Dec 2006, Mark McLoughlin wrote: With this API the vendor would need to have a gtk module or library especially for the gnome-panel in order to appoint a new implementation of PanelMenu. if he *only* means to change the

How to create a GdkImage from a file.

2006-12-20 Thread Prasanna Kumar K
I want to genetate a GdkImage from a file .. (so that this GdkImage can be passed to gdk_draw_image()) I used following calls.. GtkImage *gtk_image = NULL; GdkImage *gdk_image = NULL; GdkBitmap *gdk_bitmap = NULL; gtk_image_set_from_file (gtk_image, 1.jpg); gtk_image_set_from_image (gtk_image,

Re: Pluggable widgets II

2006-12-20 Thread Tim Janik
On Wed, 20 Dec 2006, Mark McLoughlin wrote: On Wed, 2006-12-20 at 15:04 +0100, Tim Janik wrote: On Wed, 20 Dec 2006, Mark McLoughlin wrote: With this API the vendor would need to have a gtk module or library especially for the gnome-panel in order to appoint a new implementation of

Re: How to create a GdkImage from a file.

2006-12-20 Thread muppet
Please direct questions like this to gtk-app-devel- [EMAIL PROTECTED] ... gtk-devel-list is for discussion of the development *of* gtk+, not *with* it. On Dec 20, 2006, at 8:35 AM, Prasanna Kumar K wrote: I want to genetate a GdkImage from a file .. (so that this GdkImage can be passed

Re: Pluggable widgets II

2006-12-20 Thread Tristan Van Berkom
On Wed, 2006-12-20 at 15:34 +0100, Tim Janik wrote: My point is that Foo would prefer if PanelMenu could automatically sub-class FooGtkMenu rather than GtkMenu. with Gtk+ and its object system, that is simply not technically possible. custom_menu_item_type =

Re: Pluggable widgets II

2006-12-20 Thread Tim Janik
On Wed, 20 Dec 2006, Tristan Van Berkom wrote: On Wed, 2006-12-20 at 15:34 +0100, Tim Janik wrote: My point is that Foo would prefer if PanelMenu could automatically sub-class FooGtkMenu rather than GtkMenu. with Gtk+ and its object system, that is simply not technically possible.

Re: Different outputs over X and over DirectFB

2006-12-20 Thread Attilio Fiandrotti
Prasanna Kumar K wrote: /*Hi .. I have modified scribble-simple.c from gtk/examples to check the behaviour of foregrond/background color of this application over X and then over DFB. in expose_event() I have set the new foreground color, it is working fine over X but over DirectFB it

Re: Pluggable widgets II

2006-12-20 Thread Gustavo J. A. M. Carneiro
On Ter, 2006-12-19 at 21:51 +0200, Paul Pogonyshev wrote: Tim Janik wrote: here's a refined proposal for pluggable widgets [...] Looks fine to me, except that I support the requested addition of va_list version of g_factory_create(). Otherwise everything seems good. I didn't propose a

Re: Pluggable widgets II

2006-12-20 Thread Paul Pogonyshev
Gustavo J. A. M. Carneiro wrote: On Ter, 2006-12-19 at 21:51 +0200, Paul Pogonyshev wrote: Tim Janik wrote: here's a refined proposal for pluggable widgets [...] Looks fine to me, except that I support the requested addition of va_list version of g_factory_create(). Otherwise

Re: Pluggable widgets II

2006-12-20 Thread Paul Pogonyshev
Benjamin Otte wrote: Tim Janik timj at imendio.com writes: - How does this work for application derived types? e.g. if vino derives from GtkLabel to make a label which looks like a clickable URL, then even if it is instantiated using g_factory_create() a gtk theme

Pango-1.15.2 released [unstable]

2006-12-20 Thread Behdad Esfahbod
Pango-1.15.2 is now available for download at: http://download.gnome.org/sources/pango/1.15/ or ftp://ftp.gtk.org/pub/pango/1.15 3a57ff08498a210892fe665bf4812011 pango-1.15.2.tar.bz2 063c3ea8eb8931290546a197bd444e2a pango-1.15.2.tar.gz This is a development release leading up to

Re: gtk_entry_set_text

2006-12-20 Thread Norbert Bauer
Sorry, you're right. The problem was another one. The mistake was that the change-event-handler were called reciprocative. One event-handler was called, so it changed another text-entry. The event-handler of this text-entry then changed the original text-entry and so on. That's why the

Re: Weird problem with GTK+ 2.10.6

2006-12-20 Thread Chris Vine
On Tuesday 19 December 2006 21:21, Tomasz Jankowski wrote: Update: I was wrong - the same situation occurs on all platforms You cannot use gdk_threads_enter() and gdk_threads_leave() on windows. It should work on Unix-like systems with the X11 backend, and if it doesn't it is likely to

invisible text when viewing with Microsoft Remote Desktop

2006-12-20 Thread [EMAIL PROTECTED]
Hello, I'm using gtkmm with gtk-2.0 on Windows XP. I have an application with a GtkTextView and it works fine on my computer, There is a problem when I view the application on a remote machine using the Microsoft Remote Desktop terminal server. The remote machine also runs Windows XP. The

invisible text when viewing with Microsoft Remote Desktop

2006-12-20 Thread oded
Hello, I'm using gtkmm with gtk-2.0 on Windows XP. I have an application with a GtkTextView and it works fine on my computer, There is a problem when I view the application on a remote machine using the Microsoft Remote Desktop terminal server. The remote machine also runs Windows XP. The

GLib 2.12.6 released

2006-12-20 Thread Matthias Clasen
GLib 2.12.6 is now available for download at: ftp://ftp.gtk.org/pub/glib/2.12/ http://download.gnome.org/sources/glib/2.12/ glib-2.12.6.tar.bz2 md5sum: b13d971e7de0b844fc4ced7367702003 glib-2.12.6.tar.gzmd5sum: ea79ceed85d993afb67eb2b8e0cd9457 This is a quick followup release to fix a

Re: Switching theme

2006-12-20 Thread control H
hi, another example of runtime changing the theme can be found in The Widget Factory, see http://www.stellingwerff.com/?page_id=10 The source is straight forward. On 12/19/06, Madhusudan E [EMAIL PROTECTED] wrote: Hi... Probably u can even use existing applications on net to change themes

Re: A question about deprecated widget

2006-12-20 Thread control H
Hi, A year ago I posted my comments about the GtkComboBox to this list, this link shows the thread: http://marc.theaimsgroup.com/?t=11324387691r=1w=2 Still, the GtkComboBox is the biggest problem in my application. I'm sorry to say, but the combo control is both ugly and clumsy. But as you

Re: moving a window off screen

2006-12-20 Thread Niall Murphy
I want to have a window off screen and then slide it on as a notification. (hide will not do, nor will growing the window) In pygtk using the gtk.Window.move() method, i can move windows off screen with no problems. why only with gtk_window_move() does it not go off screen? thanks, niall On

Re: GtkComboBox question

2006-12-20 Thread Tony Freeman
On Tue, 2006-12-19 at 16:21 -0800, Russell Markus wrote: I am trying to work on an application which has a combo box. I want to restrict the user to values that are included in the drop down list only. My thought was to prevent the user from editing the value in the entry box, but I can't

Pango-1.15.2 released [unstable]

2006-12-20 Thread Behdad Esfahbod
Pango-1.15.2 is now available for download at: http://download.gnome.org/sources/pango/1.15/ or ftp://ftp.gtk.org/pub/pango/1.15 3a57ff08498a210892fe665bf4812011 pango-1.15.2.tar.bz2 063c3ea8eb8931290546a197bd444e2a pango-1.15.2.tar.gz This is a development release leading up to

RE :Problem with gtk (done )

2006-12-20 Thread Naveen Kumar
Thank u all, now i found the solution. i am not sure is it that right way to do that but thing is working fine.. what i have done is i have placed these two statements in the while loop. if(gtk_events_pending()) gtk_main_iteration(); Naveen