[glade/gbinding] 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] Make "Bind to source..." menu item visible even if the property is bound
- Date: Fri, 1 Jul 2011 19:22:41 +0000 (UTC)
commit 758ca0a97bb225629e117ef197a928b89e2cafbb
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]