aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-06-07 05:27:06 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-06-07 05:27:06 +0800
commitdf2052eaa5587b1b5b45a16b8da02bb7158750ff (patch)
tree15532d555481bd7e5fb0f039363bb2b788c94246 /libempathy-gtk
parenta3a321f7e30e09c0adce157d3894642bad32e42c (diff)
downloadgsoc2013-empathy-df2052eaa5587b1b5b45a16b8da02bb7158750ff.tar
gsoc2013-empathy-df2052eaa5587b1b5b45a16b8da02bb7158750ff.tar.gz
gsoc2013-empathy-df2052eaa5587b1b5b45a16b8da02bb7158750ff.tar.bz2
gsoc2013-empathy-df2052eaa5587b1b5b45a16b8da02bb7158750ff.tar.lz
gsoc2013-empathy-df2052eaa5587b1b5b45a16b8da02bb7158750ff.tar.xz
gsoc2013-empathy-df2052eaa5587b1b5b45a16b8da02bb7158750ff.tar.zst
gsoc2013-empathy-df2052eaa5587b1b5b45a16b8da02bb7158750ff.zip
Fix response and action buttons.
2007-06-06 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/empathy-contact-dialogs.glade: * libempathy-gtk/empathy-contact-dialogs.c: Fix response and action buttons. svn path=/trunk/; revision=129
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-contact-dialogs.c5
-rw-r--r--libempathy-gtk/empathy-contact-dialogs.glade70
2 files changed, 8 insertions, 67 deletions
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 @@
<property name="visible">True</property>
<property name="can_default">True</property>
<property name="can_focus">True</property>
+ <property name="label">gtk-no</property>
+ <property name="use_stock">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="response_id">-9</property>
-
- <child>
- <widget class="GtkAlignment" id="alignment3">
- <property name="visible">True</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xscale">0</property>
- <property name="yscale">0</property>
- <property name="top_padding">0</property>
- <property name="bottom_padding">0</property>
- <property name="left_padding">0</property>
- <property name="right_padding">0</property>
-
- <child>
- <widget class="GtkHBox" id="hbox48">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">2</property>
-
- <child>
- <widget class="GtkImage" id="image8">
- <property name="visible">True</property>
- <property name="stock">gtk-no</property>
- <property name="icon_size">4</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label218">
- <property name="visible">True</property>
- <property name="label" translatable="yes">_Deny</property>
- <property name="use_underline">True</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- </child>
</widget>
</child>
@@ -125,11 +63,11 @@
<property name="can_default">True</property>
<property name="has_default">True</property>
<property name="can_focus">True</property>
- <property name="label">gtk-cancel</property>
+ <property name="label">gtk-yes</property>
<property name="use_stock">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
- <property name="response_id">-6</property>
+ <property name="response_id">-8</property>
</widget>
</child>
</widget>