[Xfce4-commits] <midori:master> Don't shadow web_view in _action_source_view_activate
Christian Dywan
noreply at xfce.org
Wed Jul 27 23:08:03 CEST 2011
Updating branch refs/heads/master
to 32286215d6a524e02e0a8e76adc23ac5008f6a65 (commit)
from 25cdc7161b2122c18cc68906f69b740ba26c4de7 (commit)
commit 32286215d6a524e02e0a8e76adc23ac5008f6a65
Author: Christian Dywan <christian at twotoasts.de>
Date: Wed Jul 27 23:06:44 2011 +0200
Don't shadow web_view in _action_source_view_activate
midori/midori-browser.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index a67fc05..63514e4 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -3394,7 +3394,7 @@ _action_source_view_activate (GtkAction* action,
if (!(text_editor && *text_editor))
{
GtkWidget* source;
- GtkWidget* web_view;
+ GtkWidget* source_view;
gchar* source_uri;
source_uri = g_filename_to_uri (filename, NULL, NULL);
@@ -3402,9 +3402,9 @@ _action_source_view_activate (GtkAction* action,
source = midori_view_new (NULL);
midori_view_set_settings (MIDORI_VIEW (source), browser->settings);
- web_view = midori_view_get_web_view (MIDORI_VIEW (source));
- webkit_web_view_set_view_source_mode (WEBKIT_WEB_VIEW (web_view), TRUE);
- webkit_web_view_load_uri (WEBKIT_WEB_VIEW (web_view), source_uri);
+ source_view = midori_view_get_web_view (MIDORI_VIEW (source));
+ webkit_web_view_set_view_source_mode (WEBKIT_WEB_VIEW (source_view), TRUE);
+ webkit_web_view_load_uri (WEBKIT_WEB_VIEW (source_view), source_uri);
gtk_widget_show (source);
midori_browser_add_tab (browser, source);
}
More information about the Xfce4-commits
mailing list