summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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),