From 8085832c76f15fa6414c602d6aa472c2d10e05ec Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Fri, 9 Jan 2009 12:49:27 +0000 Subject: [PATCH] Add proper window title to ModestHeaderWindow pmo-trunk-r7090 --- src/hildon2/modest-header-window.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/hildon2/modest-header-window.c b/src/hildon2/modest-header-window.c index d523dfb..739f7a1 100644 --- a/src/hildon2/modest-header-window.c +++ b/src/hildon2/modest-header-window.c @@ -50,6 +50,7 @@ #include #include #include +#include typedef enum { CONTENTS_STATE_NONE = 0, @@ -422,6 +423,15 @@ modest_header_window_new (TnyFolder *folder) g_object_unref (window_icon); } + /* Set window title */ + if (TNY_IS_FOLDER (folder)) { + gchar *folder_name; + + folder_name = modest_tny_folder_get_display_name (folder); + gtk_window_set_title (GTK_WINDOW (self), folder_name); + g_free (folder_name); + } + /* Listen for changes in the screen, we don't want to show a led pattern when the display is on for example */ osso_hw_set_display_event_cb (modest_maemo_utils_get_osso_context (), -- 1.7.9.5