Skip to content

Commit

Permalink
Changes: Display context menu when MANOKWARI_DEBUG is set
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad Anwari committed Aug 11, 2012
1 parent b275dc2 commit 5a86f30
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/panel-desktop-html.vala
Expand Up @@ -18,7 +18,9 @@ public class PanelDesktopHTML: WebView {
settings.enable_file_access_from_file_uris = true;
settings.enable_universal_access_from_file_uris = true;
settings.javascript_can_open_windows_automatically = true;
settings.enable_default_context_menu = false;
if (Environment.get_variable("MANOKWARI_DEBUG") == null) {
settings.enable_default_context_menu = false;
}
set_settings(settings);


Expand Down
5 changes: 4 additions & 1 deletion src/panel-menu-html.vala
Expand Up @@ -29,7 +29,10 @@ public class PanelMenuHTML: WebView {
var settings = new WebSettings();
settings.enable_file_access_from_file_uris = true;
settings.enable_universal_access_from_file_uris = true;
settings.enable_default_context_menu = false;

if (Environment.get_variable("MANOKWARI_DEBUG") == null) {
settings.enable_default_context_menu = false;
}
set_settings(settings);

resource_request_starting.connect((frame, resource, request, response) => {
Expand Down

0 comments on commit 5a86f30

Please sign in to comment.