changeset 4047:0fccde7ed9b8

[gaim-migrate @ 4255] Thanks, Etan. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Wed, 04 Dec 2002 22:00:29 +0000
parents 4a3f863b041f
children 3f4043d4e59b
files plugins/notify.c
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/notify.c	Wed Dec 04 07:24:57 2002 +0000
+++ b/plugins/notify.c	Wed Dec 04 22:00:29 2002 +0000
@@ -52,7 +52,8 @@
 /* predefine some functions, less warnings */
 void options(GtkWidget *widget, gpointer data);
 void un_star(GtkWidget *widget, gpointer data);
-void un_star_window(GtkWidget *widget, gpointer data);
+/* this returns an int so that typing events don't get stopped here */
+int un_star_window(GtkWidget *widget, gpointer data);
 int counter (char *buf, int *length);
 /*string functions */
 void string_add(GtkWidget *widget);
@@ -209,10 +210,11 @@
 	return;
 }
 
-void un_star_window(GtkWidget *widget, gpointer data) {
+int un_star_window(GtkWidget *widget, gpointer data) {
 	GtkWidget *parent = gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW);
 	un_star(parent, data);
-	return;
+	/* return 0 so that the event continues to propagate */
+	return 0;
 }
 
 /* This function returns the number in [ ]'s or 0 */