t"Refresh" stock button added; initial attempt to emulate accelerators for stoc… | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit c1efd5f98f6a6f0ee63c42e9c8b82342867d4340 | |
parent 12cf5219c5558ea4f2c42e8ca41c1e90f4a52ec2 | |
Author: Ben Webb <[email protected]> | |
Date: Mon, 25 Mar 2002 16:50:16 +0000 | |
"Refresh" stock button added; initial attempt to emulate accelerators for | |
stock buttons. | |
Diffstat: | |
M src/gtkport/gtkport.c | 10 ++++++++++ | |
1 file changed, 10 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/src/gtkport/gtkport.c b/src/gtkport/gtkport.c | |
t@@ -5119,6 +5119,16 @@ gint GtkMessageBox(GtkWidget *parent, const gchar *Text, | |
return OldGtkMessageBox(parent, Text, Title, Options); | |
} | |
+GtkWidget *gtk_button_new_from_stock(const gchar *label) | |
+{ | |
+ GtkWidget *button; | |
+ | |
+/*button = gtk_button_new_with_label(""); | |
+ SetAccelerator(button, label, button, "clicked", accel_group, TRUE);*/ | |
+ button = gtk_button_new_with_label(label); | |
+ return button; | |
+} | |
+ | |
#endif | |
static void gtk_url_set_cursor(GtkWidget *widget, GtkWidget *label) |