t"Refresh" stock button added; initial attempt to emulate accelerators for stock buttons. - vaccinewars - be a doctor and try to vaccinate the world
HTML git clone git://src.adamsgaard.dk/vaccinewars
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit c1efd5f98f6a6f0ee63c42e9c8b82342867d4340
DIR parent 12cf5219c5558ea4f2c42e8ca41c1e90f4a52ec2
HTML Author: Ben Webb <ben@salilab.org>
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(-)
---
DIR 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)