Skip to content

Commit 16f5b2c

Browse files
author
raveit65
committed
fix some -Wincompatible-pointer-types warnings
1 parent 1523539 commit 16f5b2c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

‎src/eom-save-as-dialog-helper.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ eom_save_as_dialog_new (GtkWindow *main, GList *images, GFile *base_file)
241241
data->n_images = g_list_length (images);
242242
data->nth_image = (int) ((float) data->n_images * rand() / (float) (RAND_MAX+1.0));
243243
g_assert (data->nth_image >= 0 && data->nth_image < data->n_images);
244-
data->image = g_object_ref (G_OBJECT (g_list_nth_data (images, data->nth_image)));
244+
data->image = g_object_ref (EOM_IMAGE (g_list_nth_data (images, data->nth_image)));
245245
g_object_set_data_full (G_OBJECT (dlg), "data", data, destroy_data_cb);
246246

247247
g_signal_connect (G_OBJECT (data->format_combobox), "changed",

‎src/eom-scroll-view.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2161,7 +2161,7 @@ eom_scroll_view_set_popup (EomScrollView *view,
21612161
g_return_if_fail (EOM_IS_SCROLL_VIEW (view));
21622162
g_return_if_fail (view->priv->menu == NULL);
21632163

2164-
view->priv->menu = g_object_ref (menu);
2164+
view->priv->menu = g_object_ref (GTK_WIDGET (menu));
21652165

21662166
gtk_menu_attach_to_widget (GTK_MENU (view->priv->menu),
21672167
GTK_WIDGET (view),

‎src/eom-thumb-view.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ eom_thumb_view_set_thumbnail_popup (EomThumbView *thumbview,
10461046
g_return_if_fail (EOM_IS_THUMB_VIEW (thumbview));
10471047
g_return_if_fail (thumbview->priv->menu == NULL);
10481048

1049-
thumbview->priv->menu = g_object_ref (menu);
1049+
thumbview->priv->menu = g_object_ref (GTK_WIDGET (menu));
10501050

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

0 commit comments

Comments
 (0)