[glade/gbinding: 29/60] Make "Bind to source..." menu item visible even if the property is bound
- From: Denis Washington <denisw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade/gbinding: 29/60] Make "Bind to source..." menu item visible even if the property is bound
- Date: Tue, 13 Dec 2011 07:01:54 +0000 (UTC)
commit ca79e7bd563099e164538643e303b3a9de7efecd
Author: Denis Washington <denisw src gnome org>
Date: Wed Jun 29 19:10:48 2011 +0200
Make "Bind to source..." menu item visible even if the property is bound
This makes it possible to rebind to another property.
gladeui/glade-popup.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/gladeui/glade-popup.c b/gladeui/glade-popup.c
index 4e79c18..a680224 100644
--- a/gladeui/glade-popup.c
+++ b/gladeui/glade-popup.c
@@ -700,11 +700,12 @@ glade_popup_property_pop (GladeProperty * property, GdkEventButton * event)
popup_menu = gtk_menu_new ();
if (glade_property_get_binding_source (property))
- glade_popup_append_item (popup_menu, 0, _("Unbind"),
- NULL, TRUE, glade_popup_unbind_property_cb, property);
- else
- glade_popup_append_item (popup_menu, 0, _("Bind to source..."),
- NULL, TRUE, glade_popup_bind_property_cb, property);
+ glade_popup_append_item (popup_menu, 0, _("Unbind"),
+ NULL, TRUE, glade_popup_unbind_property_cb,
+ property);
+
+ glade_popup_append_item (popup_menu, 0, _("Bind to source..."),
+ NULL, TRUE, glade_popup_bind_property_cb, property);
glade_popup_append_item (popup_menu, GTK_STOCK_CLEAR, _("Set default value"),
NULL, glade_property_get_binding_source (property) == NULL,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]