Re: Different looking toolbars and missing shadows with GTK3

2011-05-31 Thread Staffan Gimåker
On Tue, 2011-05-31 at 15:35 +0200, Florian Max wrote: > Still interested in hearing how to get uniformly looking > toolbars. > > The toolbar should have the 'primary-toolbar' style class, e.g. do > > gtk_style_context_add_class (gtk_widget_get_style_context > (toolbar), >

Re: Different looking toolbars and missing shadows with GTK3

2011-05-31 Thread Staffan Gimåker
On Tue, 2011-05-31 at 14:57 +0200, Staffan Gimåker wrote: > 2. I get no "shadows" (as in GtkShadowType) on any of my widgets > (toolbar excepted, it has an out-shadow), no matter what I try. Is this > intentional, a Glade/GtkBuilder bug or a stupid mistake on my part? &

Different looking toolbars and missing shadows with GTK3

2011-05-31 Thread Staffan Gimåker
Hi, I just ported my application to GTK3 (gtkmm-3.0 more specifically). The process went smoothly, but a few minor questions relating to the looks of my application in GTK3 remains. I'm using the Adwaita theme (the GNOME default I believe) and all my GUIs are made in Glade and loaded through GtkBu

Re: custom widgets - advice on where to start?

2010-07-07 Thread Staffan Gimåker
On Wed, 2010-07-07 at 22:36 +0100, James Morris wrote: > On 7 July 2010 17:34, Staffan Gimåker wrote: > > Is there a particular reason that you need a custom widget? Can you not > > just use a GtkDrawingArea and use Cairo to draw things in it? > > That's the thing I&

Re: custom widgets - advice on where to start?

2010-07-07 Thread Staffan Gimåker
Is there a particular reason that you need a custom widget? Can you not just use a GtkDrawingArea and use Cairo to draw things in it? The official Cairo documentation (the tutorial is here: http://cairographics.org/tutorial/) and the Gtk documentation are probably good places to start. /Staffan