Mercurial > pidgin
comparison plugins/notify.c @ 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 | e25edee01c33 |
children | 07a3d1fae88f |
comparison
equal
deleted
inserted
replaced
4046:4a3f863b041f | 4047:0fccde7ed9b8 |
---|---|
50 gchar *title_string = "(*) "; | 50 gchar *title_string = "(*) "; |
51 | 51 |
52 /* predefine some functions, less warnings */ | 52 /* predefine some functions, less warnings */ |
53 void options(GtkWidget *widget, gpointer data); | 53 void options(GtkWidget *widget, gpointer data); |
54 void un_star(GtkWidget *widget, gpointer data); | 54 void un_star(GtkWidget *widget, gpointer data); |
55 void un_star_window(GtkWidget *widget, gpointer data); | 55 /* this returns an int so that typing events don't get stopped here */ |
56 int un_star_window(GtkWidget *widget, gpointer data); | |
56 int counter (char *buf, int *length); | 57 int counter (char *buf, int *length); |
57 /*string functions */ | 58 /*string functions */ |
58 void string_add(GtkWidget *widget); | 59 void string_add(GtkWidget *widget); |
59 gboolean string_remove(GtkWidget *widget); | 60 gboolean string_remove(GtkWidget *widget); |
60 /* count functions */ | 61 /* count functions */ |
207 if (c && method & METHOD_URGENT) | 208 if (c && method & METHOD_URGENT) |
208 urgent_remove(c); | 209 urgent_remove(c); |
209 return; | 210 return; |
210 } | 211 } |
211 | 212 |
212 void un_star_window(GtkWidget *widget, gpointer data) { | 213 int un_star_window(GtkWidget *widget, gpointer data) { |
213 GtkWidget *parent = gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW); | 214 GtkWidget *parent = gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW); |
214 un_star(parent, data); | 215 un_star(parent, data); |
215 return; | 216 /* return 0 so that the event continues to propagate */ |
217 return 0; | |
216 } | 218 } |
217 | 219 |
218 /* This function returns the number in [ ]'s or 0 */ | 220 /* This function returns the number in [ ]'s or 0 */ |
219 int counter (char *buf, int *length) { | 221 int counter (char *buf, int *length) { |
220 char temp[256]; | 222 char temp[256]; |