summaryrefslogtreecommitdiff
path: root/shell/ev-sidebar-layers.c
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 /shell/ev-sidebar-layers.c
parent6741c5db1e5c48c01b25bb7900dc40d48552925d (diff)
downloadatril-aa24676651f8bd3e8b434f72d5aac98e84c0867d.tar.bz2
atril-aa24676651f8bd3e8b434f72d5aac98e84c0867d.tar.xz
Remove trailing whitespaces
Diffstat (limited to 'shell/ev-sidebar-layers.c')
-rw-r--r--shell/ev-sidebar-layers.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/shell/ev-sidebar-layers.c b/shell/ev-sidebar-layers.c
index 6a723abb..28aad795 100644
--- a/shell/ev-sidebar-layers.c
+++ b/shell/ev-sidebar-layers.c
@@ -55,8 +55,8 @@ static guint signals[N_SIGNALS] = { 0 };
G_DEFINE_TYPE_EXTENDED (EvSidebarLayers,
ev_sidebar_layers,
GTK_TYPE_BOX,
- 0,
- G_IMPLEMENT_INTERFACE (EV_TYPE_SIDEBAR_PAGE,
+ 0,
+ G_IMPLEMENT_INTERFACE (EV_TYPE_SIDEBAR_PAGE,
ev_sidebar_layers_page_iface_init))
#define EV_SIDEBAR_LAYERS_GET_PRIVATE(object) \
@@ -71,7 +71,7 @@ ev_sidebar_layers_dispose (GObject *object)
g_signal_handlers_disconnect_by_func (sidebar->priv->job,
job_finished_callback,
sidebar);
- ev_job_cancel (sidebar->priv->job);
+ ev_job_cancel (sidebar->priv->job);
g_object_unref (sidebar->priv->job);
sidebar->priv->job = NULL;
}
@@ -91,7 +91,7 @@ ev_sidebar_layers_get_property (GObject *object,
GParamSpec *pspec)
{
EvSidebarLayers *ev_sidebar_layers;
-
+
ev_sidebar_layers = EV_SIDEBAR_LAYERS (object);
switch (prop_id) {
@@ -188,18 +188,18 @@ ev_sidebar_layers_visibility_changed (GtkCellRendererToggle *cell,
EvLayer *layer;
model = gtk_tree_view_get_model (ev_layers->priv->tree_view);
-
+
path = gtk_tree_path_new_from_string (path_str);
gtk_tree_model_get_iter (model, &iter, path);
gtk_tree_model_get (model, &iter,
EV_DOCUMENT_LAYERS_COLUMN_VISIBLE, &visible,
- EV_DOCUMENT_LAYERS_COLUMN_LAYER, &layer,
+ EV_DOCUMENT_LAYERS_COLUMN_LAYER, &layer,
-1);
-
+
visible = !visible;
if (visible) {
gint rb_group;
-
+
ev_document_layers_show_layer (EV_DOCUMENT_LAYERS (ev_layers->priv->document),
layer);
@@ -213,7 +213,7 @@ ev_sidebar_layers_visibility_changed (GtkCellRendererToggle *cell,
ev_document_layers_hide_layer (EV_DOCUMENT_LAYERS (ev_layers->priv->document),
layer);
}
-
+
gtk_tree_store_set (GTK_TREE_STORE (model), &iter,
EV_DOCUMENT_LAYERS_COLUMN_VISIBLE, visible,
-1);
@@ -223,7 +223,7 @@ ev_sidebar_layers_visibility_changed (GtkCellRendererToggle *cell,
(GtkTreeModelForeachFunc)update_kids,
&iter);
}
-
+
gtk_tree_path_free (path);
g_signal_emit (ev_layers, signals[LAYERS_VISIBILITY_CHANGED], 0);
@@ -235,7 +235,7 @@ ev_sidebar_layers_create_tree_view (EvSidebarLayers *ev_layers)
GtkTreeView *tree_view;
GtkTreeViewColumn *column;
GtkCellRenderer *renderer;
-
+
tree_view = GTK_TREE_VIEW (gtk_tree_view_new ());
gtk_tree_view_set_headers_visible (tree_view, FALSE);
gtk_tree_selection_set_mode (gtk_tree_view_get_selection (tree_view),
@@ -267,7 +267,7 @@ ev_sidebar_layers_create_tree_view (EvSidebarLayers *ev_layers)
"sensitive", EV_DOCUMENT_LAYERS_COLUMN_ENABLED,
NULL);
g_object_set (G_OBJECT (renderer), "ellipsize", PANGO_ELLIPSIZE_END, NULL);
-
+
gtk_tree_view_append_column (tree_view, column);
return tree_view;
@@ -278,7 +278,7 @@ ev_sidebar_layers_init (EvSidebarLayers *ev_layers)
{
GtkWidget *swindow;
GtkTreeModel *model;
-
+
ev_layers->priv = EV_SIDEBAR_LAYERS_GET_PRIVATE (ev_layers);
gtk_orientable_set_orientation (GTK_ORIENTABLE (ev_layers), GTK_ORIENTATION_VERTICAL);
@@ -384,7 +384,7 @@ job_finished_callback (EvJobLayers *job,
priv = sidebar_layers->priv;
gtk_tree_view_set_model (GTK_TREE_VIEW (priv->tree_view), job->model);
-
+
g_object_unref (job);
priv->job = NULL;
}