Skip to content
Permalink
Browse files

fix some -Wincompatible-pointer-types warnings

  • Loading branch information...
raveit65 committed Apr 29, 2018
1 parent 1523539 commit 16f5b2c4b61a191716b9e24e4ebec2683b4caba6
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/eom-save-as-dialog-helper.c
  2. +1 −1 src/eom-scroll-view.c
  3. +1 −1 src/eom-thumb-view.c
@@ -241,7 +241,7 @@ eom_save_as_dialog_new (GtkWindow *main, GList *images, GFile *base_file)
data->n_images = g_list_length (images);
data->nth_image = (int) ((float) data->n_images * rand() / (float) (RAND_MAX+1.0));
g_assert (data->nth_image >= 0 && data->nth_image < data->n_images);
data->image = g_object_ref (G_OBJECT (g_list_nth_data (images, data->nth_image)));
data->image = g_object_ref (EOM_IMAGE (g_list_nth_data (images, data->nth_image)));
g_object_set_data_full (G_OBJECT (dlg), "data", data, destroy_data_cb);

g_signal_connect (G_OBJECT (data->format_combobox), "changed",
@@ -2161,7 +2161,7 @@ eom_scroll_view_set_popup (EomScrollView *view,
g_return_if_fail (EOM_IS_SCROLL_VIEW (view));
g_return_if_fail (view->priv->menu == NULL);

view->priv->menu = g_object_ref (menu);
view->priv->menu = g_object_ref (GTK_WIDGET (menu));

gtk_menu_attach_to_widget (GTK_MENU (view->priv->menu),
GTK_WIDGET (view),
@@ -1046,7 +1046,7 @@ eom_thumb_view_set_thumbnail_popup (EomThumbView *thumbview,
g_return_if_fail (EOM_IS_THUMB_VIEW (thumbview));
g_return_if_fail (thumbview->priv->menu == NULL);

thumbview->priv->menu = g_object_ref (menu);
thumbview->priv->menu = g_object_ref (GTK_WIDGET (menu));

gtk_menu_attach_to_widget (GTK_MENU (thumbview->priv->menu),
GTK_WIDGET (thumbview),

0 comments on commit 16f5b2c

Please sign in to comment.
You can’t perform that action at this time.