From cb75a2c77a35fbf7ace246d5c45d7ecda8ae8ab1 Mon Sep 17 00:00:00 2001 From: Jonathan Tellier Date: Fri, 28 Aug 2009 10:45:54 -0400 Subject: Improved confirmation dialog shown to the user before discarding changes - Split the confirmation dialog's text into a primary and secondary section. - Changed the button label to "Cancel" and "Discard" instead of "Yes" and "No". - Added a accounts_dialog_show_question_dialog() function to show question dialogs related to the accounts dialog and connect to its "response" signal. - Removed the empathy_show_yes_no_question_dialog() function since it was added for this specific patch but is no longer used. --- libempathy-gtk/empathy-ui-utils.c | 28 ---------------------------- libempathy-gtk/empathy-ui-utils.h | 6 ------ 2 files changed, 34 deletions(-) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c index e7b8fce74..3089c46ea 100644 --- a/libempathy-gtk/empathy-ui-utils.c +++ b/libempathy-gtk/empathy-ui-utils.c @@ -1551,31 +1551,3 @@ empathy_receive_file_with_file_chooser (EmpathyFTHandler *handler) gtk_widget_show (widget); } - -/** empathy_show_yes_no_question_dialog: - * @parent: The parent of the message dialog - * @message: The question message - * @response_callback: The callback connected to the "response" signal of - * the message dialog. - * @user_data: User data to pass to the @response_callback. - * - * A simple utility function to create a modal yes/no question message dialog - * and hooking to its "response" signal. - */ -void empathy_show_yes_no_question_dialog (GtkWindow *parent, - gchar *message, - GCallback response_callback, - gpointer user_data) -{ - GtkWidget *message_dialog; - - message_dialog = gtk_message_dialog_new (parent, - GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_QUESTION, - GTK_BUTTONS_YES_NO, - message); - - g_signal_connect (message_dialog, "response", response_callback, user_data); - - gtk_widget_show (message_dialog); -} diff --git a/libempathy-gtk/empathy-ui-utils.h b/libempathy-gtk/empathy-ui-utils.h index 2d54f987c..39baeaf41 100644 --- a/libempathy-gtk/empathy-ui-utils.h +++ b/libempathy-gtk/empathy-ui-utils.h @@ -113,12 +113,6 @@ gchar * empathy_make_absolute_url (const gchar *url); gchar * empathy_make_absolute_url_len (const gchar *url, guint len); -/* Message Dialogs */ -void empathy_show_yes_no_question_dialog (GtkWindow *parent, - gchar *message, - GCallback response_callback, - gpointer user_data); - G_END_DECLS #endif /* __EMPATHY_UI_UTILS_H__ */ -- cgit v1.2.3