[epiphany-extensions] ephy-auto-scroller: small cleanups
- From: Xan Lopez <xan src gnome org>
- To: svn-commits-list gnome org
- Subject: [epiphany-extensions] ephy-auto-scroller: small cleanups
- Date: Thu, 23 Jul 2009 06:09:43 +0000 (UTC)
commit 6ba648582bb9639c7e982bd69791d051e9240697
Author: Xan Lopez <xan gnome org>
Date: Thu Jul 23 09:09:25 2009 +0300
ephy-auto-scroller: small cleanups
.../auto-scroller/ephy-auto-scroller-extension.c | 13 +++++------
extensions/auto-scroller/ephy-auto-scroller.c | 21 +++++++++----------
2 files changed, 16 insertions(+), 18 deletions(-)
---
diff --git a/extensions/auto-scroller/ephy-auto-scroller-extension.c b/extensions/auto-scroller/ephy-auto-scroller-extension.c
index fb283ba..188cc44 100644
--- a/extensions/auto-scroller/ephy-auto-scroller-extension.c
+++ b/extensions/auto-scroller/ephy-auto-scroller-extension.c
@@ -17,7 +17,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
- * $Id$
*/
#include "config.h"
@@ -70,7 +69,7 @@ dom_mouse_down_cb (EphyEmbed *embed,
context = ephy_embed_event_get_context (event);
if (button != 2 || (context & EPHY_EMBED_CONTEXT_INPUT) ||
- (context & EPHY_EMBED_CONTEXT_LINK))
+ (context & EPHY_EMBED_CONTEXT_LINK))
{
return FALSE;
}
@@ -87,8 +86,8 @@ dom_mouse_down_cb (EphyEmbed *embed,
static gboolean
button_press_cb (GtkWidget *widget,
- GdkEventButton *event,
- EphyWindow *window)
+ GdkEventButton *event,
+ EphyWindow *window)
{
EphyAutoScroller *scroller;
EphyEmbed *embed = (EphyEmbed*) gtk_widget_get_parent (widget);
@@ -109,9 +108,9 @@ button_press_cb (GtkWidget *widget,
static void
impl_detach_window (EphyExtension *ext,
- EphyWindow *window)
+ EphyWindow *window)
{
- g_object_set_data (G_OBJECT (window), WINDOW_DATA_KEY, NULL);
+ g_object_set_data (G_OBJECT (window), WINDOW_DATA_KEY, NULL);
}
static void
@@ -126,7 +125,7 @@ impl_attach_tab (EphyExtension *ext,
#if 0
g_signal_connect_object (embed, "ge-dom-mouse-down",
- G_CALLBACK (dom_mouse_down_cb), window, 0);
+ G_CALLBACK (dom_mouse_down_cb), window, 0);
#endif
web_view = EPHY_GET_WEBKIT_WEB_VIEW_FROM_EMBED (embed);
diff --git a/extensions/auto-scroller/ephy-auto-scroller.c b/extensions/auto-scroller/ephy-auto-scroller.c
index b250b70..0dd8069 100644
--- a/extensions/auto-scroller/ephy-auto-scroller.c
+++ b/extensions/auto-scroller/ephy-auto-scroller.c
@@ -17,7 +17,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
- * $Id$
*/
/* this file is based on work of Daniel Erat for galeon 1 */
@@ -188,18 +187,18 @@ ephy_auto_scroller_grab_notify_cb (GtkWidget *widget,
static void
ephy_auto_scroller_scroll_pixels (EphyEmbed *embed, int scroll_x, int scroll_y)
{
- GtkAdjustment *adj;
- gdouble value;
+ GtkAdjustment *adj;
+ gdouble value;
- g_return_if_fail (GTK_IS_SCROLLED_WINDOW (embed));
+ g_return_if_fail (GTK_IS_SCROLLED_WINDOW (embed));
- adj = gtk_scrolled_window_get_hadjustment (GTK_SCROLLED_WINDOW (embed));
- value = gtk_adjustment_get_value (adj);
- gtk_adjustment_set_value (adj, value + scroll_x);
+ adj = gtk_scrolled_window_get_hadjustment (GTK_SCROLLED_WINDOW (embed));
+ value = gtk_adjustment_get_value (adj);
+ gtk_adjustment_set_value (adj, value + scroll_x);
- adj = gtk_scrolled_window_get_vadjustment (GTK_SCROLLED_WINDOW (embed));
- value = gtk_adjustment_get_value (adj);
- gtk_adjustment_set_value (adj, value + scroll_y);
+ adj = gtk_scrolled_window_get_vadjustment (GTK_SCROLLED_WINDOW (embed));
+ value = gtk_adjustment_get_value (adj);
+ gtk_adjustment_set_value (adj, value + scroll_y);
}
static int
@@ -324,7 +323,7 @@ ephy_auto_scroller_start (EphyAutoScroller *scroller,
priv->roundoff_error_y = 0;
g_signal_connect (priv->window, "motion-notify-event",
- G_CALLBACK (ephy_auto_scroller_motion_cb), scroller);
+ G_CALLBACK (ephy_auto_scroller_motion_cb), scroller);
g_signal_connect (priv->window, "button-press-event",
G_CALLBACK (ephy_auto_scroller_mouse_press_cb), scroller);
g_signal_connect (priv->window, "key-press-event",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]