How to detect gtk widget partial visible? visibility-notify-event?

2007-09-11 Thread MD Tsai
Hi list, Is it possible for a gtk widget to detect it is partial visible? For example, I can drag one window on another window. The covered window can be notified that it is partial visible? I've registered the visibility-notify-event but never receive callback, I would like to figure out in my

How can I print GtkTextBuffer using GtkPrint ?

2007-09-11 Thread Miroslav Rajcic
I want to support printing in my application using GtkPrint. Is there a simple way to print the contents of the GtkTextBuffer (containing multiple fonts, colors and other formatting) using the GtkPrint ? Do I have to write the code that draws the text manually ? Is there any complex sample code

Re: How to detect gtk widget partial visible? visibility-notify-event?

2007-09-11 Thread Yeti
On Tue, Sep 11, 2007 at 05:54:54PM +0800, MD Tsai wrote: Is it possible for a gtk widget to detect it is partial visible? For example, I can drag one window on another window. The covered window can be notified that it is partial visible? I've registered the visibility-notify-event but never

Re: How to detect gtk widget partial visible? visibility-notify-event?

2007-09-11 Thread MD Tsai
Hi Yeti, Thanks for your reply. It seems every widget could use this function to enable the event bits, is this right? How could I find the default event setting of every widget, which is enabled and which is disabled? Best regard, Eric Tsai 2007/9/11, David Nečas (Yeti) [EMAIL PROTECTED]:

GtkEntryCompletion popup size

2007-09-11 Thread Dave Howorth
I'm using a GtkEntryCompletion in popup-mode and controlling the list of matches myself. I see that it displays up to 15 matches and if there are more it adds a scroll bar to the popup window. For my purposes it doesn't seem worthwhile to have a scroll bar. Is there any way to control whether or

Lower case to upper case german ess-zet

2007-09-11 Thread Luis Ramirez
Hi I have a problem converting german ess-zet (ß) from lower to uppercase when using g_unichar_toupper, but it works fine using g_utf8_strup. Using g_unichar_toupper I get a 0 as result. Here it is a sample. The output is: g_unichar_toupper. Lower:'ß', Upper:'' g_utf8_strup. Lower:'ß',

Re: Lower case to upper case german ess-zet

2007-09-11 Thread Yeti
On Tue, Sep 11, 2007 at 06:12:53PM +, Luis Ramirez wrote: I have a problem converting german ess-zet (ß) from lower to uppercase when using g_unichar_toupper, but it works fine using g_utf8_strup. Using g_unichar_toupper I get a 0 as result. You should not, both according to my reading of

Re: gtk pango draw rotated text

2007-09-11 Thread Luis Rodrigues
Thanks for the support. For future reference in google or whatever: Pascal Rotate Text GTK2 renderer := gdk_pango_renderer_get_default( gtk_widget_get_screen(DevCtx.DCWidget) ); gdk_pango_renderer_set_drawable ( renderer, DevCtx.drawable); gdk_pango_renderer_set_gc ( renderer,

Re: How to convert a jpg image to a GtkImage ?

2007-09-11 Thread Tom Trebisky
Following this thread, I decided it would be wise to avoid this kind of leak since my application uses hundreds of loaders to load hundreds of pixbufs, so I made my code look like: pixbuf_p = gdk_pixbuf_loader_get_pixbuf(my_loader); g_object_unref ( my_loader);

Cell Renderer Combo Callback

2007-09-11 Thread dhkuhl
undefined ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: How to convert a jpg image to a GtkImage ?

2007-09-11 Thread Jonathan Winterflood
Hi, You could clone the pixbuf, or create a new one the same size and blit the content of the soon-to-be recycled one into the new one before unref'ing the loader Jonathan On 9/11/07, Tom Trebisky [EMAIL PROTECTED] wrote: Following this thread, I decided it would be wise to avoid this kind

Cell Renderer Combo Callback

2007-09-11 Thread dhk
I have a combo render in a treeview and I can't get the callback to set the value once it's selected. I want the combo to default to Stock but be able to be changed to any of the other values in the itemtype array. Below is the way the item type combo is being created and added to the tree view

Re: How to convert a jpg image to a GtkImage ?

2007-09-11 Thread Yeti
On Tue, Sep 11, 2007 at 10:53:02PM +0200, Jonathan Winterflood wrote: As for adding a click to the reference count, if it works, would probably be the best way to go Of course it works and it is recommended in gdk_pixbuf_loader_get_pixbuf() documentation -- if anyone bothered to read it...

Newbie Question: Changing a Label

2007-09-11 Thread Brian Hartman
Hi Everyone. I'm trying to write a simple program that changes a label when a button is clicked. The program compiles and runs, but there's no label change. Here's what I have in my callbacks.c: #ifdef HAVE_CONFIG_H # include config.h #endif #include gtk/gtk.h #include callbacks.h #include