X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=cut-n-paste%2Fzoom-control%2Fephy-zoom-control.c;h=2f372d9016a00314076a297c754a97e3d27292dc;hb=4cabc192ea93da44cbeb53396c21b1d7589cee46;hp=dcbe8a668c36025d33d3da773658ba1dfd123603;hpb=fecc75d11b8905c61a0ccc9490a1a6c2c54567bc;p=evince.git diff --git a/cut-n-paste/zoom-control/ephy-zoom-control.c b/cut-n-paste/zoom-control/ephy-zoom-control.c index dcbe8a66..2f372d90 100644 --- a/cut-n-paste/zoom-control/ephy-zoom-control.c +++ b/cut-n-paste/zoom-control/ephy-zoom-control.c @@ -24,11 +24,12 @@ #include "ephy-zoom-control.h" #include "ephy-zoom.h" -#include "ev-debug.h" #include #include +#if !GTK_CHECK_VERSION (2, 11, 5) #include +#endif #include #define EPHY_ZOOM_CONTROL_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_ZOOM_CONTROL, EphyZoomControlPrivate)) @@ -73,7 +74,7 @@ ephy_zoom_control_get_type (void) if (G_UNLIKELY (type == 0)) { - static const GTypeInfo our_info = + const GTypeInfo our_info = { sizeof (EphyZoomControlClass), NULL, /* base_init */ @@ -236,6 +237,7 @@ ephy_zoom_control_get_property (GObject *object, } } +#if !GTK_CHECK_VERSION (2, 11, 5) static void set_combo_tooltip (GtkWidget *widget, GtkTooltipsData *data) @@ -287,6 +289,7 @@ ephy_zoom_control_set_tooltip (GtkToolItem *tool_item, return TRUE; } +#endif /* !GTK_CHECK_VERSION (2, 11, 5) */ static void ephy_zoom_control_class_init (EphyZoomControlClass *klass) @@ -303,7 +306,9 @@ ephy_zoom_control_class_init (EphyZoomControlClass *klass) object_class->get_property = ephy_zoom_control_get_property; object_class->finalize = ephy_zoom_control_finalize; +#if !GTK_CHECK_VERSION (2, 11, 5) tool_item_class->set_tooltip = ephy_zoom_control_set_tooltip; +#endif g_object_class_install_property (object_class, PROP_ZOOM,