patch adds gconf option to hide the "exit fullscreen" button



hello.

there are two reasons to hide that thing:

	(a) the button is just annoying
	(b) the button shows up on all screens (try it with ion wm and see)

so, here's a patch that permits it to be hidden.

thx, lates
diff -uNr epiphany-1.4.0/data/epiphany.schemas.in epiphany-1.4.0.patched/data/epiphany.schemas.in
--- epiphany-1.4.0/data/epiphany.schemas.in	2004-02-19 17:39:04.000000000 -0600
+++ epiphany-1.4.0.patched/data/epiphany.schemas.in	2004-10-06 23:03:32.761427120 -0500
@@ -498,5 +498,16 @@
         <long>Use caret browsing mode.</long>
         </locale>
       </schema>
+      <schema>
+        <key>/schemas/apps/epiphany/general/exit_fullscreen_button</key>
+        <applyto>/apps/epiphany/general/exit_fullscreen_button</applyto>
+        <owner>epiphany</owner>
+        <type>bool</type>
+        <default>true</default>
+        <locale name="C">
+        <short>Display the "Exit Fullscreen" button</short>
+        <long>Display the "Exit Fullscreen" button in the corner of the screen.</long>
+        </locale>
+      </schema>
     </schemalist>
 </gconfschemafile>
diff -uNr epiphany-1.4.0/lib/ephy-prefs.h epiphany-1.4.0.patched/lib/ephy-prefs.h
--- epiphany-1.4.0/lib/ephy-prefs.h	2004-07-19 03:27:06.000000000 -0500
+++ epiphany-1.4.0.patched/lib/ephy-prefs.h	2004-10-06 23:03:32.760427272 -0500
@@ -35,6 +35,7 @@
 #define CONF_INTERFACE_MIDDLE_CLICK_OPEN_URL	"/apps/epiphany/general/middle_click_open_url"
 #define CONF_AUTO_DOWNLOADS			"/apps/epiphany/general/automatic_downloads"
 #define CONF_DESKTOP_IS_HOME_DIR		"/apps/nautilus/preferences/desktop_is_home_dir"
+#define CONF_EXIT_FULLSCREEN_BUTTON		"/apps/epiphany/general/exit_fullscreen_button"
 
 /* Directories */
 #define CONF_STATE_SAVE_DIR		"/apps/epiphany/directories/save"
diff -uNr epiphany-1.4.0/src/ephy-window.c epiphany-1.4.0.patched/src/ephy-window.c
--- epiphany-1.4.0/src/ephy-window.c	2004-08-28 05:19:44.000000000 -0500
+++ epiphany-1.4.0.patched/src/ephy-window.c	2004-10-06 23:03:32.760427272 -0500
@@ -552,7 +552,8 @@
 
 	sync_chromes_visibility (window);
 
-	if (eel_gconf_get_boolean (CONF_LOCKDOWN_FULLSCREEN))
+	if (eel_gconf_get_boolean (CONF_LOCKDOWN_FULLSCREEN)
+		|| !eel_gconf_get_boolean (CONF_EXIT_FULLSCREEN_BUTTON))
 	{
 		/* no need to show "exit fullscreen" button */
 		return;

Attachment: signature.asc
Description: This is a digitally signed message part



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