From df2052eaa5587b1b5b45a16b8da02bb7158750ff Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Wed, 6 Jun 2007 21:27:06 +0000 Subject: Fix response and action buttons. 2007-06-06 Xavier Claessens * libempathy-gtk/empathy-contact-dialogs.glade: * libempathy-gtk/empathy-contact-dialogs.c: Fix response and action buttons. svn path=/trunk/; revision=129 --- ChangeLog | 6 +++ libempathy-gtk/empathy-contact-dialogs.c | 5 +- libempathy-gtk/empathy-contact-dialogs.glade | 70 ++-------------------------- 3 files changed, 14 insertions(+), 67 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8d91a13d5..3b886782a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-06-06 Xavier Claessens + + * libempathy-gtk/empathy-contact-dialogs.glade: + * libempathy-gtk/empathy-contact-dialogs.c: Fix response and action + buttons. + 2007-06-06 Xavier Claessens * libempathy-gtk/empathy-contact-dialogs.glade: diff --git a/libempathy-gtk/empathy-contact-dialogs.c b/libempathy-gtk/empathy-contact-dialogs.c index 8f377d02d..e38eb84d1 100644 --- a/libempathy-gtk/empathy-contact-dialogs.c +++ b/libempathy-gtk/empathy-contact-dialogs.c @@ -131,7 +131,10 @@ contact_information_response_cb (GtkDialog *dialog, GossipContact *contact; contact = empathy_contact_widget_get_contact (contact_widget); - empathy_contact_widget_save (contact_widget); + + if (response == GTK_RESPONSE_OK) { + empathy_contact_widget_save (contact_widget); + } g_hash_table_remove (information_dialogs, contact); } diff --git a/libempathy-gtk/empathy-contact-dialogs.glade b/libempathy-gtk/empathy-contact-dialogs.glade index 475844267..f8a441057 100644 --- a/libempathy-gtk/empathy-contact-dialogs.glade +++ b/libempathy-gtk/empathy-contact-dialogs.glade @@ -49,73 +49,11 @@ True True True + gtk-no + True GTK_RELIEF_NORMAL True -9 - - - - True - 0.5 - 0.5 - 0 - 0 - 0 - 0 - 0 - 0 - - - - True - False - 2 - - - - True - gtk-no - 4 - 0.5 - 0.5 - 0 - 0 - - - 0 - False - False - - - - - - True - _Deny - True - False - GTK_JUSTIFY_LEFT - False - False - 0.5 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 0 - False - False - - - - - - @@ -125,11 +63,11 @@ True True True - gtk-cancel + gtk-yes True GTK_RELIEF_NORMAL True - -6 + -8 -- cgit v1.2.3