[gnome-builder/editor-layout] command-bar: Make sure any old text is cleared when showing



commit e70bdef21e087e378c2cb9bf33c2bacf21ba4f3d
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Nov 24 15:30:46 2014 +0100

    command-bar: Make sure any old text is cleared when showing
    
    https://bugzilla.gnome.org/show_bug.cgi?id=740629

 src/commands/gb-command-bar.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/commands/gb-command-bar.c b/src/commands/gb-command-bar.c
index 07c3bec..cdf7734 100644
--- a/src/commands/gb-command-bar.c
+++ b/src/commands/gb-command-bar.c
@@ -67,6 +67,7 @@ gb_command_bar_show (GbCommandBar *bar)
   g_return_if_fail (GB_IS_COMMAND_BAR (bar));
 
   gtk_revealer_set_reveal_child (GTK_REVEALER (bar), TRUE);
+  gtk_entry_set_text (bar->priv->entry, "");
   gtk_widget_grab_focus (GTK_WIDGET (bar->priv->entry));
 }
 


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