Mercurial > pidgin
comparison pidgin/gtkdialogs.c @ 32687:d6b0dc1fe13b
Fix calls to GTK_WIDGET_SET_FLAGS, which oddly enough does not seem to
be deprecated even though the underlying GTK_OBJECT_FLAGS is.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sun, 09 Oct 2011 03:35:22 +0000 |
parents | 457443ca22e0 |
children | 763d65f3f758 |
comparison
equal
deleted
inserted
replaced
32686:3538e783b98c | 32687:d6b0dc1fe13b |
---|---|
460 webkit_web_view_move_cursor(WEBKIT_WEB_VIEW(webview), GTK_MOVEMENT_BUFFER_ENDS, -1); | 460 webkit_web_view_move_cursor(WEBKIT_WEB_VIEW(webview), GTK_MOVEMENT_BUFFER_ENDS, -1); |
461 | 461 |
462 button = pidgin_dialog_add_button(GTK_DIALOG(win), GTK_STOCK_CLOSE, | 462 button = pidgin_dialog_add_button(GTK_DIALOG(win), GTK_STOCK_CLOSE, |
463 G_CALLBACK(destroy_win), win); | 463 G_CALLBACK(destroy_win), win); |
464 | 464 |
465 #if GTK_CHECK_VERSION(2,18,0) | |
466 gtk_widget_set_can_default(button, TRUE); | |
467 #else | |
465 GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); | 468 GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); |
469 #endif | |
466 gtk_widget_grab_default(button); | 470 gtk_widget_grab_default(button); |
467 | 471 |
468 gtk_widget_show_all(win); | 472 gtk_widget_show_all(win); |
469 gtk_window_present(GTK_WINDOW(win)); | 473 gtk_window_present(GTK_WINDOW(win)); |
470 | 474 |