Mercurial > pidgin
comparison src/gtkaccount.c @ 14141:5f656a0a82b7
[gaim-migrate @ 16783]
Whitespace and warning fixes:
gtkaccount.c: In function ¡Æicon_select_cb¡Ç:
gtkaccount.c:289: warning: passing argument 1 of
¡Ægaim_gtk_buddy_icon_chooser_new¡Ç from incompatible pointer type
gtkaccount.c:289: warning: passing argument 2 of
¡Ægaim_gtk_buddy_icon_chooser_new¡Ç from incompatible pointer type
gtkstatusbox.c: In function ¡Æicon_box_press_cb¡Ç:
gtkstatusbox.c:951: warning: passing argument 2 of
¡Ægaim_gtk_buddy_icon_chooser_new¡Ç from incompatible pointer type
gtkstatusbox.c:951: warning: ISO C90 forbids mixed declarations and code
gtkstatusbox.c: In function ¡Æicon_box_enter_cb¡Ç:
gtkstatusbox.c:960: warning: passing argument 1 of ¡Ægtk_image_set_from_pixbuf¡Ç
from incompatible pointer type
gtkstatusbox.c: In function ¡Æicon_box_leave_cb¡Ç:
gtkstatusbox.c:968: warning: passing argument 1 of ¡Ægtk_image_set_from_pixbuf¡Ç
from incompatible pointer type
gtkstatusbox.c: In function ¡Ægtk_gaim_status_box_size_allocate¡Ç:
gtkstatusbox.c:1183: warning: passing argument 1 of ¡Ægtk_image_set_from_pixbuf¡Ç
from incompatible pointer type
gtkstatusbox.c: In function ¡Ægtk_gaim_status_box_set_buddy_icon¡Ç:
gtkstatusbox.c:1338: warning: passing argument 1 of ¡Ægtk_image_set_from_pixbuf¡Ç
from incompatible pointer type
gtkutils.c: In function ¡Ægaim_gtk_convert_buddy_icon¡Ç:
gtkutils.c:2463: warning: ISO C90 forbids mixed declarations and code
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 16 Aug 2006 06:31:59 +0000 |
parents | 31d33e7bc0e6 |
children | 2a7b126c28b8 |
comparison
equal
deleted
inserted
replaced
14140:ee80f766b7e3 | 14141:5f656a0a82b7 |
---|---|
269 *gtk_entry_get_text(entry) != '\0'); | 269 *gtk_entry_get_text(entry) != '\0'); |
270 } | 270 } |
271 } | 271 } |
272 | 272 |
273 static void | 273 static void |
274 icon_filesel_choose_cb(const char *filename, AccountPrefsDialog *dialog) | 274 icon_filesel_choose_cb(const char *filename, gpointer data) |
275 { | 275 { |
276 AccountPrefsDialog *dialog; | |
277 | |
278 dialog = data; | |
279 | |
276 if (filename) { | 280 if (filename) { |
277 g_free(dialog->icon_path); | 281 g_free(dialog->icon_path); |
278 dialog->icon_path = gaim_gtk_convert_buddy_icon(dialog->plugin, filename); | 282 dialog->icon_path = gaim_gtk_convert_buddy_icon(dialog->plugin, filename); |
279 set_dialog_icon(dialog); | 283 set_dialog_icon(dialog); |
280 gtk_widget_show(dialog->icon_entry); | 284 gtk_widget_show(dialog->icon_entry); |
281 } | 285 } |
282 | 286 |
283 dialog->icon_filesel = NULL; | 287 dialog->icon_filesel = NULL; |
284 } | 288 } |
285 | 289 |
286 static void | 290 static void |
287 icon_select_cb(GtkWidget *button, AccountPrefsDialog *dialog) | 291 icon_select_cb(GtkWidget *button, AccountPrefsDialog *dialog) |
288 { | 292 { |
289 dialog->icon_filesel = gaim_gtk_buddy_icon_chooser_new(dialog->window, icon_filesel_choose_cb, dialog); | 293 dialog->icon_filesel = gaim_gtk_buddy_icon_chooser_new(GTK_WINDOW(dialog->window), icon_filesel_choose_cb, dialog); |
290 gtk_widget_show_all(dialog->icon_filesel); | 294 gtk_widget_show_all(dialog->icon_filesel); |
291 } | 295 } |
292 | 296 |
293 static void | 297 static void |
294 icon_reset_cb(GtkWidget *button, AccountPrefsDialog *dialog) | 298 icon_reset_cb(GtkWidget *button, AccountPrefsDialog *dialog) |