summaryrefslogtreecommitdiff
path: root/tests/teststatusicon.c
diff options
context:
space:
mode:
authorHans Breuer <hans@breuer.org>2005-09-18 12:28:42 +0000
committerHans Breuer <hans@src.gnome.org>2005-09-18 12:28:42 +0000
commite5d06c7ca9b2277e0e7a91acfb5ecb7c2d7683a9 (patch)
treef9ecc4b01e25d8e07f5ff72088c9975721c65ad0 /tests/teststatusicon.c
parent1127a03f71a7e775bb0e1c886fced484b34d93a8 (diff)
downloadgdk-pixbuf-e5d06c7ca9b2277e0e7a91acfb5ecb7c2d7683a9.tar.gz
fix typo for GTK_VER; define HAVE_CONFIG_H cause gtkprogressbar.c has
2005-09-18 Hans Breuer <hans@breuer.org> * gtk/makefile.msc.in : fix typo for GTK_VER; define HAVE_CONFIG_H cause gtkprogressbar.c has #include <config.h> conditionally; less noise from generated gtk.def * gtk/stock-icons/makefile.msc gdk/makefile.msc tests/makefile.msc : updated * gtk/gtktrayicon-win32.c : dummy implmentation to make gtk compile. For me it works as well as the *NIX implemenation, that is not at all. * gdk/win32/gdkproperty-win32.c : implement gdk_atom_intern_static_string() * gdk/win32/gdkwindow-win32.c(gdk_window_set_urgency_hint) : only use only use (WINVER >= 0x0500) when available from the SDK. Otherwise fall back to true dynamic linking of FlashWindowEx. Makes gtk+ work on NT4.0 again - if compiled properly. * tests/teststatusicon.c : don't use GNOME icons for testing, but icons already coming with Gtk+. Makes it compile on win32.
Diffstat (limited to 'tests/teststatusicon.c')
-rwxr-xr-xtests/teststatusicon.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/teststatusicon.c b/tests/teststatusicon.c
index 467baf5dd..738181d30 100755
--- a/tests/teststatusicon.c
+++ b/tests/teststatusicon.c
@@ -25,11 +25,11 @@
typedef enum
{
- TEST_STATUS_FILE,
- TEST_STATUS_DIRECTORY
+ TEST_STATUS_INFO,
+ TEST_STATUS_QUESTION
} TestStatus;
-static TestStatus status = TEST_STATUS_FILE;
+static TestStatus status = TEST_STATUS_INFO;
static gint timeout = 0;
static void
@@ -38,15 +38,15 @@ update_icon (GtkStatusIcon *status_icon)
gchar *icon_name;
gchar *tooltip;
- if (status == TEST_STATUS_FILE)
+ if (status == TEST_STATUS_INFO)
{
- icon_name = "gnome-fs-regular";
- tooltip = "Regular File";
+ icon_name = GTK_STOCK_DIALOG_INFO;
+ tooltip = "Some Infromation ...";
}
else
{
- icon_name = "gnome-fs-directory";
- tooltip = "Directory";
+ icon_name = GTK_STOCK_DIALOG_QUESTION;
+ tooltip = "Some Question ...";
}
gtk_status_icon_set_from_icon_name (status_icon, icon_name);
@@ -58,10 +58,10 @@ timeout_handler (gpointer data)
{
GtkStatusIcon *icon = GTK_STATUS_ICON (data);
- if (status == TEST_STATUS_FILE)
- status = TEST_STATUS_DIRECTORY;
+ if (status == TEST_STATUS_INFO)
+ status = TEST_STATUS_QUESTION;
else
- status = TEST_STATUS_FILE;
+ status = TEST_STATUS_INFO;
update_icon (icon);