aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorJonathan Tellier <jonathan.tellier@gmail.com>2009-08-28 22:45:54 +0800
committerjtellier <jonathan.tellier@collabora.co.uk>2009-08-29 02:27:43 +0800
commitcb75a2c77a35fbf7ace246d5c45d7ecda8ae8ab1 (patch)
treeca87c4a6821cddeedb3ee1196189b0fe50ce398d /libempathy-gtk
parent8a6993197695c0b8448754d5389811a6d72e0009 (diff)
downloadgsoc2013-empathy-cb75a2c77a35fbf7ace246d5c45d7ecda8ae8ab1.tar
gsoc2013-empathy-cb75a2c77a35fbf7ace246d5c45d7ecda8ae8ab1.tar.gz
gsoc2013-empathy-cb75a2c77a35fbf7ace246d5c45d7ecda8ae8ab1.tar.bz2
gsoc2013-empathy-cb75a2c77a35fbf7ace246d5c45d7ecda8ae8ab1.tar.lz
gsoc2013-empathy-cb75a2c77a35fbf7ace246d5c45d7ecda8ae8ab1.tar.xz
gsoc2013-empathy-cb75a2c77a35fbf7ace246d5c45d7ecda8ae8ab1.tar.zst
gsoc2013-empathy-cb75a2c77a35fbf7ace246d5c45d7ecda8ae8ab1.zip
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.
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-ui-utils.c28
-rw-r--r--libempathy-gtk/empathy-ui-utils.h6
2 files changed, 0 insertions, 34 deletions
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__ */