pidgin/gtknotify.c

changeset 41947
7b3312d0760c
parent 41720
bcfc2c9e5213
child 41962
f802660eaef2
equal deleted inserted replaced
41946:0fb3b0e7122f 41947:7b3312d0760c
56 } PidginNotifySearchResultsButtonData; 56 } PidginNotifySearchResultsButtonData;
57 57
58 static void pidgin_close_notify(PurpleNotifyType type, void *ui_handle); 58 static void pidgin_close_notify(PurpleNotifyType type, void *ui_handle);
59 59
60 static void 60 static void
61 message_response_cb(GtkDialog *dialog, gint id, GtkWidget *widget) 61 message_response_cb(G_GNUC_UNUSED GtkDialog *dialog, G_GNUC_UNUSED gint id,
62 GtkWidget *widget)
62 { 63 {
63 purple_notify_close(PURPLE_NOTIFY_MESSAGE, widget); 64 purple_notify_close(PURPLE_NOTIFY_MESSAGE, widget);
64 } 65 }
65 66
66 static gboolean 67 static gboolean
67 formatted_close_cb(GtkWidget *win, GdkEvent *event, void *user_data) 68 formatted_close_cb(GtkWidget *win, G_GNUC_UNUSED GdkEvent *event,
69 G_GNUC_UNUSED gpointer user_data)
68 { 70 {
69 purple_notify_close(PURPLE_NOTIFY_FORMATTED, win); 71 purple_notify_close(PURPLE_NOTIFY_FORMATTED, win);
70 return FALSE; 72 return FALSE;
71 } 73 }
72 74
73 static gboolean 75 static gboolean
74 searchresults_close_cb(PidginNotifySearchResultsData *data, GdkEvent *event, gpointer user_data) 76 searchresults_close_cb(PidginNotifySearchResultsData *data,
77 G_GNUC_UNUSED GdkEvent *event,
78 G_GNUC_UNUSED gpointer user_data)
75 { 79 {
76 purple_notify_close(PURPLE_NOTIFY_SEARCHRESULTS, data); 80 purple_notify_close(PURPLE_NOTIFY_SEARCHRESULTS, data);
77 return FALSE; 81 return FALSE;
78 } 82 }
79 83
80 static void 84 static void
81 searchresults_callback_wrapper_cb(GtkWidget *widget, PidginNotifySearchResultsButtonData *bd) 85 searchresults_callback_wrapper_cb(G_GNUC_UNUSED GtkWidget *widget,
86 PidginNotifySearchResultsButtonData *bd)
82 { 87 {
83 PidginNotifySearchResultsData *data = bd->data; 88 PidginNotifySearchResultsData *data = bd->data;
84 89
85 GtkTreeSelection *selection; 90 GtkTreeSelection *selection;
86 GtkTreeModel *model; 91 GtkTreeModel *model;
223 return dialog; 228 return dialog;
224 } 229 }
225 230
226 static gboolean 231 static gboolean
227 formatted_input_cb(GtkWidget *win, guint keyval, G_GNUC_UNUSED guint keycode, 232 formatted_input_cb(GtkWidget *win, guint keyval, G_GNUC_UNUSED guint keycode,
228 G_GNUC_UNUSED GdkModifierType state, gpointer data) 233 G_GNUC_UNUSED GdkModifierType state,
234 G_GNUC_UNUSED gpointer data)
229 { 235 {
230 if (keyval == GDK_KEY_Escape) { 236 if (keyval == GDK_KEY_Escape) {
231 purple_notify_close(PURPLE_NOTIFY_FORMATTED, win); 237 purple_notify_close(PURPLE_NOTIFY_FORMATTED, win);
232 238
233 return TRUE; 239 return TRUE;

mercurial