diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-12-12 20:00:49 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-12-14 20:26:53 +0800 |
commit | c7524e25332d8f87115255fb8611b124e4aea4f6 (patch) | |
tree | 418460a6fbc7651769780d714ff1e955a620829d /libempathy-gtk | |
parent | 6fce69d7080341d3064850ceaab52eec531c5e6a (diff) | |
download | gsoc2013-empathy-c7524e25332d8f87115255fb8611b124e4aea4f6.tar gsoc2013-empathy-c7524e25332d8f87115255fb8611b124e4aea4f6.tar.gz gsoc2013-empathy-c7524e25332d8f87115255fb8611b124e4aea4f6.tar.bz2 gsoc2013-empathy-c7524e25332d8f87115255fb8611b124e4aea4f6.tar.lz gsoc2013-empathy-c7524e25332d8f87115255fb8611b124e4aea4f6.tar.xz gsoc2013-empathy-c7524e25332d8f87115255fb8611b124e4aea4f6.tar.zst gsoc2013-empathy-c7524e25332d8f87115255fb8611b124e4aea4f6.zip |
remove unused empathy_contact_edit_dialog_show()
https://bugzilla.gnome.org/show_bug.cgi?id=660547
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-contact-dialogs.c | 60 | ||||
-rw-r--r-- | libempathy-gtk/empathy-contact-dialogs.h | 2 |
2 files changed, 0 insertions, 62 deletions
diff --git a/libempathy-gtk/empathy-contact-dialogs.c b/libempathy-gtk/empathy-contact-dialogs.c index 1c56a868e..4699fba77 100644 --- a/libempathy-gtk/empathy-contact-dialogs.c +++ b/libempathy-gtk/empathy-contact-dialogs.c @@ -39,7 +39,6 @@ static GList *subscription_dialogs = NULL; static GList *information_dialogs = NULL; -static GList *edit_dialogs = NULL; static GtkWidget *personal_dialog = NULL; static GtkWidget *new_contact_dialog = NULL; @@ -263,65 +262,6 @@ empathy_contact_information_dialog_show (EmpathyContact *contact, } void -empathy_contact_edit_dialog_show (EmpathyContact *contact, - GtkWindow *parent) -{ - GtkWidget *dialog; - GtkWidget *button; - GtkWidget *contact_widget; - GList *l; - - g_return_if_fail (EMPATHY_IS_CONTACT (contact)); - - l = g_list_find_custom (edit_dialogs, - contact, - (GCompareFunc) contact_dialogs_find); - if (l) { - gtk_window_present (GTK_WINDOW (l->data)); - return; - } - - /* Create dialog */ - dialog = gtk_dialog_new (); - gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE); - gtk_window_set_title (GTK_WINDOW (dialog), _("Edit Contact Information")); - - /* Close button */ - button = gtk_button_new_with_label (GTK_STOCK_CLOSE); - gtk_button_set_use_stock (GTK_BUTTON (button), TRUE); - gtk_dialog_add_action_widget (GTK_DIALOG (dialog), - button, - GTK_RESPONSE_CLOSE); - gtk_widget_set_can_default (button, TRUE); - gtk_window_set_default (GTK_WINDOW (dialog), button); - gtk_widget_show (button); - - /* Contact info widget */ - contact_widget = empathy_contact_widget_new (contact, - EMPATHY_CONTACT_WIDGET_EDIT_ALIAS | - EMPATHY_CONTACT_WIDGET_EDIT_GROUPS | - EMPATHY_CONTACT_WIDGET_EDIT_FAVOURITE); - gtk_container_set_border_width (GTK_CONTAINER (contact_widget), 8); - gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), - contact_widget, - TRUE, TRUE, 0); - gtk_widget_show (contact_widget); - - g_object_set_data (G_OBJECT (dialog), "contact_widget", contact_widget); - edit_dialogs = g_list_prepend (edit_dialogs, dialog); - - g_signal_connect (dialog, "response", - G_CALLBACK (contact_dialogs_response_cb), - &edit_dialogs); - - if (parent) { - gtk_window_set_transient_for (GTK_WINDOW (dialog), parent); - } - - gtk_widget_show (dialog); -} - -void empathy_contact_personal_dialog_show (GtkWindow *parent) { GtkWidget *button; diff --git a/libempathy-gtk/empathy-contact-dialogs.h b/libempathy-gtk/empathy-contact-dialogs.h index 5dbb77650..fff0fff88 100644 --- a/libempathy-gtk/empathy-contact-dialogs.h +++ b/libempathy-gtk/empathy-contact-dialogs.h @@ -33,8 +33,6 @@ void empathy_subscription_dialog_show (EmpathyContact *contact, GtkWindow *parent); void empathy_contact_information_dialog_show (EmpathyContact *contact, GtkWindow *parent); -void empathy_contact_edit_dialog_show (EmpathyContact *contact, - GtkWindow *parent); void empathy_contact_personal_dialog_show (GtkWindow *parent); void empathy_new_contact_dialog_show (GtkWindow *parent); void empathy_new_contact_dialog_show_with_contact (GtkWindow *parent, |