Re: GtkBuilder Public API - Last call



2007/6/14, Yevgen Muntyan <muntyan tamu edu>:
Kalle Vahlman wrote:
> 2007/6/14, Yevgen Muntyan <muntyan tamu edu>:
>> Set widget name in constructor or init(), then create this widget with
>> GtkBuilder.
>> Yeah, "semi-broken".
>
> Why is that preferrable over matching by the widget class name?
>
See
http://svn.gnome.org/viewcvs/gtksourceview/trunk/gtksourceview/gtksourcestylescheme.c?view=markup
for cursor color thing, set_cursor_colors() function.

Which part of it breaks due GtkBuilder? I don't see GtkSourceView
setting it's name (nor the cursor colors) in the constructor, which
was the primary concern you brought up.

For non-unique name, try
to get tooltips color on your widget without "gtk-tooltips" name.

I think this:

 http://mail.gnome.org/archives/usability/2007-June/msg00027.html

is by far a better solution to this problem than fiddling with the
widget names.

Let's not get caught in the "support old crappy ways in new API since
someone might have written some software depending on that"-thing that
some operating systems are guilty of. We are not breaking anything
here that wouldn't be broken anyway with the current method. And
people *do* use custom widgets with libglade, at least I do. It just
needs a little push from the application side to work, which is true
with the gtk-tooltips issue too (just name the widget after
construction in the application and it'll work).

--
Kalle Vahlman, zuh iki fi
Powered by http://movial.fi
Interesting stuff at http://syslog.movial.fi



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]