aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--lib/widgets/ephy-zoom-control.c17
2 files changed, 24 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4ce1b04b5..54ffd0088 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2003-07-02 Christian Persch <chpe@cvs.gnome.org>
+ * lib/widgets/ephy-zoom-control.c: (ephy_zoom_control_set_tooltip),
+ (ephy_zooom_control_class_init):
+
+ Implement custom tooltip setter.
+
+2003-07-02 Christian Persch <chpe@cvs.gnome.org>
+
* lib/widgets/ephy-arrow-toolbutton.c:
(ephy_arrow_toolbutton_set_tooltip), (ephy_arrow_toolbutton_class_init):
diff --git a/lib/widgets/ephy-zoom-control.c b/lib/widgets/ephy-zoom-control.c
index b4c7db5c5..ccd193a7d 100644
--- a/lib/widgets/ephy-zoom-control.c
+++ b/lib/widgets/ephy-zoom-control.c
@@ -27,6 +27,7 @@
#include <gtk/gtk.h>
#include <gtk/gtkmenu.h>
#include <gtk/gtkoptionmenu.h>
+#include <gtk/gtktooltips.h>
#include <bonobo/bonobo-i18n.h>
/**
@@ -270,6 +271,21 @@ ephy_zoom_control_get_property (GObject *object,
}
}
+static gboolean
+ephy_zoom_control_set_tooltip (EggToolItem *tool_item,
+ GtkTooltips *tooltips,
+ const char *tip_text,
+ const char *tip_private)
+{
+ EphyZoomControl *control = EPHY_ZOOM_CONTROL (tool_item);
+
+ g_return_val_if_fail (EPHY_IS_ZOOM_CONTROL (control), FALSE);
+
+ gtk_tooltips_set_tip (tooltips, control->priv->option_menu, tip_text, tip_private);
+
+ return TRUE;
+}
+
static void
ephy_zoom_control_class_init (EphyZoomControlClass *klass)
{
@@ -286,6 +302,7 @@ ephy_zoom_control_class_init (EphyZoomControlClass *klass)
object_class->finalize = ephy_zoom_control_finalize;
tool_item_class->create_menu_proxy = ephy_zoom_control_create_menu_proxy;
+ tool_item_class->set_tooltip = ephy_zoom_control_set_tooltip;
g_object_class_install_property (object_class,
PROP_ZOOM,