summaryrefslogtreecommitdiff
path: root/gtk/gtkbutton.h
diff options
context:
space:
mode:
authorYosef Or Boczko <yoseforb@gmail.com>2013-08-14 10:41:42 +0300
committerYosef Or Boczko <yoseforb@gmail.com>2013-08-14 10:41:42 +0300
commit2f77a61e61d6eb1d99f74b262c63059726a2ec08 (patch)
tree8c4d6b60f9724e4c4cd6b2f506fbe2c00d2080ae /gtk/gtkbutton.h
parent6ea4c1a1f4bd42eac4b0384c390be6732a02763f (diff)
downloadgtk+-2f77a61e61d6eb1d99f74b262c63059726a2ec08.tar.gz
Add gtk_button_new_from_icon_name
This function is a convenience wrapper around gtk_button_new() and gtk_button_set_image(). https://bugzilla.gnome.org/show_bug.cgi?id=705918 Signed-off-by: Yosef Or Boczko <yoseforb@gmail.com>
Diffstat (limited to 'gtk/gtkbutton.h')
-rw-r--r--gtk/gtkbutton.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkbutton.h b/gtk/gtkbutton.h
index 7c31994251..18379889fa 100644
--- a/gtk/gtkbutton.h
+++ b/gtk/gtkbutton.h
@@ -80,6 +80,9 @@ GDK_AVAILABLE_IN_ALL
GtkWidget* gtk_button_new (void);
GDK_AVAILABLE_IN_ALL
GtkWidget* gtk_button_new_with_label (const gchar *label);
+GDK_AVAILABLE_IN_3_10
+GtkWidget* gtk_button_new_from_icon_name (const gchar *icon_name,
+ GtkIconSize size);
GDK_DEPRECATED_IN_3_10_FOR(gtk_button_new_with_label)
GtkWidget* gtk_button_new_from_stock (const gchar *stock_id);
GDK_AVAILABLE_IN_ALL