Re: Menu groups vs. use of separators

2007-06-14 Thread Sven Neumann
Hi, On Thu, 2007-06-14 at 03:26 +0100, Alex Jones wrote: I've been looking at how Rhythmbox allows plugins to manipulate menus (via UI manager magic), and it dawned on me that there is no way to separate these out visually, other than to attempt to guess whether there should be a separator

Re: GtkBuilder Public API - Last call

2007-06-14 Thread Kalle Vahlman
2007/6/13, Yevgen Muntyan [EMAIL PROTECTED]: Kalle Vahlman wrote: 2007/6/13, Matthias Clasen [EMAIL PROTECTED]: GtkBuilder is just setting the name that was specified in the xml, so it is not violating the principle that the widget name belongs to the app/user, since the xml is part of

Re: GtkBuilder Public API - Last call

2007-06-14 Thread Yevgen Muntyan
Kalle Vahlman wrote: 2007/6/13, Yevgen Muntyan [EMAIL PROTECTED]: Kalle Vahlman wrote: 2007/6/13, Matthias Clasen [EMAIL PROTECTED]: GtkBuilder is just setting the name that was specified in the xml, so it is not violating the principle that the widget name belongs to the app/user, since

Re: GtkBuilder Public API - Last call

2007-06-14 Thread Kalle Vahlman
2007/6/14, Yevgen Muntyan [EMAIL PROTECTED]: Kalle Vahlman wrote: 2007/6/13, Yevgen Muntyan [EMAIL PROTECTED]: Kalle Vahlman wrote: 2007/6/13, Matthias Clasen [EMAIL PROTECTED]: GtkBuilder is just setting the name that was specified in the xml, so it is not violating the principle

Re: GtkBuilder Public API - Last call

2007-06-14 Thread Yevgen Muntyan
Kalle Vahlman wrote: 2007/6/14, Yevgen Muntyan [EMAIL PROTECTED]: Kalle Vahlman wrote: 2007/6/13, Yevgen Muntyan [EMAIL PROTECTED]: Kalle Vahlman wrote: 2007/6/13, Matthias Clasen [EMAIL PROTECTED]: GtkBuilder is just setting the name that was specified in the xml, so it is not

Re: GtkBuilder Public API - Last call

2007-06-14 Thread markku . vire
Hi, Lainaus Yevgen Muntyan [EMAIL PROTECTED]: [clip] Yes you can set the name after construction. gtk_builder_build_stuff(); widget1 = gtk_builder_lookup (foo); gtk_widget_set_name (widget1, gtk-tooltips); /* oops, forgot to set up widget2 after adding it in glade, since we set all

Re: The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]

2007-06-14 Thread Tshepang Lekhonkhobe
On 6/12/07, Kristian Rietveld [EMAIL PROTECTED] wrote: On Sun, Jun 10, 2007 at 10:38:44AM +0200, Murray Cumming wrote: There's also a new GtkTooltip object. Could we have some more information about how this should be used and if it replaces any existing API, please? Sure ;) As Matthias

Re: GtkBuilder Public API - Last call

2007-06-14 Thread Johan Dahlin
Tim Janik wrote: On Wed, 13 Jun 2007, Johan Dahlin wrote: Johan Dahlin wrote: Christian Persch wrote: Hi; typedef void (*GtkBuilderConnectFunc) (GtkBuilder *builder, const gchar *handler_name, GObject

Re: GtkBuilder Public API - Last call

2007-06-14 Thread Steve Frécinaux
On Thu, 2007-06-14 at 10:41 -0300, Johan Dahlin wrote: Let's use this xml attributes for the signal tag; name: signal name handler: handler to connect the signal to after: optional, boolean if True, set flags to G_CONNECT_AFTER swapped: optional, boolean if True, set flags to

Re: GtkBuilder Public API - Last call

2007-06-14 Thread Morten Welinder
user_type and user_data which I proposed doesn't make too much sense, it's also difficult to support since you can't (AFAICT) use a GValue as user data. It would be marginally useful for providing constant user data like... * Strings: oink * Translated strings: _(Moo!) * Integers:

gtk+ compile

2007-06-14 Thread Jeevan
Dear all, Here I am trying to run a simple GUI program using Gtk+.. I am getting error as follows: linux:~ # gcc base.c -o base 'pkg-config --cflags --libs gtk+-2.0' gcc: pkg-config --cflags --libs gtk+-2.0: No such file or directory base.c:1:21: gtk/gtk.h: No such file or directory base.c: In

Command Buffer for Accessing Menus

2007-06-14 Thread ricardo colon
Hello GTKers. I apologize for the cross post. I confused the people who develop with GTK mailing list for the people that develop GTK mailing list. I posted the following email to the Ardour(http://ardour.org) development group. One of the replies suggested that maybe my feature request is

Re: VFS for legacy apps (was: gvfs status report)

2007-06-14 Thread Jerome Haltom
On Thu, 2007-02-22 at 17:39 -0500, Sean Middleditch wrote: Just a reminder that : is the separator used in the PATH environment variable, and is thus a poor choice for use in directories. In all honesty, if the intended use case for reading the directory info is for FUSE and GVFS, I think it

Re: GtkBuilder Public API - Last call

2007-06-14 Thread Tim Janik
On Thu, 14 Jun 2007, Johan Dahlin wrote: Tim Janik wrote: there could conceivably be new flags in the future. also, object is different from swapped. the former should use g_signal_connect_object which needs a GObject argument and auto-disconnects the signal handler if the object argument

Re: gtk+ compile

2007-06-14 Thread Emmanuele Bassi
On Thu, 2007-06-14 at 05:04 -0700, Jeevan wrote: Dear all, Here I am trying to run a simple GUI program using Gtk+.. this list is for developing gtk+, not developing with gtk+. you want gtk-list or gtk-app-devel-list. I am getting error as follows: linux:~ # gcc base.c -o base

Re: GtkBuilder Public API - Last call

2007-06-14 Thread Johan Dahlin
Morten Welinder wrote: user_type and user_data which I proposed doesn't make too much sense, it's also difficult to support since you can't (AFAICT) use a GValue as user data. It would be marginally useful for providing constant user data like... * Strings: oink * Translated strings:

Re: GtkBuilder Public API - Last call

2007-06-14 Thread Johan Dahlin
Steve Frécinaux wrote: On Thu, 2007-06-14 at 10:41 -0300, Johan Dahlin wrote: Let's use this xml attributes for the signal tag; name: signal name handler: handler to connect the signal to after: optional, boolean if True, set flags to G_CONNECT_AFTER swapped: optional, boolean if

Re: GtkBuilder Public API - Last call

2007-06-14 Thread Damon Chaplin
I think its quite important here to not repeat one of the the most obvious mistakes of glade/libglade, swapping the signal based on the fact that an object was specified is confusing - it also rules out the use case of specifying a signal that is not swapped has an object user_data. Back

Re: GtkBuilder Public API - Last call

2007-06-14 Thread Damon Chaplin
On Thu, 2007-06-14 at 12:42 +0300, [EMAIL PROTECTED] wrote: So, I'm asking: Why not include something like set widget name option into glade and xml-file, or separate property for the name to be set?? Those widgets that have this flag set will have gtk_widget_set_name called, other do not

Re: GtkBuilder Public API - Last call

2007-06-14 Thread Damon Chaplin
On Wed, 2007-06-13 at 11:49 -0400, Tristan Van Berkom wrote: Anyway, my point here is not wrt code that exists already in Gtk+, I am of the opinion that GContainer iface is missing, and that objects in general use other objects in general, and in that process of ownership, packing properties

Re: GtkBuilder Public API - Last call

2007-06-14 Thread Johan Dahlin
Damon Chaplin wrote: On Wed, 2007-06-13 at 11:49 -0400, Tristan Van Berkom wrote: Anyway, my point here is not wrt code that exists already in Gtk+, I am of the opinion that GContainer iface is missing, and that objects in general use other objects in general, and in that process of

Re: The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]

2007-06-14 Thread BJörn Lindqvist
On 6/12/07, Kristian Rietveld [EMAIL PROTECTED] wrote: On Sun, Jun 10, 2007 at 10:38:44AM +0200, Murray Cumming wrote: There's also a new GtkTooltip object. Could we have some more information about how this should be used and if it replaces any existing API, please? Sure ;) As Matthias

Re: Menu groups vs. use of separators

2007-06-14 Thread Alex Jones
On Thu, 2007-06-14 at 08:15 +0200, Sven Neumann wrote: Hi, On Thu, 2007-06-14 at 03:26 +0100, Alex Jones wrote: I've been looking at how Rhythmbox allows plugins to manipulate menus (via UI manager magic), and it dawned on me that there is no way to separate these out visually, other

Re: The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]

2007-06-14 Thread Jeff Waugh
quote who=BJörn Lindqvist A new API called GtkTooltip replaces an API called GtkTooltips? Seems like that could become very confusing.. especially when using two or more GtkTooltips. Couldn't you have came up with something a little more imaginative? :) Perhaps GtkTooltipEx?

Re: GtkBuilder Public API - Last call

2007-06-14 Thread Kalle Vahlman
2007/6/14, Yevgen Muntyan [EMAIL PROTECTED]: Kalle Vahlman wrote: Is there a particular reason to set the name in _init() rather than in _set_cursor_colors()? It would avoid setting it completely if using Gtk+ =2.11.3 Code was written before Gtk+ = 2.11.3. ...with a chisel to a stone I

Re: GtkBuilder Public API - Last call

2007-06-14 Thread Yevgen Muntyan
Kalle Vahlman wrote: [snip philosophy] [1] though I don't really agree on widgets setting colors at all, regardless the fact that it then possibly won't look good with older themes (depending on what colors you can use). If you are really interested, get a fresh tarball of gtksourceview and

Re: Menu groups vs. use of separators

2007-06-14 Thread Matthias Clasen
On 6/14/07, Alex Jones [EMAIL PROTECTED] wrote: On Thu, 2007-06-14 at 08:15 +0200, Sven Neumann wrote: Hi, On Thu, 2007-06-14 at 03:26 +0100, Alex Jones wrote: I've been looking at how Rhythmbox allows plugins to manipulate menus (via UI manager magic), and it dawned on me that

Re: GtkBuilder Public API - Last call

2007-06-14 Thread Kalle Vahlman
2007/6/14, Yevgen Muntyan [EMAIL PROTECTED]: Kalle Vahlman wrote: [snip philosophy] [1] though I don't really agree on widgets setting colors at all, regardless the fact that it then possibly won't look good with older themes (depending on what colors you can use). If you are really

Re: The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]

2007-06-14 Thread Yevgen Muntyan
Kristian Rietveld wrote: [snip] In the GTK+ source code you will find a test app testing all of the above methods in gtk+/tests/testtooltips.c. There are examples for simple tooltips on buttons (also insensitive buttons!), tooltips on GtkTreeView rows, tooltips on GtkTextView tags and a

Re: GtkBuilder Public API - Last call

2007-06-14 Thread Johan Dahlin
Damon Chaplin wrote: I think its quite important here to not repeat one of the the most obvious mistakes of glade/libglade, swapping the signal based on the fact that an object was specified is confusing - it also rules out the use case of specifying a signal that is not swapped has an

Re: Command Buffer for Accessing Menus

2007-06-14 Thread muppet
On Jun 12, 2007, at 9:36 PM, ricardo colon wrote: For example, let's say Ardour has a menu called Automation. You would type something like Ctrl-X and then type in Automation. The Automation menu would directly pop-up. You wouldn't have to go through Tools - Midi - Automation or anything

How retrieve the selection with gtk?

2007-06-14 Thread eldruida
Hello, and sorry for my English. In the tutorial,http://www.gtk.org/tutorial/x1852.html, there are two examples for handle selections, but I will retrieve data of selection when the selection is made. And i don't find any other examples. Can anybody put a small example, I'm somewhat lost, xD.

Disable ALL keybindings for a specific widgit?

2007-06-14 Thread Justin Stallard
Hi, I've looked through the tutorial, faq, API doc, and even google and I can't seem to find out if there's some way to unbind all the keybindings associated with a particular widgit. Is there? What I want to have is this: A GtkEntry that does not respond to Left, Right, Insert, or any other

gtk + glxcontext/opengl

2007-06-14 Thread Daren Lee
Hi - I'm developing an OpenGL app on RedHat Linux WS 4 that uses freeglut to manage the underlying windowing system. I'm also using multiple rendering contexts with multi threads. This is my first GTK code and my goal is to use GTK to display a file browser dialog box to open/save files. This is