Lines 61-68
Link Here
|
61 |
gboolean show[3]; |
61 |
gboolean show[3]; |
62 |
|
62 |
|
63 |
GtkDialog *about, *settings; |
63 |
GtkDialog *about, *settings; |
64 |
|
64 |
|
|
|
65 |
#if !(NEW_API) |
65 |
GtkTooltips *tooltips; |
66 |
GtkTooltips *tooltips; |
|
|
67 |
#endif // NEW_API |
66 |
} LedApplet; |
68 |
} LedApplet; |
67 |
|
69 |
|
68 |
static const char |
70 |
static const char |
Lines 497-503
Link Here
|
497 |
off = _("Off"); |
499 |
off = _("Off"); |
498 |
buf = g_strdup_printf(_("Caps: %s Num: %s Scroll: %s"), applet->on[CAPSLOCK] ? on : off, |
500 |
buf = g_strdup_printf(_("Caps: %s Num: %s Scroll: %s"), applet->on[CAPSLOCK] ? on : off, |
499 |
applet->on[NUMLOCK] ? on : off,applet->on[SCROLLLOCK] ? on : off); |
501 |
applet->on[NUMLOCK] ? on : off,applet->on[SCROLLLOCK] ? on : off); |
|
|
502 |
#if (NEW_API) |
503 |
gtk_tooltips_set_tip(GTK_WIDGET(applet->applet), buf, ""); |
504 |
#else |
500 |
gtk_tooltips_set_tip(applet->tooltips, GTK_WIDGET(applet->applet), buf, ""); |
505 |
gtk_tooltips_set_tip(applet->tooltips, GTK_WIDGET(applet->applet), buf, ""); |
|
|
506 |
#endif // NEW_API |
501 |
g_free(buf); |
507 |
g_free(buf); |
502 |
} |
508 |
} |
503 |
|
509 |
|
Lines 588-594
Link Here
|
588 |
g_assert(drawable); |
594 |
g_assert(drawable); |
589 |
applet->rootwin = gdk_x11_drawable_get_xdisplay(drawable); |
595 |
applet->rootwin = gdk_x11_drawable_get_xdisplay(drawable); |
590 |
|
596 |
|
|
|
597 |
#if !(NEW_API) |
591 |
applet->tooltips = gtk_tooltips_new(); |
598 |
applet->tooltips = gtk_tooltips_new(); |
|
|
599 |
#endif // NEW_API |
592 |
|
600 |
|
593 |
applet->vbox = gtk_vbox_new(FALSE, 0); |
601 |
applet->vbox = gtk_vbox_new(FALSE, 0); |
594 |
applet->hbox = gtk_hbox_new(FALSE, 0); |
602 |
applet->hbox = gtk_hbox_new(FALSE, 0); |