[evince] window-title: Set the window title for empty window
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] window-title: Set the window title for empty window
- Date: Sun, 23 Feb 2014 17:58:24 +0000 (UTC)
commit 98b7e4e9f36d8f49a481b5def4377548513929e6
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Sun Feb 23 18:55:23 2014 +0100
window-title: Set the window title for empty window
This ensures that not only the window has title, but that the title is
exposed to accessibility. Based on patch by Robert Roth.
https://bugzilla.gnome.org/show_bug.cgi?id=653748
shell/ev-window-title.c | 26 ++++++++++++++------------
1 files changed, 14 insertions(+), 12 deletions(-)
---
diff --git a/shell/ev-window-title.c b/shell/ev-window-title.c
index 0bfe053..540a3a1 100644
--- a/shell/ev-window-title.c
+++ b/shell/ev-window-title.c
@@ -56,18 +56,6 @@ static const BadTitleEntry bad_prefixes[] = {
{ EV_BACKEND_PDF, "Microsoft PowerPoint - " }
};
-EvWindowTitle *
-ev_window_title_new (EvWindow *window)
-{
- EvWindowTitle *window_title;
-
- window_title = g_new0 (EvWindowTitle, 1);
- window_title->window = window;
- window_title->type = EV_WINDOW_TITLE_DOCUMENT;
-
- return window_title;
-}
-
static char *
get_filename_from_uri (const char *uri)
{
@@ -175,6 +163,20 @@ ev_window_title_update (EvWindowTitle *window_title)
g_free (title);
}
+EvWindowTitle *
+ev_window_title_new (EvWindow *window)
+{
+ EvWindowTitle *window_title;
+
+ window_title = g_new0 (EvWindowTitle, 1);
+ window_title->window = window;
+ window_title->type = EV_WINDOW_TITLE_DOCUMENT;
+
+ ev_window_title_update (window_title);
+
+ return window_title;
+}
+
void
ev_window_title_set_type (EvWindowTitle *window_title, EvWindowTitleType type)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]