blob: 78d8fba085c9e46a025588697412887f1a23caf7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
From a08caa02b95db6c9251a5342de0fb985fae8399b Mon Sep 17 00:00:00 2001
From: Christian Dywan <christian@twotoasts.de>
Date: Tue, 08 Dec 2009 22:55:25 +0000
Subject: Retain the visibility of the navigationbar in fullscreen mode
It can be hidden manually, the way it used to be in 0.2.0
---
diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index 92769fd..11ca4aa 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -3604,9 +3604,7 @@ _action_location_focus_out (GtkAction* action,
{
GtkWidget* view = midori_browser_get_current_tab (browser);
- if (!browser->show_navigationbar
- || gdk_window_get_state (GTK_WIDGET (browser)->window)
- & GDK_WINDOW_STATE_FULLSCREEN)
+ if (!browser->show_navigationbar)
gtk_widget_hide (browser->navigationbar);
if (g_object_get_data (G_OBJECT (view), "news-feeds"))
@@ -5148,14 +5146,11 @@ midori_browser_window_state_event_cb (MidoriBrowser* browser,
if (event->new_window_state & GDK_WINDOW_STATE_FULLSCREEN)
{
gtk_widget_hide (browser->menubar);
- gtk_widget_hide (browser->navigationbar);
}
else
{
if (katze_object_get_boolean (browser->settings, "show-menubar"))
gtk_widget_show (browser->menubar);
- if (katze_object_get_boolean (browser->settings, "show-navigationbar"))
- gtk_widget_show (browser->navigationbar);
}
}
}
--
cgit v0.8.2.1
|