[monkey-bubble: 210/753] Use the GTK+ API to access our stock icons.
- From: Sven Herzberg <herzi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [monkey-bubble: 210/753] Use the GTK+ API to access our stock icons.
- Date: Wed, 14 Jul 2010 22:13:19 +0000 (UTC)
commit 90655320126c04290d4977661ba978c8c196f5e7
Author: Martin Baulig <baulig suse de>
Date: Sun Apr 29 00:55:13 2001 +0000
Use the GTK+ API to access our stock icons.
2001-04-29 Martin Baulig <baulig suse de>
* winhints_demo.c: Use the GTK+ API to access our stock icons.
demos/ChangeLog | 4 ++++
demos/winhints_demo.c | 10 ++++++----
2 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/demos/ChangeLog b/demos/ChangeLog
index 29af31f..b55a807 100644
--- a/demos/ChangeLog
+++ b/demos/ChangeLog
@@ -1,3 +1,7 @@
+2001-04-29 Martin Baulig <baulig suse de>
+
+ * winhints_demo.c: Use the GTK+ API to access our stock icons.
+
2001-04-26 Martin Baulig <baulig suse de>
* stock_demo.c: Removed; this has been moved to libcompat/demos/.
diff --git a/demos/winhints_demo.c b/demos/winhints_demo.c
index d55a595..403b4b5 100644
--- a/demos/winhints_demo.c
+++ b/demos/winhints_demo.c
@@ -1,7 +1,8 @@
#include <config.h>
-#include <gnome.h>
#include <gdk/gdkx.h>
-#include "gnome-winhints.h"
+#include <libgnome/gnome-i18n.h>
+#include <libgnomeui/libgnomeui.h>
+#include <libgnomeui/gnome-winhints.h>
void layers_cb (GtkWidget *widget, void *data);
@@ -250,7 +251,8 @@ static void prepare_app(void)
gtk_container_add(GTK_CONTAINER(button), hb);
gtk_widget_show(hb);
- apic = gnome_stock_new_with_icon (GNOME_STOCK_PIXMAP_HELP);
+ apic = gtk_image_new_from_stock (GNOME_STOCK_PIXMAP_HELP,
+ GTK_ICON_SIZE_BUTTON);
gtk_box_pack_start(GTK_BOX(hb), apic, FALSE, FALSE, 0);
gtk_widget_show(apic);
@@ -258,7 +260,7 @@ static void prepare_app(void)
gtk_box_pack_end(GTK_BOX(hb), label, FALSE, FALSE, 5);
gtk_widget_show(label);
- button = gnome_stock_button(GNOME_STOCK_BUTTON_CLOSE);
+ button = gtk_button_new_from_stock (GNOME_STOCK_BUTTON_CLOSE);
gtk_box_pack_end(GTK_BOX(hb1), button, FALSE, FALSE, 0);
gtk_signal_connect(GTK_OBJECT(button), "clicked",
GTK_SIGNAL_FUNC(quit_cb), lbox);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]