[gtk+/wip/baedert/box: 6/29] menutoolbutton: Remove deprecated API
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/box: 6/29] menutoolbutton: Remove deprecated API
- Date: Mon, 17 Oct 2016 07:14:54 +0000 (UTC)
commit 827ea10495faad60d00ebb5223942a178a841cb0
Author: Timm Bäder <mail baedert org>
Date: Fri Oct 14 21:38:50 2016 +0200
menutoolbutton: Remove deprecated API
gtk/gtkmenutoolbutton.c | 28 ----------------------------
gtk/gtkmenutoolbutton.h | 2 --
2 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/gtk/gtkmenutoolbutton.c b/gtk/gtkmenutoolbutton.c
index 23aedb0..847d893 100644
--- a/gtk/gtkmenutoolbutton.c
+++ b/gtk/gtkmenutoolbutton.c
@@ -352,34 +352,6 @@ gtk_menu_tool_button_new (GtkWidget *icon_widget,
return GTK_TOOL_ITEM (button);
}
-/**
- * gtk_menu_tool_button_new_from_stock:
- * @stock_id: the name of a stock item
- *
- * Creates a new #GtkMenuToolButton.
- * The new #GtkMenuToolButton will contain an icon and label from
- * the stock item indicated by @stock_id.
- *
- * Returns: the new #GtkMenuToolButton
- *
- * Since: 2.6
- *
- * Deprecated: 3.10: Use gtk_menu_tool_button_new() instead.
- **/
-GtkToolItem *
-gtk_menu_tool_button_new_from_stock (const gchar *stock_id)
-{
- GtkMenuToolButton *button;
-
- g_return_val_if_fail (stock_id != NULL, NULL);
-
- button = g_object_new (GTK_TYPE_MENU_TOOL_BUTTON,
- "stock-id", stock_id,
- NULL);
-
- return GTK_TOOL_ITEM (button);
-}
-
static void
_show_menu_emit (gpointer user_data)
{
diff --git a/gtk/gtkmenutoolbutton.h b/gtk/gtkmenutoolbutton.h
index 71a5d64..02c261b 100644
--- a/gtk/gtkmenutoolbutton.h
+++ b/gtk/gtkmenutoolbutton.h
@@ -75,8 +75,6 @@ GType gtk_menu_tool_button_get_type (void) G_GNUC_CONST;
GDK_AVAILABLE_IN_ALL
GtkToolItem *gtk_menu_tool_button_new (GtkWidget *icon_widget,
const gchar *label);
-GDK_DEPRECATED_IN_3_10_FOR(gtk_menu_tool_button_new)
-GtkToolItem *gtk_menu_tool_button_new_from_stock (const gchar *stock_id);
GDK_AVAILABLE_IN_ALL
void gtk_menu_tool_button_set_menu (GtkMenuToolButton *button,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]