comparison src/gtknotify.c @ 8337:65ae6930b45a

[gaim-migrate @ 9061] Eww. Bad code. Bad. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 25 Feb 2004 21:56:10 +0000
parents 980b3bd976ae
children 354bba6ad254
comparison
equal deleted inserted replaced
8336:4e958012724a 8337:65ae6930b45a
261 gtk_widget_show_all(dialog); 261 gtk_widget_show_all(dialog);
262 262
263 return data; 263 return data;
264 } 264 }
265 265
266 static 266 static gboolean
267 gboolean formatted_input_cb(GtkWidget *dialog, 267 formatted_input_cb(GtkWidget *dialog, GdkEventKey *event, gpointer data)
268 GdkEventKey *event, gpointer data) 268 {
269 { 269 if (event->keyval == GDK_Escape)
270 if (event->keyval == GDK_Escape) { 270 {
271 gtk_object_destroy(GTK_OBJECT(dialog)); 271 gtk_widget_destroy(dialog);
272
272 return TRUE; 273 return TRUE;
273 } 274 }
275
274 return FALSE; 276 return FALSE;
275 } 277 }
276 278
277 static void * 279 static void *
278 gaim_gtk_notify_formatted(const char *title, const char *primary, 280 gaim_gtk_notify_formatted(const char *title, const char *primary,