comparison src/ui_utildlg.c @ 1002:3096a47232ec

Use gpointer instead of void *.
author zas_
date Tue, 26 Aug 2008 22:37:18 +0000
parents a1dcef8cd1ae
children 1646720364cf
comparison
equal deleted inserted replaced
1001:d22e21bfd2a3 1002:3096a47232ec
342 342
343 fdlg = g_new0(FileDialog, 1); 343 fdlg = g_new0(FileDialog, 1);
344 344
345 generic_dialog_setup(GENERIC_DIALOG(fdlg), title, 345 generic_dialog_setup(GENERIC_DIALOG(fdlg), title,
346 wmclass, wmsubclass, parent, FALSE, 346 wmclass, wmsubclass, parent, FALSE,
347 (void *)cancel_cb, data); 347 (gpointer)cancel_cb, data);
348 348
349 return fdlg; 349 return fdlg;
350 } 350 }
351 351
352 GtkWidget *file_dialog_add_button(FileDialog *fdlg, const gchar *stock_id, const gchar *text, 352 GtkWidget *file_dialog_add_button(FileDialog *fdlg, const gchar *stock_id, const gchar *text,
353 void (*func_cb)(FileDialog *, gpointer), gint is_default) 353 void (*func_cb)(FileDialog *, gpointer), gint is_default)
354 { 354 {
355 return generic_dialog_add_button(GENERIC_DIALOG(fdlg), stock_id, text, 355 return generic_dialog_add_button(GENERIC_DIALOG(fdlg), stock_id, text,
356 (void *)func_cb, is_default); 356 (gpointer)func_cb, is_default);
357 } 357 }
358 358
359 static void file_dialog_entry_cb(GtkWidget *widget, gpointer data) 359 static void file_dialog_entry_cb(GtkWidget *widget, gpointer data)
360 { 360 {
361 FileDialog *fdlg = data; 361 FileDialog *fdlg = data;