From 05dc26a2c8abd952e7b3d46dae719530a546f7d9 Mon Sep 17 00:00:00 2001 From: rbuj Date: Mon, 25 Oct 2021 09:52:41 +0200 Subject: Fix the type for the signal identifier which is gulong --- cut-n-paste/zoom-control/ephy-zoom-control.c | 2 +- libmisc/ev-page-action-widget.c | 2 +- shell/ev-sidebar-annotations.c | 2 +- shell/ev-sidebar-links.c | 10 +++++----- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cut-n-paste/zoom-control/ephy-zoom-control.c b/cut-n-paste/zoom-control/ephy-zoom-control.c index c1364f32..3d5c7fde 100644 --- a/cut-n-paste/zoom-control/ephy-zoom-control.c +++ b/cut-n-paste/zoom-control/ephy-zoom-control.c @@ -34,7 +34,7 @@ struct _EphyZoomControlPrivate float zoom; float min_zoom; float max_zoom; - guint handler_id; + gulong handler_id; }; enum diff --git a/libmisc/ev-page-action-widget.c b/libmisc/ev-page-action-widget.c index 30654d19..6b5d476c 100644 --- a/libmisc/ev-page-action-widget.c +++ b/libmisc/ev-page-action-widget.c @@ -43,7 +43,7 @@ struct _EvPageActionWidget GtkWidget *entry; GtkWidget *label; - guint signal_id; + gulong signal_id; GtkTreeModel *filter_model; GtkTreeModel *model; }; diff --git a/shell/ev-sidebar-annotations.c b/shell/ev-sidebar-annotations.c index f445cd35..cc39617f 100644 --- a/shell/ev-sidebar-annotations.c +++ b/shell/ev-sidebar-annotations.c @@ -56,7 +56,7 @@ struct _EvSidebarAnnotationsPrivate { GtkWidget *annot_text_item; EvJob *job; - guint selection_changed_id; + gulong selection_changed_id; }; static void ev_sidebar_annotations_page_iface_init (EvSidebarPageInterface *iface); 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), -- cgit v1.2.1