[glade/gbinding] Use "Unbinding [...]" instead of "Binding [...]" as undo/redo command description when appropiate
- From: Denis Washington <denisw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade/gbinding] Use "Unbinding [...]" instead of "Binding [...]" as undo/redo command description when appropiate
- Date: Sat, 9 Jul 2011 10:32:59 +0000 (UTC)
commit f8d21eab2896258272e941c2505d20cb7f719ddc
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]