summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Lebl <jirka@5z.com>2000-02-20 01:28:12 +0000
committerGeorge Lebl <jirka@src.gnome.org>2000-02-20 01:28:12 +0000
commitc1eff065803fb2bc92a77212d28ad855e5464d83 (patch)
tree6679c34443080911bb450e74e2b34e928f8c6da3
parent9b0e22f8947f5b522338cdfb582fbe9c9f77193d (diff)
create an event box for the sole purpose of catching events. CatchingGNOME_CORE_1_1_4
Sat Feb 19 17:26:17 2000 George Lebl <jirka@5z.com> * gen_util/mailcheck.c: create an event box for the sole purpose of catching events. Catching events on the applet widget won't work for shlib applets
-rw-r--r--mailcheck/ChangeLog6
-rw-r--r--mailcheck/mailcheck.c17
2 files changed, 18 insertions, 5 deletions
diff --git a/mailcheck/ChangeLog b/mailcheck/ChangeLog
index 341b378ee..6c8311d35 100644
--- a/mailcheck/ChangeLog
+++ b/mailcheck/ChangeLog
@@ -1,3 +1,9 @@
+Sat Feb 19 17:26:17 2000 George Lebl <jirka@5z.com>
+
+ * gen_util/mailcheck.c: create an event box for the sole purpose
+ of catching events. Catching events on the applet widget won't
+ work for shlib applets
+
Sun Feb 13 21:56:45 2000 George Lebl <jirka@5z.com>
* gen_util/{gen_util.gnorba,printer.c,Makefile.am}: build the printer
diff --git a/mailcheck/mailcheck.c b/mailcheck/mailcheck.c
index fa6cbde8f..756fe63e9 100644
--- a/mailcheck/mailcheck.c
+++ b/mailcheck/mailcheck.c
@@ -61,6 +61,9 @@ struct _MailCheck {
char *pre_check_cmd;
gboolean pre_check_enabled;
+ /* This is the event box for catching events */
+ GtkWidget *ebox;
+
/* This holds either the drawing area or the label */
GtkWidget *bin;
@@ -419,17 +422,21 @@ create_mail_widgets (MailCheck *mc)
{
char *fname = mail_animation_filename (mc);
- mc->bin = gtk_hbox_new (0, 0);
-
+ mc->ebox = gtk_event_box_new();
+ gtk_widget_show (mc->ebox);
+
/*
* This is so that the properties dialog is destroyed if the
* applet is removed from the panel while the dialog is
* active.
*/
- gtk_signal_connect (GTK_OBJECT (mc->bin), "destroy",
+ gtk_signal_connect (GTK_OBJECT (mc->ebox), "destroy",
(GtkSignalFunc) mailcheck_destroy,
mc);
+ mc->bin = gtk_hbox_new (0, 0);
+ gtk_container_add(GTK_CONTAINER(mc->ebox), mc->bin);
+
gtk_widget_show (mc->bin);
mc->mail_timeout = gtk_timeout_add (mc->update_freq, mail_check_timeout, mc);
@@ -461,7 +468,7 @@ create_mail_widgets (MailCheck *mc)
}
free (fname);
gtk_container_add (GTK_CONTAINER (mc->bin), mc->containee);
- return mc->bin;
+ return mc->ebox;
}
static void
@@ -1197,7 +1204,7 @@ make_mailcheck_applet(const gchar *goad_id)
gtk_widget_get_events(GTK_WIDGET(applet)) |
GDK_BUTTON_PRESS_MASK);
- gtk_signal_connect(GTK_OBJECT(applet), "button_press_event",
+ gtk_signal_connect(GTK_OBJECT(mailcheck), "button_press_event",
GTK_SIGNAL_FUNC(exec_clicked_cmd), mc);
gtk_signal_connect(GTK_OBJECT(applet),"save_session",