Re: [gtk-list] Re: Tooltips color setting

In <URL:news:local.gtk> on Thu 07 Jan, Dave Cole wrote:
> > # tooltips seem to use a plain DrawWindow??
> > widget_class "*GtkDrawWindow*" style "tooltip"
> That one doesn't work here.  I am using gtk+-1.1.12.  Looking at the
> tooltip source, it uses a plain GtkWindow for displaying the tip.
> It would be nice if this worked:
> widget_class "GtkTooltip.GtkWindow" style "tooltip"
Yup, just noticed that its stopped working here with 1.1.12.
Hmm... its no longer a draw window or something.
Anyway, doing something like the following patch is more the kind of thing.

This seems like something the styles people would havbe tackled.
Is there any kind of standard for case, spacing etc for the names used
by rc files?

Anyway, where does one send patches like this?

*** gtktooltips.c~	Thu Dec 17 02:47:57 1998
--- gtktooltips.c	Thu Jan  7 10:39:04 1999
*** 177,182 ****
--- 177,183 ----
        tooltips->tip_window = gtk_window_new (GTK_WINDOW_POPUP);
        gtk_widget_set_app_paintable (tooltips->tip_window, TRUE);
        gtk_window_set_policy (GTK_WINDOW (tooltips->tip_window), FALSE, FALSE, TRUE);
+       gtk_widget_set_name(tooltips->tip_window,"tooltips");
        gtk_signal_connect_object (GTK_OBJECT (tooltips->tip_window), 

And then:

# Brian's gtkrc
style "tooltip"
  bg[NORMAL] = { 1.0, 1.0, 0 }
widget "*tooltips" style "tooltip"

The past is a fading dream, the future mere speculation - live for the moment
Brian Brunswick   Disclaimer  !Shortsig! <SPAM_ACCEPT="NONE">

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