tNative GTK+2 stock buttons and message dialogs now used. - vaccinewars - be a doctor and try to vaccinate the world
(HTM) git clone git://src.adamsgaard.dk/vaccinewars
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit cff8db0bd72bb8724b47cd6b0c0a10637ee35321
(DIR) parent 07236bc9caf3a4de10bbc136329bcba49f0fb558
(HTM) Author: Ben Webb <ben@salilab.org>
Date: Mon, 25 Mar 2002 16:51:17 +0000
Native GTK+2 stock buttons and message dialogs now used.
Diffstat:
M src/gtkport/gtkport.h | 16 ++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/src/gtkport/gtkport.h b/src/gtkport/gtkport.h
t@@ -743,14 +743,30 @@ void gtk_container_set_size(GtkWidget *widget, GtkAllocation *allocation);
#define MB_NO 8
#define MB_MAX 4
#define MB_YESNO (MB_YES|MB_NO)
+
+#ifdef HAVE_GTK2
+#define IDOK GTK_RESPONSE_OK
+#define IDCANCEL GTK_RESPONSE_CANCEL
+#define IDYES GTK_RESPONSE_YES
+#define IDNO GTK_RESPONSE_NO
+#else
#define IDOK 1
#define IDCANCEL 2
#define IDYES 4
#define IDNO 8
+#endif
/* Other flags */
#define MB_IMMRETURN 16
+#ifndef HAVE_GTK2
+#define GTK_STOCK_OK _("OK")
+#define GTK_STOCK_CLOSE _("Close")
+#define GTK_STOCK_CANCEL _("Cancel")
+
+#define gtk_button_new_from_stock gtk_button_new_with_label
+#endif
+
typedef struct _GtkUrl GtkUrl;
struct _GtkUrl {