[totem] main: Don't hide the custom-title in search mode
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] main: Don't hide the custom-title in search mode
- Date: Sat, 15 Feb 2014 15:03:44 +0000 (UTC)
commit 2e1cdd62ec097e6a52591f3a7c41843300a0c8d7
Author: Bastien Nocera <hadess hadess net>
Date: Sat Feb 15 15:56:09 2014 +0100
main: Don't hide the custom-title in search mode
If we don't have a search title to set just yet. We'll use that
to show the depressed source buttons instead.
https://bugzilla.gnome.org/show_bug.cgi?id=723823
src/totem-main-toolbar.c | 18 +++++++++++-------
1 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/src/totem-main-toolbar.c b/src/totem-main-toolbar.c
index 07e3da8..ffba46b 100644
--- a/src/totem-main-toolbar.c
+++ b/src/totem-main-toolbar.c
@@ -147,16 +147,20 @@ update_toolbar_state (TotemMainToolbar *bar)
}
else if (priv->search_mode)
{
- char *label;
-
- gtk_stack_set_visible_child_name (GTK_STACK (priv->stack), SEARCH_RESULTS_PAGE);
if (!priv->search_string || *priv->search_string == '\0')
- label = g_strdup ("");
+ {
+ gtk_stack_set_visible_child_name (GTK_STACK (priv->stack), CUSTOM_TITLE_PAGE);
+ }
else
- label = g_strdup_printf (_("Results for ā%sā"), priv->search_string);
+ {
+ char *label;
+
+ gtk_stack_set_visible_child_name (GTK_STACK (priv->stack), SEARCH_RESULTS_PAGE);
+ label = g_strdup_printf (_("Results for ā%sā"), priv->search_string);
- gtk_label_set_label (GTK_LABEL (priv->search_results_label), label);
- g_free (label);
+ gtk_label_set_label (GTK_LABEL (priv->search_results_label), label);
+ g_free (label);
+ }
if (priv->show_select_button)
gtk_widget_show (priv->select_button);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]