summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Lebl <jirka@5z.com>1999-08-21 01:28:02 +0000
committerGeorge Lebl <jirka@src.gnome.org>1999-08-21 01:28:02 +0000
commit85a8adede4c1794989e52f9bce72c30109b4df8c (patch)
tree910f24ef9e8b469447565a9be4d750bf249ade9a
parenta550f437a1e2caeec13d866038fe6997e173167b (diff)
fixup the style setting, since get_rc_style can return NULL, we use
Fri Aug 20 18:27:05 1999 George Lebl <jirka@5z.com> * geyes.c: fixup the style setting, since get_rc_style can return NULL, we use gtk_widget_set_rc_style * themes.c: add #include <ctype.h> for isdigit
-rw-r--r--geyes/ChangeLog7
-rw-r--r--geyes/geyes.c9
-rw-r--r--geyes/themes.c1
3 files changed, 11 insertions, 6 deletions
diff --git a/geyes/ChangeLog b/geyes/ChangeLog
index 2c779e5c0..225cc2bca 100644
--- a/geyes/ChangeLog
+++ b/geyes/ChangeLog
@@ -1,3 +1,10 @@
+Fri Aug 20 18:27:05 1999 George Lebl <jirka@5z.com>
+
+ * geyes.c: fixup the style setting, since get_rc_style can
+ return NULL, we use gtk_widget_set_rc_style
+
+ * themes.c: add #include <ctype.h> for isdigit
+
1999-08-04 Jacob Berkman <jberkman@andrew.cmu.edu>
* geyes.c (create_eyes): pass a pointer to the eyes_applet
diff --git a/geyes/geyes.c b/geyes/geyes.c
index e4fc1d5f4..700fd87af 100644
--- a/geyes/geyes.c
+++ b/geyes/geyes.c
@@ -28,15 +28,12 @@
EyesApplet eyes_applet = {0};
/* Applet transparency - Taken (and modified a bit) from Miguel's gen-util
- * printer applet (thanks to Inigo Serna who pointed this code out to me) */
+ * printer applet (thanks to Inigo Serna who pointed this code out to me)
+ * But that code was wrong - George */
static void
applet_set_default_back (GtkWidget *dest, GtkWidget *src)
{
- GtkStyle *new_style;
- new_style = gtk_rc_get_style (src);
- gtk_style_ref (new_style);
- gtk_widget_set_style (dest, new_style);
- gtk_style_unref (new_style);
+ gtk_widget_set_rc_style(dest);
gtk_widget_queue_draw (dest);
}
diff --git a/geyes/themes.c b/geyes/themes.c
index eaa7bacc0..6746ea4a6 100644
--- a/geyes/themes.c
+++ b/geyes/themes.c
@@ -22,6 +22,7 @@
#include <string.h>
#include <dirent.h>
#include <limits.h>
+#include <ctype.h>
#include "geyes.h"
extern EyesApplet eyes_applet;