GtkFixed disables expand propertiy of GtkVBox ?

2007-11-15 Thread sphurti durgade
Hi i am packing /putting notebook and one search box into fixed (GtkFixed). and this fixed is packed into vbox with expand and fill parameter as TRUE . so that when i maximized window only notebook get expand but when i maximized window the notebook is not get expanded i am not

Re: How to get PangoFontFamily?

2007-11-15 Thread Enrico Tröger
On Tue, 13 Nov 2007 18:31:21 -0500, Behdad Esfahbod [EMAIL PROTECTED] wrote: On Tue, 2007-11-13 at 18:51 +0100, Enrico Tröger wrote: Hi, I have a PangoFontDescription, created from a font string. Now I would like to use pango_font_family_is_monospace() to know whether it is a

Re: How to scroll my gtk application window programmically

2007-11-15 Thread Alan M. Evans
On Sat, 2007-11-10 at 20:48 -0600, ying lcs wrote: I would like to know how can I scroll my gtk application window programmically? I have tried this, but the scroll bar does not make and the content of the window did not get refresh? GtkWidget* topLevelWindow; GdkWindow* win =

Changing a style property?

2007-11-15 Thread Andrew Smith
Hi Can someone tell me how to change the 'style property' (as it's called in the reference manual) of a gtkwidget? Specifically right now I'm looking to change the 'shadow-type' property of gtkmenubar, gtktoolbar, and gtkcombobox. They look like crap on vista. I tried a g_object_set() but

How to change font size

2007-11-15 Thread windflying zhou
Hello, I'm developing an application with gtk+, and I'm trying to change the fonts that is used in the application, to use diferent sizes of letters. I didn't find any class or method that changes the properties of the font used by the application. So I don't know if it is possible to change the

Re: How to change font size

2007-11-15 Thread Benjamin M. Schwartz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Here's a snippet of python using PyGTK: self.value = gtk.Label() valuefont = pango.FontDescription() valuefont.set_family(monospace) valuefont.set_absolute_size(300*pango.SCALE)

clist query

2007-11-15 Thread Udayan Singh
Hi All, Have query on clist : 1. How to count the number of rows in a clist - Is there any CPI for the same ? 2. Any API to retrive the position of first selected item in a clist 3. How to retrive number of selected items in a list ? - Any API ? tia, Udayan =-=-= Notice:

Re: GInterfaces and API Stability

2007-11-15 Thread Paolo Molaro
On 11/14/07 Sven Herzberg wrote: I think it's not about the compiler doesn't barf. It was a design decision to be able to always extend interfaces. The only thing GTK+ I guess this is a documentation issue, then, as this design decision is not mentioned at all in the GObject documentation at

Signals with gchar** arguments

2007-11-15 Thread Mathias Hasselmann
It happens that you want a signal having pointers to strings (gchar**) as argument. Those arguments are used to retrieve strings in the signal handler, and return them to the signal emitter. A prominent real-world example is the authenticate signal of SoupSession[1]: static void

Re: Signals with gchar** arguments

2007-11-15 Thread James Doc Livingston
On Thu, 2007-11-15 at 12:52 +0100, Mathias Hasselmann wrote: Currently glib doesn't provide a fundamental type for dealing with that kind of arguments, so usually G_TYPE_POINTER is used as argument for the g_signal_new call registering such signals. Technically this works, but it leads to bad

Re: Signals with gchar** arguments

2007-11-15 Thread Jürg Billeter
On Thu, 2007-11-15 at 12:52 +0100, Mathias Hasselmann wrote: So my question is: How to solve this issue? - Introduce a new fundamental type G_TYPE_STRING_PTR duplicating the behaviour of G_TYPE_POINTER under a new name. - Patch gtk-doc to retrieve the real argument by inspecting

Re: Signals with gchar** arguments

2007-11-15 Thread Murray Cumming
On Thu, 2007-11-15 at 23:28 +1100, James Doc Livingston wrote: On Thu, 2007-11-15 at 12:52 +0100, Mathias Hasselmann wrote: Currently glib doesn't provide a fundamental type for dealing with that kind of arguments, so usually G_TYPE_POINTER is used as argument for the g_signal_new call

Re: Signals with gchar** arguments

2007-11-15 Thread Emmanuele Bassi
On Thu, 2007-11-15 at 12:52 +0100, Mathias Hasselmann wrote: static void authenticate (SoupSession *session, /* other arguments... */ gchar **username, gchar **password, gpointer user_data)

Re: GInterfaces and API Stability

2007-11-15 Thread Alexander Larsson
On Thu, 2007-11-15 at 11:28 +0100, Paolo Molaro wrote: On 11/14/07 Sven Herzberg wrote: I think it's not about the compiler doesn't barf. It was a design decision to be able to always extend interfaces. The only thing GTK+ I guess this is a documentation issue, then, as this design

Re: Signals with gchar** arguments

2007-11-15 Thread Alexander Larsson
On Thu, 2007-11-15 at 13:06 +, Emmanuele Bassi wrote: On Thu, 2007-11-15 at 12:52 +0100, Mathias Hasselmann wrote: static void authenticate (SoupSession *session, /* other arguments... */ gchar **username,

Re: Signals with gchar** arguments

2007-11-15 Thread Mathias Hasselmann
Am Donnerstag, den 15.11.2007, 14:21 +0100 schrieb Alexander Larsson: On Thu, 2007-11-15 at 13:06 +, Emmanuele Bassi wrote: On Thu, 2007-11-15 at 12:52 +0100, Mathias Hasselmann wrote: static void authenticate (SoupSession *session, /* other

Re: GInterfaces and API Stability

2007-11-15 Thread Murray Cumming
On Thu, 2007-11-15 at 01:16 +0100, Mathias Hasselmann wrote: Wouldn't it possible to implement the GInterface as C++ class and add an operator like this to the GObject wrapper class: public: GLib::RefPtrGFooInterface operator () { return GLib::wrap_interface (gobj ());

Re: CairoIO - Cairo compatible successor to GdkPixbuf

2007-11-15 Thread Mikkel Kamstrup Erlandsen
On 13/11/2007, BJörn Lindqvist [EMAIL PROTECTED] wrote: Hello all! Some background info about this project is found here: * http://www.mail-archive.com/gtk-devel-list@gnome.org/msg06472.html * http://live.gnome.org/GtkCairoIntegration * http://bugzilla.gnome.org/show_bug.cgi?id=395578#c6