]> Pileus Git - ~andy/gtk/commitdiff
[gtk/gtktoolitem] Remove deprecated GtkToolItem stuff
authorJavier Jardón <jjardon@gnome.org>
Mon, 7 Dec 2009 21:42:08 +0000 (22:42 +0100)
committerJavier Jardón <jjardon@gnome.org>
Sun, 2 May 2010 23:51:20 +0000 (01:51 +0200)
This completes 221dcb6955cb89d1f89e71f442fc4c42fb76fcf3

docs/reference/gtk/tmpl/gtktoolitem.sgml
gtk/gtkmenutoolbutton.c
gtk/gtktoolitem.c
gtk/gtktoolitem.h

index 53a5799ac2106136cfd60245a5832cf17e0f2957..ecef9107ffb97e627ce8c85ee8021413b833de21 100644 (file)
@@ -108,17 +108,6 @@ GtkToolItem
 @Returns: 
 
 
-<!-- ##### FUNCTION gtk_tool_item_set_tooltip ##### -->
-<para>
-
-</para>
-
-@tool_item: 
-@tooltips: 
-@tip_text: 
-@tip_private: 
-
-
 <!-- ##### FUNCTION gtk_tool_item_set_tooltip_text ##### -->
 <para>
 
index 59e0681ce8db5f324817ae23072bf7557a1fcb5e..425f8d5d74c0d941e83dc74f367876f2273aa535 100644 (file)
@@ -598,7 +598,7 @@ gtk_menu_tool_button_get_menu (GtkMenuToolButton *button)
  * @text: text to be used as tooltip text for button's arrow button
  *
  * Sets the tooltip text to be used as tooltip for the arrow button which
- * pops up the menu.  See gtk_tool_item_set_tooltip() for setting a tooltip
+ * pops up the menu.  See gtk_tool_item_set_tooltip_text() for setting a tooltip
  * on the whole #GtkMenuToolButton.
  *
  * Since: 2.12
@@ -618,7 +618,7 @@ gtk_menu_tool_button_set_arrow_tooltip_text (GtkMenuToolButton *button,
  * @markup: markup text to be used as tooltip text for button's arrow button
  *
  * Sets the tooltip markup text to be used as tooltip for the arrow button
- * which pops up the menu.  See gtk_tool_item_set_tooltip() for setting a
+ * which pops up the menu.  See gtk_tool_item_set_tooltip_text() for setting a
  * tooltip on the whole #GtkMenuToolButton.
  *
  * Since: 2.12
index b6b3491ab04b968ba443230e2eb5c5f4b3a110d0..17309e93310059a7aa2c50720002b93415ffeff1 100644 (file)
@@ -137,10 +137,6 @@ static void gtk_tool_item_size_request  (GtkWidget      *widget,
                                         GtkRequisition *requisition);
 static void gtk_tool_item_size_allocate (GtkWidget      *widget,
                                         GtkAllocation  *allocation);
-static gboolean gtk_tool_item_real_set_tooltip (GtkToolItem *tool_item,
-                                               GtkTooltips *tooltips,
-                                               const gchar *tip_text,
-                                               const gchar *tip_private);
 
 static void gtk_tool_item_activatable_interface_init (GtkActivatableIface  *iface);
 static void gtk_tool_item_update                     (GtkActivatable       *activatable,
@@ -183,7 +179,6 @@ gtk_tool_item_class_init (GtkToolItemClass *klass)
   widget_class->parent_set    = gtk_tool_item_parent_set;
 
   klass->create_menu_proxy = _gtk_tool_item_create_menu_proxy;
-  klass->set_tooltip       = gtk_tool_item_real_set_tooltip;
   
   g_object_class_install_property (object_class,
                                   PROP_VISIBLE_HORIZONTAL,
@@ -1049,22 +1044,6 @@ gtk_tool_item_set_is_important (GtkToolItem *tool_item, gboolean is_important)
     }
 }
 
-static gboolean
-gtk_tool_item_real_set_tooltip (GtkToolItem *tool_item,
-                               GtkTooltips *tooltips,
-                               const gchar *tip_text,
-                               const gchar *tip_private)
-{
-  GtkWidget *child = GTK_BIN (tool_item)->child;
-
-  if (!child)
-    return FALSE;
-
-  gtk_widget_set_tooltip_text (child, tip_text);
-
-  return TRUE;
-}
-
 /**
  * gtk_tool_item_set_tooltip_text:
  * @tool_item: a #GtkToolItem 
index 5c05f3096df4bff4b537edc425046b2a531dcc03..a3db72a7090ac981506af289fd42be3191852b8c 100644 (file)
@@ -60,14 +60,6 @@ struct _GtkToolItemClass
   /* signals */
   gboolean   (* create_menu_proxy)    (GtkToolItem *tool_item);
   void       (* toolbar_reconfigured) (GtkToolItem *tool_item);
-#ifndef GTK_DISABLE_DEPRECATED
-  gboolean   (* set_tooltip)         (GtkToolItem *tool_item,
-                                      GtkTooltips *tooltips,
-                                      const gchar *tip_text,
-                                      const gchar *tip_private);
-#else
-  gpointer _set_tooltip;
-#endif
 
   /* Padding for future expansion */
   void (* _gtk_reserved1) (void);