summaryrefslogtreecommitdiff
path: root/shell/ev-sidebar.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.c
parent6741c5db1e5c48c01b25bb7900dc40d48552925d (diff)
downloadatril-aa24676651f8bd3e8b434f72d5aac98e84c0867d.tar.bz2
atril-aa24676651f8bd3e8b434f72d5aac98e84c0867d.tar.xz
Remove trailing whitespaces
Diffstat (limited to 'shell/ev-sidebar.c')
-rw-r--r--shell/ev-sidebar.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/shell/ev-sidebar.c b/shell/ev-sidebar.c
index eb1b59ee..f5c6b83d 100644
--- a/shell/ev-sidebar.c
+++ b/shell/ev-sidebar.c
@@ -88,7 +88,7 @@ ev_sidebar_select_page (EvSidebar *ev_sidebar, GtkTreeIter *iter)
int index;
gtk_tree_model_get (ev_sidebar->priv->page_model, iter,
- PAGE_COLUMN_TITLE, &title,
+ PAGE_COLUMN_TITLE, &title,
PAGE_COLUMN_NOTEBOOK_INDEX, &index,
-1);
@@ -106,14 +106,14 @@ ev_sidebar_set_page (EvSidebar *ev_sidebar,
gboolean valid;
valid = gtk_tree_model_get_iter_first (ev_sidebar->priv->page_model, &iter);
-
+
while (valid) {
GtkWidget *widget;
gtk_tree_model_get (ev_sidebar->priv->page_model, &iter,
PAGE_COLUMN_MAIN_WIDGET, &widget,
-1);
-
+
if (widget == main_widget) {
ev_sidebar_select_page (ev_sidebar, &iter);
valid = FALSE;
@@ -137,7 +137,7 @@ ev_sidebar_set_property (GObject *object,
switch (prop_id)
{
case PROP_CURRENT_PAGE:
- ev_sidebar_set_page (sidebar, g_value_get_object (value));
+ ev_sidebar_set_page (sidebar, g_value_get_object (value));
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -178,7 +178,7 @@ ev_sidebar_class_init (EvSidebarClass *ev_sidebar_class)
g_object_class = G_OBJECT_CLASS (ev_sidebar_class);
g_type_class_add_private (g_object_class, sizeof (EvSidebarPrivate));
-
+
g_object_class->dispose = ev_sidebar_dispose;
g_object_class->get_property = ev_sidebar_get_property;
g_object_class->set_property = ev_sidebar_set_property;
@@ -210,9 +210,9 @@ ev_sidebar_select_button_press_cb (GtkWidget *widget,
gtk_widget_get_preferred_size (ev_sidebar->priv->menu, &requisition, NULL);
gtk_widget_set_size_request (ev_sidebar->priv->menu,
MAX (width, requisition.width), -1);
-
+
gtk_widget_grab_focus (widget);
-
+
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), TRUE);
gtk_menu_popup_at_widget (GTK_MENU (ev_sidebar->priv->menu),
widget,
@@ -232,7 +232,7 @@ ev_sidebar_select_button_key_press_cb (GtkWidget *widget,
gpointer user_data)
{
EvSidebar *ev_sidebar = EV_SIDEBAR (user_data);
-
+
if (event->keyval == GDK_KEY_space ||
event->keyval == GDK_KEY_KP_Space ||
event->keyval == GDK_KEY_Return ||
@@ -265,7 +265,7 @@ ev_sidebar_menu_deactivate_cb (GtkWidget *widget,
GtkWidget *menu_button;
menu_button = GTK_WIDGET (user_data);
-
+
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (menu_button), FALSE);
}
@@ -274,7 +274,7 @@ ev_sidebar_menu_detach_cb (GtkWidget *widget,
GtkMenu *menu)
{
EvSidebar *ev_sidebar = EV_SIDEBAR (widget);
-
+
ev_sidebar->priv->menu = NULL;
}
@@ -289,12 +289,12 @@ ev_sidebar_menu_item_activate_cb (GtkWidget *widget,
menu_item = gtk_menu_get_active (GTK_MENU (ev_sidebar->priv->menu));
valid = gtk_tree_model_get_iter_first (ev_sidebar->priv->page_model, &iter);
-
+
while (valid) {
gtk_tree_model_get (ev_sidebar->priv->page_model, &iter,
PAGE_COLUMN_MENU_ITEM, &item,
-1);
-
+
if (item == menu_item) {
ev_sidebar_select_page (ev_sidebar, &iter);
valid = FALSE;
@@ -366,15 +366,15 @@ ev_sidebar_init (EvSidebar *ev_sidebar)
g_signal_connect (close_button, "clicked",
G_CALLBACK (ev_sidebar_close_clicked_cb),
ev_sidebar);
-
+
image = gtk_image_new_from_icon_name ("window-close",
GTK_ICON_SIZE_MENU);
gtk_container_add (GTK_CONTAINER (close_button), image);
gtk_widget_show (image);
-
+
gtk_box_pack_end (GTK_BOX (hbox), close_button, FALSE, FALSE, 0);
gtk_widget_show (close_button);
-
+
ev_sidebar->priv->menu = gtk_menu_new ();
g_signal_connect (ev_sidebar->priv->menu, "deactivate",
G_CALLBACK (ev_sidebar_menu_deactivate_cb),
@@ -416,7 +416,7 @@ ev_sidebar_add_page (EvSidebar *ev_sidebar,
gchar *label_title;
const gchar *title;
int index;
-
+
g_return_if_fail (EV_IS_SIDEBAR (ev_sidebar));
g_return_if_fail (EV_IS_SIDEBAR_PAGE (main_widget));
g_return_if_fail (GTK_IS_WIDGET (main_widget));
@@ -424,10 +424,10 @@ ev_sidebar_add_page (EvSidebar *ev_sidebar,
ev_sidebar_page_set_model (EV_SIDEBAR_PAGE (main_widget),
ev_sidebar->priv->model);
title = ev_sidebar_page_get_label (EV_SIDEBAR_PAGE (main_widget));
-
+
index = gtk_notebook_append_page (GTK_NOTEBOOK (ev_sidebar->priv->notebook),
main_widget, NULL);
-
+
menu_item = gtk_image_menu_item_new_with_label (title);
g_signal_connect (menu_item, "activate",
G_CALLBACK (ev_sidebar_menu_item_activate_cb),