]> www.fi.muni.cz Git - evince.git/commitdiff
Fix compile warnings.
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 29 Jul 2007 16:54:42 +0000 (16:54 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Sun, 29 Jul 2007 16:54:42 +0000 (16:54 +0000)
2007-07-29  Carlos Garcia Campos  <carlosgc@gnome.org>
* shell/ev-navigation-action.c:
(ev_navigation_action_history_changed),
(ev_navigation_action_set_history):
* shell/ev-navigation-action-widget.c:
(ev_navigation_action_widget_init):
* shell/ev-sidebar-thumbnails.c: (adjustment_changed_cb):
Fix compile warnings.

svn path=/trunk/; revision=2596

ChangeLog
shell/ev-navigation-action-widget.c
shell/ev-navigation-action.c
shell/ev-sidebar-thumbnails.c

index a47de7c06263abe0db96e7951919598978a92757..cf6da8f787d73a71dfe333ed00a42cecb7173c2f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2007-07-29  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * shell/ev-navigation-action.c:
+       (ev_navigation_action_history_changed),
+       (ev_navigation_action_set_history):
+       * shell/ev-navigation-action-widget.c:
+       (ev_navigation_action_widget_init):
+       * shell/ev-sidebar-thumbnails.c: (adjustment_changed_cb):
+
+       Fix compile warnings.
+       
 2007-07-29  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * cut-n-paste/toolbar-editor/egg-editable-toolbar.c:
index 116ff9c4807c33712fd7094378095e25246718b2..5a04fd3a9bd6312bb2ba38ec87a9bc0366778fc2 100644 (file)
@@ -52,7 +52,7 @@ ev_navigation_action_widget_init (EvNavigationActionWidget *action_widget)
        toggle_button = gtk_bin_get_child (GTK_BIN (action_widget));
        
        g_signal_connect (toggle_button, "button-press-event", 
-                         ev_navigation_action_widget_button_press_event,
+                         G_CALLBACK (ev_navigation_action_widget_button_press_event),
                          action_widget);
        return;
 }
index 3aa1bea921840a63377b805c09e3ea07f5d2c1d4..6a5e3a522ddce0623b10baaf7123ad21539566d9 100644 (file)
@@ -60,9 +60,8 @@ ev_navigation_action_history_changed (EvHistory *history,
 {
        EvNavigationAction *action = EV_NAVIGATION_ACTION (data);
        
-       gtk_action_set_sensitive (action, ev_history_get_n_links (history) > 0);
-       
-       return;
+       gtk_action_set_sensitive (GTK_ACTION (action),
+                                 ev_history_get_n_links (history) > 0);
 }
 
 void
@@ -75,7 +74,7 @@ ev_navigation_action_set_history (EvNavigationAction *action,
                                   (gpointer) &action->priv->history);
        
        g_signal_connect_object (history, "changed",
-                                ev_navigation_action_history_changed,
+                                G_CALLBACK (ev_navigation_action_history_changed),
                                 action, 0);
 }
 
index 671569a10534602216d53e531d61352dfc559881..192aa6f3d70e5af1cb9cd087742b18ee28f45c08 100644 (file)
@@ -333,12 +333,22 @@ adjustment_changed_cb (EvSidebarThumbnails *sidebar_thumbnails)
                if (! GTK_WIDGET_REALIZED (priv->tree_view))
                        return;
 
+#if GTK_CHECK_VERSION (2, 11, 3)
+               gtk_tree_view_convert_widget_to_bin_window_coords (GTK_TREE_VIEW (priv->tree_view),
+                                                                  0, (int) priv->vadjustment->value,
+                                                                  NULL, &wy1);
+               gtk_tree_view_convert_widget_to_bin_window_coords (GTK_TREE_VIEW (priv->tree_view),
+                                                                  0, (int) (priv->vadjustment->value + priv->vadjustment->page_size),
+                                                                  NULL, &wy2);
+#else
                gtk_tree_view_tree_to_widget_coords (GTK_TREE_VIEW (priv->tree_view),
                                                     0, (int) priv->vadjustment->value,
                                                     NULL, &wy1);
                gtk_tree_view_tree_to_widget_coords (GTK_TREE_VIEW (priv->tree_view),
                                                     0, (int) (priv->vadjustment->value + priv->vadjustment->page_size),
                                                     NULL, &wy2);
+#endif /* GTK_CHECK_VERSION (2, 11, 3) */
+               
                gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW (priv->tree_view),
                                               1, wy1 + 1, &path,
                                               NULL, NULL, NULL);