[glade/gbinding: 33/60] Use "Unbinding [...]" instead of "Binding [...]" as undo/redo command description when appropiate



commit ef6c1af34b01989ffc1fda3aef4d5812317b178b
Author: Denis Washington <denisw src gnome org>
Date:   Sat Jul 9 12:26:26 2011 +0200

    Use "Unbinding [...]" instead of "Binding [...]" as undo/redo command description when appropiate

 gladeui/glade-command.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gladeui/glade-command.c b/gladeui/glade-command.c
index ebf263a..9bb4685 100644
--- a/gladeui/glade-command.c
+++ b/gladeui/glade-command.c
@@ -899,10 +899,13 @@ glade_command_bind_property (GladeProperty * target, GladeProperty * source)
   cmd = GLADE_COMMAND (me);
   cmd->priv->project =
     glade_widget_get_project (glade_property_get_widget (me->target));
+
   cmd->priv->description =
-      g_strdup_printf (_("Binding property \"%s\" of %s"),
-                       glade_property_class_id (glade_property_get_class (target)),
-                       glade_widget_get_name (glade_property_get_widget (target)));
+    g_strdup_printf ((source != NULL)
+                     ? _("Binding property \"%s\" of %s")
+                     : _("Unbinding property \"%s\" of %s"),
+                     glade_property_class_id (glade_property_get_class (target)),
+                     glade_widget_get_name (glade_property_get_widget (target)));
 
   glade_command_check_group (GLADE_COMMAND (me));
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]