Skip to content

Commit

Permalink
Fix indentation, remove trailing whitespace
Browse files Browse the repository at this point in the history
no real changes
  • Loading branch information
paulcor committed Jun 15, 2017
1 parent 8201491 commit 1d3ed51
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/gtk/webview_webkit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ wxgtk_webview_webkit_navigation(WebKitWebView *,
{
const gchar* uri = webkit_network_request_get_uri(request);
wxString target = webkit_web_frame_get_name (frame);

//If m_creating is true then we are the result of a new window
//and so we need to send the event and veto the load
if(webKitCtrl->m_creating)
Expand Down Expand Up @@ -467,12 +467,12 @@ bool wxWebViewWebKit::Create(wxWindow *parent,

g_signal_connect_after(m_web_view, "resource-request-starting",
G_CALLBACK(wxgtk_webview_webkit_resource_req), this);

#if WEBKIT_CHECK_VERSION(1, 10, 0)
g_signal_connect_after(m_web_view, "context-menu",
G_CALLBACK(wxgtk_webview_webkit_context_menu), this);
#endif

g_signal_connect_after(m_web_view, "create-web-view",
G_CALLBACK(wxgtk_webview_webkit_create_webview), this);

Expand Down
10 changes: 5 additions & 5 deletions src/gtk/webview_webkit2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ wxgtk_webview_webkit_navigation(WebKitWebView *web_view,
WebKitURIRequest* request = webkit_navigation_action_get_request(action);
const gchar* uri = webkit_uri_request_get_uri(request);
wxString target = webkit_navigation_policy_decision_get_frame_name(navigation_decision);

//If m_creating is true then we are the result of a new window
//and so we need to send the event and veto the load
if(webKitCtrl->m_creating)
Expand Down Expand Up @@ -983,7 +983,7 @@ bool wxWebViewWebKit::HasSelection() const
G_DBUS_CALL_FLAGS_NONE, -1,
NULL, NULL);
if (retval)
{
{
gboolean has_selection = FALSE;
g_variant_get(retval, "(b)", &has_selection);
g_variant_unref(retval);
Expand All @@ -1010,7 +1010,7 @@ wxString wxWebViewWebKit::GetSelectedText() const
G_DBUS_CALL_FLAGS_NONE, -1,
NULL, NULL);
if (retval)
{
{
char *text;
g_variant_get(retval, "(s)", &text);
g_variant_unref(retval);
Expand All @@ -1031,7 +1031,7 @@ wxString wxWebViewWebKit::GetSelectedSource() const
G_DBUS_CALL_FLAGS_NONE, -1,
NULL, NULL);
if (retval)
{
{
char *source;
g_variant_get(retval, "(s)", &source);
g_variant_unref(retval);
Expand Down Expand Up @@ -1069,7 +1069,7 @@ wxString wxWebViewWebKit::GetPageText() const
G_DBUS_CALL_FLAGS_NONE, -1,
NULL, NULL);
if (retval)
{
{
char *text;
g_variant_get(retval, "(s)", &text);
g_variant_unref(retval);
Expand Down

0 comments on commit 1d3ed51

Please sign in to comment.