summaryrefslogtreecommitdiff
path: root/shell/ev-sidebar-links.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-25 09:52:41 +0200
committerraveit65 <[email protected]>2022-01-09 14:24:00 +0100
commit05dc26a2c8abd952e7b3d46dae719530a546f7d9 (patch)
treeac8869f164b512d350cc2ae8f6d19739e18851a3 /shell/ev-sidebar-links.c
parentb7fd397eb4a7a17a671b29e818b63718ab618b63 (diff)
downloadatril-05dc26a2c8abd952e7b3d46dae719530a546f7d9.tar.bz2
atril-05dc26a2c8abd952e7b3d46dae719530a546f7d9.tar.xz
Fix the type for the signal identifier which is gulong
Diffstat (limited to 'shell/ev-sidebar-links.c')
-rw-r--r--shell/ev-sidebar-links.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/shell/ev-sidebar-links.c b/shell/ev-sidebar-links.c
index 867408b4..98b16a1f 100644
--- a/shell/ev-sidebar-links.c
+++ b/shell/ev-sidebar-links.c
@@ -39,9 +39,9 @@ struct _EvSidebarLinksPrivate {
GtkWidget *tree_view;
/* Keep these ids around for blocking */
- guint selection_id;
- guint page_changed_id;
- guint row_activated_id;
+ gulong selection_id;
+ gulong page_changed_id;
+ gulong row_activated_id;
EvJob *job;
GtkTreeModel *model;
@@ -643,7 +643,7 @@ job_finished_callback (EvJobLinks *job,
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (priv->tree_view));
gtk_tree_selection_set_mode (selection, GTK_SELECTION_SINGLE);
- if (priv->selection_id <= 0) {
+ if (priv->selection_id == 0) {
priv->selection_id =
g_signal_connect (selection, "changed",
G_CALLBACK (selection_changed_callback),
@@ -653,7 +653,7 @@ job_finished_callback (EvJobLinks *job,
g_signal_connect_swapped (priv->doc_model, "page-changed",
G_CALLBACK (update_page_callback),
sidebar_links);
- if (priv->row_activated_id <= 0) {
+ if (priv->row_activated_id == 0) {
priv->row_activated_id =
g_signal_connect (priv->tree_view, "row-activated",
G_CALLBACK (row_activated_callback),