diff options
author | Jiří Techet <techet@gmail.com> | 2019-01-26 22:29:08 +0100 |
---|---|---|
committer | Jiří Techet <techet@gmail.com> | 2019-01-26 22:29:08 +0100 |
commit | d1e6bf8c490696f99b8c5d28eaea8bb0274b9cbb (patch) | |
tree | a75bb3cf1afff6d75fbffdc9681f4c422ff69671 /champlain | |
parent | 8a34c1b8296a46b92c11e5d2b40443ce29920c69 (diff) | |
download | libchamplain-d1e6bf8c490696f99b8c5d28eaea8bb0274b9cbb.tar.gz |
Eliminate some warnings and bump clutter requirement to 1.24
Diffstat (limited to 'champlain')
-rw-r--r-- | champlain/champlain-map-source-factory.c | 2 | ||||
-rw-r--r-- | champlain/champlain-path-layer.c | 2 | ||||
-rw-r--r-- | champlain/champlain-view.c | 10 |
3 files changed, 7 insertions, 7 deletions
diff --git a/champlain/champlain-map-source-factory.c b/champlain/champlain-map-source-factory.c index 8efaa89..48825a9 100644 --- a/champlain/champlain-map-source-factory.c +++ b/champlain/champlain-map-source-factory.c @@ -119,7 +119,7 @@ champlain_map_source_factory_constructor (GType type, } else { - retval = g_object_ref (instance); + retval = G_OBJECT( g_object_ref (instance)); } return retval; diff --git a/champlain/champlain-path-layer.c b/champlain/champlain-path-layer.c index 42aeeb0..7b2baa8 100644 --- a/champlain/champlain-path-layer.c +++ b/champlain/champlain-path-layer.c @@ -858,7 +858,7 @@ update_surface (ChamplainPathLayer *layer, cairo_surface_destroy (new_surface); } /* When only the right actor is visible, no merging is required */ - else if (!CLUTTER_ACTOR_IS_VISIBLE (priv->left_actor)) + else if (!clutter_actor_is_visible (priv->left_actor)) set_surface (CHAMPLAIN_EXPORTABLE (layer), priv->right_surface); } diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c index 4edabef..ccbc5d3 100644 --- a/champlain/champlain-view.c +++ b/champlain/champlain-view.c @@ -1258,7 +1258,7 @@ champlain_view_realized_cb (ChamplainView *view, ChamplainViewPrivate *priv = view->priv; - if (!CLUTTER_ACTOR_IS_REALIZED (view)) + if (!clutter_actor_is_realized (CLUTTER_ACTOR (view))) return; clutter_actor_grab_key_focus (priv->kinetic_scroll); @@ -1475,7 +1475,7 @@ zoom_gesture_begin_cb (ClutterGestureAction *gesture, G_GNUC_UNUSED ClutterActor *actor, G_GNUC_UNUSED gpointer user_data) { - ClutterEvent *event = clutter_gesture_action_get_last_event (gesture, 0); + const ClutterEvent *event = clutter_gesture_action_get_last_event (gesture, 0); ClutterInputDevice *device = clutter_event_get_source_device (event); /* Give up on >2 finger input and when using mouse */ @@ -3378,7 +3378,7 @@ champlain_view_set_horizontal_wrap (ChamplainView *view, * * Returns the value of the #ChamplainView:horizontal-wrap property. * - * Returns: (transfer none): %TRUE if #ChamplainView:horizontal-wrap is set. + * Returns: %TRUE if #ChamplainView:horizontal-wrap is set. * */ gboolean @@ -3641,14 +3641,14 @@ view_set_zoom_level_at (ChamplainView *view, } /* don't do anything when view not yet realized */ - if (CLUTTER_ACTOR_IS_REALIZED (view)) + if (clutter_actor_is_realized (CLUTTER_ACTOR (view))) show_zoom_actor (view, zoom_level, offset_x, offset_y); get_x_y_for_zoom_level (view, zoom_level, offset_x, offset_y, &new_x, &new_y); priv->zoom_level = zoom_level; - if (CLUTTER_ACTOR_IS_REALIZED (view)) + if (clutter_actor_is_realized (CLUTTER_ACTOR (view))) { resize_viewport (view); remove_all_tiles (view); |