summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-04-29 16:54:34 +0200
committerraveit65 <[email protected]>2018-05-03 11:17:26 +0200
commit03783b9e98118daabb31801ca0943a5b72d5db1d (patch)
tree7050ceb0c96f2d3d689b71c0d96705c51c305f66 /src
parent51fc70f501fc46091aecbd2a35f613a4eba307cb (diff)
downloadeom-03783b9e98118daabb31801ca0943a5b72d5db1d.tar.bz2
eom-03783b9e98118daabb31801ca0943a5b72d5db1d.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 a461b67..423247b 100644
--- a/src/eom-scroll-view.c
+++ b/src/eom-scroll-view.c
@@ -2160,7 +2160,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),