summaryrefslogtreecommitdiff
path: root/cut-n-paste/zoom-control
diff options
context:
space:
mode:
authorLaurent Napias <[email protected]>2019-06-29 10:43:23 +0200
committerraveit65 <[email protected]>2019-07-01 17:07:40 +0200
commitaa24676651f8bd3e8b434f72d5aac98e84c0867d (patch)
tree37693766ecb4733c6061dcc2ddc26954fab5ca01 /cut-n-paste/zoom-control
parent6741c5db1e5c48c01b25bb7900dc40d48552925d (diff)
downloadatril-aa24676651f8bd3e8b434f72d5aac98e84c0867d.tar.bz2
atril-aa24676651f8bd3e8b434f72d5aac98e84c0867d.tar.xz
Remove trailing whitespaces
Diffstat (limited to 'cut-n-paste/zoom-control')
-rw-r--r--cut-n-paste/zoom-control/ephy-zoom-action.c14
-rw-r--r--cut-n-paste/zoom-control/ephy-zoom-action.h2
-rw-r--r--cut-n-paste/zoom-control/ephy-zoom-control.c8
3 files changed, 12 insertions, 12 deletions
diff --git a/cut-n-paste/zoom-control/ephy-zoom-action.c b/cut-n-paste/zoom-control/ephy-zoom-action.c
index 70376d52..537b9858 100644
--- a/cut-n-paste/zoom-control/ephy-zoom-action.c
+++ b/cut-n-paste/zoom-control/ephy-zoom-action.c
@@ -140,24 +140,24 @@ create_menu_item (GtkAction *action)
for (i = 0; i < n_zoom_levels; i++)
{
- if (zoom_levels[i].level == EPHY_ZOOM_SEPARATOR)
+ if (zoom_levels[i].level == EPHY_ZOOM_SEPARATOR)
{
menu_item = gtk_separator_menu_item_new ();
- }
- else
+ }
+ else
{
- menu_item = gtk_radio_menu_item_new_with_label (group,
+ menu_item = gtk_radio_menu_item_new_with_label (group,
_(zoom_levels[i].name));
group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (menu_item));
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_item),
p->zoom == zoom_levels[i].level);
-
+
g_object_set_data (G_OBJECT (menu_item), "zoom-level", GINT_TO_POINTER (i));
g_signal_connect_object (G_OBJECT (menu_item), "activate",
G_CALLBACK (proxy_menu_activate_cb), action, 0);
}
-
+
gtk_widget_show (menu_item);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
}
@@ -297,7 +297,7 @@ float
ephy_zoom_action_get_zoom_level (EphyZoomAction *action)
{
g_return_val_if_fail (EPHY_IS_ZOOM_ACTION (action), 1.0);
-
+
return action->priv->zoom;
}
diff --git a/cut-n-paste/zoom-control/ephy-zoom-action.h b/cut-n-paste/zoom-control/ephy-zoom-action.h
index cf9f6feb..7b1abc01 100644
--- a/cut-n-paste/zoom-control/ephy-zoom-action.h
+++ b/cut-n-paste/zoom-control/ephy-zoom-action.h
@@ -40,7 +40,7 @@ typedef struct _EphyZoomActionPrivate EphyZoomActionPrivate;
struct _EphyZoomAction
{
GtkAction parent;
-
+
/*< private >*/
EphyZoomActionPrivate *priv;
};
diff --git a/cut-n-paste/zoom-control/ephy-zoom-control.c b/cut-n-paste/zoom-control/ephy-zoom-control.c
index d20e0d32..dc8ea3b6 100644
--- a/cut-n-paste/zoom-control/ephy-zoom-control.c
+++ b/cut-n-paste/zoom-control/ephy-zoom-control.c
@@ -72,7 +72,7 @@ combo_changed_cb (GtkComboBox *combo, EphyZoomControl *control)
if (zoom != control->priv->zoom)
{
- g_signal_emit (control, signals[ZOOM_TO_LEVEL_SIGNAL], 0, zoom);
+ g_signal_emit (control, signals[ZOOM_TO_LEVEL_SIGNAL], 0, zoom);
}
}
@@ -86,7 +86,7 @@ sync_zoom_cb (EphyZoomControl *control, GParamSpec *pspec, gpointer data)
g_signal_handler_block (p->combo, p->handler_id);
gtk_combo_box_set_active (p->combo, index);
- g_signal_handler_unblock (p->combo, p->handler_id);
+ g_signal_handler_unblock (p->combo, p->handler_id);
}
static void
@@ -206,7 +206,7 @@ ephy_zoom_control_init (EphyZoomControl *control)
p->handler_id = g_signal_connect (p->combo, "changed",
G_CALLBACK (combo_changed_cb), control);
-
+
g_signal_connect_object (control, "notify::zoom",
G_CALLBACK (sync_zoom_cb), NULL, 0);
g_signal_connect_object (control, "notify::min-zoom",
@@ -336,6 +336,6 @@ float
ephy_zoom_control_get_zoom_level (EphyZoomControl *control)
{
g_return_val_if_fail (EPHY_IS_ZOOM_CONTROL (control), 1.0);
-
+
return control->priv->zoom;
}