Commit 6cb63cf0 authored by Vincent Untz's avatar Vincent Untz Committed by Vincent Untz
Browse files

use gtk_widget_set_tooltip_text() dittp kill wncklet_set_tooltip()

2007-07-01  Vincent Untz  <vuntz@gnome.org>

	* showdesktop.c: (update_button_display): use
	gtk_widget_set_tooltip_text()
	* window-menu.c: (window_menu_applet_fill): dittp
	* wncklet.[ch]: kill wncklet_set_tooltip()

svn path=/trunk/; revision=10515
parent 23e05224
2007-07-01 Vincent Untz <vuntz@gnome.org>
* showdesktop.c: (update_button_display): use
gtk_widget_set_tooltip_text()
* window-menu.c: (window_menu_applet_fill): dittp
* wncklet.[ch]: kill wncklet_set_tooltip()
2007-06-26 Vincent Untz <vuntz@gnome.org>
* window-list.c: (destroy_tasklist): the last two listeners were
......
......@@ -237,13 +237,15 @@ static const BonoboUIVerb show_desktop_menu_verbs [] = {
static void
update_button_display (ShowDesktopData *sdd)
{
const char *tip;
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (sdd->button))) {
wncklet_set_tooltip (sdd->button,
_("Click here to restore hidden windows."));
tip = _("Click here to restore hidden windows.");
} else {
wncklet_set_tooltip (sdd->button,
_("Click here to hide all windows and show the desktop."));
tip = _("Click here to hide all windows and show the desktop.");
}
gtk_widget_set_tooltip_text (sdd->button, tip);
}
static void
......
......@@ -237,7 +237,7 @@ window_menu_applet_fill (PanelApplet *applet)
window_menu->applet = GTK_WIDGET (applet);
force_no_focus_padding (window_menu->applet);
wncklet_set_tooltip (window_menu->applet, _("Window Selector"));
gtk_widget_set_tooltip_text (window_menu->applet, _("Window Selector"));
panel_applet_set_flags (applet, PANEL_APPLET_EXPAND_MINOR);
window_menu->size = panel_applet_get_size (applet);
......
......@@ -39,17 +39,6 @@
#include "window-list.h"
#include "showdesktop.h"
void
wncklet_set_tooltip (GtkWidget *widget,
const char *tip)
{
char *markup;
markup = g_markup_escape_text (tip, -1);
g_object_set (widget, "tooltip-markup", markup, NULL);
g_free (markup);
}
void
wncklet_display_about (GtkWidget *applet,
GtkWidget **dialog,
......
......@@ -33,9 +33,6 @@
G_BEGIN_DECLS
void wncklet_set_tooltip (GtkWidget *widget,
const char *tip);
void wncklet_display_about (GtkWidget *applet,
GtkWidget **dialog,
const char *name,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment