View | Details | Raw Unified
Collapse All | Expand All

(-) lock-keys-applet-1.0/src/lock-keys-applet.c (-1 / +9 lines)
 Lines 61-68    Link Here 
	gboolean show[3];
	gboolean show[3];
	
	
	GtkDialog *about, *settings;
	GtkDialog *about, *settings;
	
#if !(NEW_API)
	GtkTooltips *tooltips;
	GtkTooltips *tooltips;
#endif // NEW_API	
} LedApplet;
} LedApplet;
static const char 
static const char 
 Lines 497-503    Link Here 
	off = _("Off");
	off = _("Off");
	buf = g_strdup_printf(_("Caps: %s Num: %s Scroll: %s"), applet->on[CAPSLOCK] ? on : off, 
	buf = g_strdup_printf(_("Caps: %s Num: %s Scroll: %s"), applet->on[CAPSLOCK] ? on : off, 
		applet->on[NUMLOCK] ? on : off,applet->on[SCROLLLOCK] ? on : off);
		applet->on[NUMLOCK] ? on : off,applet->on[SCROLLLOCK] ? on : off);
#if (NEW_API)
	gtk_tooltips_set_tip(GTK_WIDGET(applet->applet), buf, "");
#else
	gtk_tooltips_set_tip(applet->tooltips, GTK_WIDGET(applet->applet), buf, "");
	gtk_tooltips_set_tip(applet->tooltips, GTK_WIDGET(applet->applet), buf, "");
#endif // NEW_API
	g_free(buf);
	g_free(buf);
}
}
 Lines 588-594    Link Here 
	g_assert(drawable);
	g_assert(drawable);
	applet->rootwin = gdk_x11_drawable_get_xdisplay(drawable);
	applet->rootwin = gdk_x11_drawable_get_xdisplay(drawable);
	
	
#if !(NEW_API)
	applet->tooltips = gtk_tooltips_new();
	applet->tooltips = gtk_tooltips_new();
#endif // NEW_API
	
	
	applet->vbox = gtk_vbox_new(FALSE, 0);
	applet->vbox = gtk_vbox_new(FALSE, 0);
	applet->hbox = gtk_hbox_new(FALSE, 0);
	applet->hbox = gtk_hbox_new(FALSE, 0);