Re: CellRendererToggle with custom pixbuf?

2008-08-19 Thread Gabriele Greco
On Sun, Aug 17, 2008 at 10:52 PM, Jeffrey Barish [EMAIL PROTECTED]wrote: I am using a CellRendererToggle. I would like to be able to specify pixbufs to use to draw the toggle in its two states. Basically, I want to toggle between two images in a TreeView. When I click on one image, it

Varying on the fly the size of a GdkPixbuf in a GtkListstore

2008-08-19 Thread Giuseppe Torelli
Hi, I have a problem in varying on the fly the size of the GdkPixbuf in a GtkListStore. I tried to set the size with: g_object_set(G_OBJECT(archive[idx]-renderer), stock-size,40, NULL); archive[idx]-renderer is created this way: column = gtk_tree_view_column_new(); archive-renderer =

Create a GtkDrawable from an X Drawable?

2008-08-19 Thread Georgios Petasis
Hi all, Can I create a GtkDrawable from an X Drawable? I want to draw on a window not created by Gtk, and for the time being I follow this: I create a pixmap I draw on the pixmap I get a pixbuffer from the pixmap I copy the pixbuffer on the drawable using gdk_pixbuf_xlib_render_to_drawable But

Re: Create a GtkDrawable from an X Drawable?

2008-08-19 Thread jcupitt
2008/8/19 Georgios Petasis [EMAIL PROTECTED]: Can I create a GtkDrawable from an X Drawable? Sure, see: http://library.gnome.org/devel/gdk/stable/gdk-X-Window-System-Interaction.html#gdk-window-foreign-new Though of course you lose portability if you use the back-end-specific API. John

Re: Create a GtkDrawable from an X Drawable?

2008-08-19 Thread Georgios Petasis
O/H [EMAIL PROTECTED] ??: 2008/8/19 Georgios Petasis [EMAIL PROTECTED]: Can I create a GtkDrawable from an X Drawable? Sure, see: http://library.gnome.org/devel/gdk/stable/gdk-X-Window-System-Interaction.html#gdk-window-foreign-new Though of course you lose portability if you

Re: Create a GtkDrawable from an X Drawable?

2008-08-19 Thread jcupitt
2008/8/19 Georgios Petasis [EMAIL PROTECTED]: So, an X drawable will be mapped into a GdkWindow. Then, I need to free it? Yes, junk the GdkWindow in the usual way. It won't close the X drawable though, since it didn't create it. You'll need to close that some other way. John

Why diffrerent weight between 'number' and 'character'?

2008-08-19 Thread SungSuHyun
Hi all, Follow code is sample code. Label1 and Label2 has same font, same style, but they has different bold( weight? ). Why different? Label1 is mixed 'character' and 'number', Label2 has only 'number'. I want to same weight '123' and 'a123'. Thanks in advance for any help. Sung SuHyun.

Re: Sort indicator disappeared

2008-08-19 Thread Chris Vine
On Wed, 13 Aug 2008 16:48:36 -0600 Jeffrey Barish [EMAIL PROTECTED] wrote: When did the sort indicator disappear? The sort-indicator property is True, but I don't see anything. I used to. Was it lost in some upgrade? I am on Ubuntu 8.04. My libgtk is 2.12.9-3ubuntu4. There have been

Re: Sort indicator disappeared

2008-08-19 Thread Jeffrey Barish
Chris Vine wrote: On Wed, 13 Aug 2008 16:48:36 -0600 Jeffrey Barish [EMAIL PROTECTED] wrote: When did the sort indicator disappear? The sort-indicator property is True, but I don't see anything. I used to. Was it lost in some upgrade? I am on Ubuntu 8.04. My libgtk is 2.12.9-3ubuntu4.

From GtkItemFactory to GtkUIManager GtkActionGroup

2008-08-19 Thread Nitin Jain
Hi Everyone, I am a newbie to GTK, and am currently porting an old app to GTK+-2.0 that had a heavy usage of GtkItemFactory in it. I am in midst of converting it to make use of GtkUIManager GtkActionGroup, as per this tutorial: http://live.gnome.org/GnomeLove/UIManagerTutorial Now, the struct

Re: can anyone explain what is this sql query?

2008-08-19 Thread Dave Foster
This seems to explain it: http://library.gnome.org/devel/libgda-4.0/unstable/GdaDataModelQuery.html#gda-data-model-query-set-modification-query dave On Mon, Aug 18, 2008 at 11:46 PM, paragasu [EMAIL PROTECTED] wrote: [snip] #define CONTENTS_DEL_SQL DELETE FROM order_contents WHERE order_id =

Question regarding the dependency of GDK on other libraries

2008-08-19 Thread Ruchi Lohani
Hi, My application uses GTK and GDK (Layer isolating GTK from the details of the windowing system). I am using Ubuntu 8.04. When I run pkg-config --libs gdk-x11-2.0 on it I get the following result : -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0

Re: can anyone explain what is this sql query?

2008-08-19 Thread paragasu
thanks dave, the link help me very much.. On 8/19/08, Dave Foster [EMAIL PROTECTED] wrote: This seems to explain it: http://library.gnome.org/devel/libgda-4.0/unstable/GdaDataModelQuery.html#gda-data-model-query-set-modification-query dave On Mon, Aug 18, 2008 at 11:46 PM, paragasu [EMAIL

Where can find a full list and description of the signal name

2008-08-19 Thread Lazy Fox
Just like expose-event and expose-event, I can't find all of them in the 'GTK+ Reference Manual' and source code. And other string type enumerations such as color: red, orange. I can't find them neither. Does anybody know where can find the full list and description of the string type

windows dev all in one bundle

2008-08-19 Thread Thomas Stover
Good job guys! I was just updating my 'doz build environment and found that I no longer have to download 90 separate files. ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Re: gtk.HTML class nonexistent [was: Re: [pygtk] Computing optimum size of gtkhtml2.View]

2008-08-19 Thread Luke Kenneth Casson Leighton
On Fri, Aug 15, 2008 at 9:53 PM, Sven Neumann [EMAIL PROTECTED] wrote: Hi, On Fri, 2008-08-15 at 19:20 +, Luke Kenneth Casson Leighton wrote: qt4 has support for Rich Text - simple things like b hello /b can be detected and displayed, and the size of the box is enforced as a minimum

Re: gtk.HTML class nonexistent [was: Re: [pygtk] Computing optimum size of gtkhtml2.View]

2008-08-19 Thread Luke Kenneth Casson Leighton
What's wrong with using gtk.Label(bhello/b, use_markup=True) ? haven't got a clue - inexperience led me to believe that didn't exist? :) ok - couldn't wait until tomorrow. i found out why it can't be used: pango markup doesn't support the full syntax of HTML that applications would expect

Translucent Scrollbars

2008-08-19 Thread Mathias Hasselmann
When looking at some Android screen shots[1] I've realized that their scrollbars are translucent. That's a really nice idea IMHO. I wonder if we can implement this feature in GTK+. Ciao, Mathias [1] http://www.spiegel.de/fotostrecke/fotostrecke-34358-7.html#backToArticle=572913 -- Mathias

Re: Translucent Scrollbars

2008-08-19 Thread Christian Dywan
Am Tue, 19 Aug 2008 15:17:10 +0200 schrieb Mathias Hasselmann [EMAIL PROTECTED]: When looking at some Android screen shots[1] I've realized that their scrollbars are translucent. That's a really nice idea IMHO. I wonder if we can implement this feature in GTK+. Ciao, Mathias [1]

Re: windows dev all in one bundle

2008-08-19 Thread Alberto Ruiz
2008/8/14 Thomas Stover [EMAIL PROTECTED]: Good job guys! I was just updating my 'doz build environment and found that I no longer have to download 90 separate files. Thanks Tor, he did the job! -- Un saludo, Alberto Ruiz ___ gtk-devel-list mailing

Re: Translucent Scrollbars

2008-08-19 Thread Kalle Vahlman
2008/8/19 Christian Dywan [EMAIL PROTECTED]: Am Tue, 19 Aug 2008 15:17:10 +0200 schrieb Mathias Hasselmann [EMAIL PROTECTED]: When looking at some Android screen shots[1] I've realized that their scrollbars are translucent. That's a really nice idea IMHO. I wonder if we can implement this

Re: Translucent Scrollbars

2008-08-19 Thread Lieven van der Heide
Well, isn't the whole point of scrollbars to be able to scroll to stuff that's otherwise hidden (behind something else)? I don't see why it would be a problem to show a piece of the content that would otherwise be hidden at all. As long as scrolling to the sides completely, makes the content fully

Re: Translucent Scrollbars

2008-08-19 Thread Kalle Vahlman
2008/8/19 Lieven van der Heide [EMAIL PROTECTED]: Well, isn't the whole point of scrollbars to be able to scroll to stuff that's otherwise hidden (behind something else)? I don't see why it would be a problem to show a piece of the content that would otherwise be hidden at all. As long as

adding elastic tabstops to a widget

2008-08-19 Thread Nick Gravgaard
Hi all, I'm trying to make a proper GTK text editing widget that supports elastic tabstops [1] with a view to being able to use it in the near future in a PyGTK project (a programmer's text editor), and perhaps one day getting it added to GtkTextView or GtkSourceView. I have something pretty

Re: On font dialog default sample string selection

2008-08-19 Thread Wouter Bolsterlee
2008-08-18 klockan 06:14 skrev Behdad Esfahbod: Note that Gtk+ can also use a special translatable string to let translators decide what string should be used for their language. Let's call this current locale's preferred sample string. There's a bunch of sample strings (mostly pangrams) in