summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-04-29 16:54:34 +0200
committerraveit65 <[email protected]>2018-06-13 10:31:38 +0200
commit16f5b2c4b61a191716b9e24e4ebec2683b4caba6 (patch)
tree4fa444dc783e19ffb66dd2b199387e1d776d268e /src
parent152353960c121465415a378c355802624c7aecef (diff)
downloadeom-16f5b2c4b61a191716b9e24e4ebec2683b4caba6.tar.bz2
eom-16f5b2c4b61a191716b9e24e4ebec2683b4caba6.tar.xz
fix some -Wincompatible-pointer-types warnings
Diffstat (limited to 'src')
-rw-r--r--src/eom-save-as-dialog-helper.c2
-rw-r--r--src/eom-scroll-view.c2
-rw-r--r--src/eom-thumb-view.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/eom-save-as-dialog-helper.c b/src/eom-save-as-dialog-helper.c
index e2ff12e..a547ccc 100644
--- a/src/eom-save-as-dialog-helper.c
+++ b/src/eom-save-as-dialog-helper.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",
diff --git a/src/eom-scroll-view.c b/src/eom-scroll-view.c
index 7307368..5f424b6 100644
--- a/src/eom-scroll-view.c
+++ b/src/eom-scroll-view.c
@@ -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),
diff --git a/src/eom-thumb-view.c b/src/eom-thumb-view.c
index 03270cc..a58fcf5 100644
--- a/src/eom-thumb-view.c
+++ b/src/eom-thumb-view.c
@@ -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),