[recipes] Improve window title handling



commit 16c3b54facb6fd28de219de1db724b50636548c1
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Feb 12 11:18:47 2017 -0500

    Improve window title handling
    
    Make sure that we set proper window titles for the main pages too.

 src/gr-window.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gr-window.c b/src/gr-window.c
index 00438b5..84cf323 100644
--- a/src/gr-window.c
+++ b/src/gr-window.c
@@ -259,6 +259,7 @@ visible_page_changed (GrWindow *window)
                 g_signal_handlers_block_by_func (window->search_bar, search_changed, window);
                 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (window->search_button), FALSE);
                 g_signal_handlers_unblock_by_func (window->search_bar, search_changed, window);
+                gtk_header_bar_set_title (GTK_HEADER_BAR (window->header), _("Recipes"));
         }
         if (strcmp (visible, "list") == 0) {
                 gr_list_page_repopulate (GR_LIST_PAGE (window->list_page));
@@ -270,11 +271,13 @@ visible_page_changed (GrWindow *window)
         if (strcmp (visible, "recipes") == 0) {
                 gr_recipes_page_refresh (GR_RECIPES_PAGE (window->recipes_page));
                 gr_recipes_page_unexpand (GR_RECIPES_PAGE (window->recipes_page));
+                gtk_header_bar_set_title (GTK_HEADER_BAR (window->header), _("Recipes"));
         }
 
         if (strcmp (visible, "cuisines") == 0) {
                 gr_cuisines_page_refresh (GR_CUISINES_PAGE (window->cuisines_page));
                 gr_cuisines_page_unexpand (GR_CUISINES_PAGE (window->cuisines_page));
+                gtk_header_bar_set_title (GTK_HEADER_BAR (window->header), _("Cuisines"));
         }
 }
 


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