aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <descalante@igalia.com>2010-02-16 14:10:06 +0800
committerDiego Escalante Urrelo <descalante@igalia.com>2010-02-17 02:14:39 +0800
commit4f5d35180aa54b87e4bd9298a6e80eba0967ba59 (patch)
treea01ddda8a11256dc064856b280077ce3a1f30567
parent0970e4f5a661e2b281431f1f960a508b90e2f61e (diff)
downloadgsoc2013-epiphany-4f5d35180aa54b87e4bd9298a6e80eba0967ba59.tar
gsoc2013-epiphany-4f5d35180aa54b87e4bd9298a6e80eba0967ba59.tar.gz
gsoc2013-epiphany-4f5d35180aa54b87e4bd9298a6e80eba0967ba59.tar.bz2
gsoc2013-epiphany-4f5d35180aa54b87e4bd9298a6e80eba0967ba59.tar.lz
gsoc2013-epiphany-4f5d35180aa54b87e4bd9298a6e80eba0967ba59.tar.xz
gsoc2013-epiphany-4f5d35180aa54b87e4bd9298a6e80eba0967ba59.tar.zst
gsoc2013-epiphany-4f5d35180aa54b87e4bd9298a6e80eba0967ba59.zip
Random formatting fixes
Too wide comments, some indentation.
-rw-r--r--embed/ephy-web-view.c28
-rw-r--r--src/ephy-notebook.c9
-rw-r--r--src/ephy-window.c5
3 files changed, 22 insertions, 20 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index bc321549b..4de5938a1 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -503,31 +503,31 @@ ephy_web_view_file_monitor_cancel (EphyWebView *view)
static gboolean
ephy_web_view_key_press_event (GtkWidget *widget, GdkEventKey *event)
{
- EphyWebView *web_view = EPHY_WEB_VIEW (widget);
- gboolean key_handled = FALSE;
+ EphyWebView *web_view = EPHY_WEB_VIEW (widget);
+ gboolean key_handled = FALSE;
- key_handled = GTK_WIDGET_CLASS (ephy_web_view_parent_class)->key_press_event (widget, event);
+ key_handled = GTK_WIDGET_CLASS (ephy_web_view_parent_class)->key_press_event (widget, event);
- if (key_handled)
- return TRUE;
+ if (key_handled)
+ return TRUE;
- g_signal_emit_by_name (web_view, "search-key-press", event, &key_handled);
+ g_signal_emit_by_name (web_view, "search-key-press", event, &key_handled);
- return key_handled;
+ return key_handled;
}
static gboolean
ephy_web_view_button_press_event (GtkWidget *widget, GdkEventButton *event)
{
- /* We always show the browser context menu on control-rightclick */
- if (event->button == 3 && event->state & GDK_CONTROL_MASK)
- return FALSE;
+ /* We always show the browser context menu on control-rightclick */
+ if (event->button == 3 && event->state & GDK_CONTROL_MASK)
+ return FALSE;
- /* We use this for downloading */
- if (event->button == 1 && event->state & GDK_SHIFT_MASK)
- return FALSE;
+ /* We use this for downloading */
+ if (event->button == 1 && event->state & GDK_SHIFT_MASK)
+ return FALSE;
- return GTK_WIDGET_CLASS (ephy_web_view_parent_class)->button_press_event (widget, event);
+ return GTK_WIDGET_CLASS (ephy_web_view_parent_class)->button_press_event (widget, event);
}
static void
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c
index 401f15609..ee481fa4a 100644
--- a/src/ephy-notebook.c
+++ b/src/ephy-notebook.c
@@ -309,17 +309,18 @@ button_press_cb (EphyNotebook *notebook,
if (event->type == GDK_BUTTON_PRESS &&
event->button == 3 &&
- (event->state & gtk_accelerator_get_default_mod_mask ()) == 0)
+ (event->state & gtk_accelerator_get_default_mod_mask ()) == 0)
{
if (tab_clicked == -1)
{
- /* consume event, so that we don't pop up the context menu when
- * the mouse if not over a tab label
+ /* Consume event so that we don't pop up the context
+ * menu when the mouse is not over a tab label.
*/
return TRUE;
}
- /* switch to the page the mouse is over, but don't consume the event */
+ /* Switch to the page where the mouse is over, but don't consume the
+ * event. */
gtk_notebook_set_current_page (GTK_NOTEBOOK (notebook), tab_clicked);
}
diff --git a/src/ephy-window.c b/src/ephy-window.c
index a68d4eacc..bc42ff3c3 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2323,8 +2323,9 @@ ephy_window_dom_mouse_click_cb (WebKitWebView *view,
{
/* See bug #133633 for why we do it this way */
- /* We need to make sure we know if the embed is destroyed between
- * requesting the clipboard contents, and receiving them.
+ /* We need to make sure we know if the embed is destroyed
+ * between requesting the clipboard contents, and receiving
+ * them.
*/
ClipboardTextCBData *cb_data;
EphyEmbed *embed;