commit ce62446d9de730bf5dab415094cf1f228a860861
parent fac24c59d7ed028f1ecb9ccae3aa759c756f7115
Author: Jonathan Boeing <jonathan@claws-mail.org>
Date: Mon, 13 Sep 2021 00:53:29 -0700
Fix missing GTK casts
Diffstat:
3 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/compose.c b/src/compose.c
@@ -9172,7 +9172,8 @@ static void compose_destroy(Compose *compose)
#endif
if (!compose->batch) {
- gtk_window_get_size(compose->window, &allocation.width, &allocation.height);
+ gtk_window_get_size(GTK_WINDOW(compose->window),
+ &allocation.width, &allocation.height);
prefs_common.compose_width = allocation.width;
prefs_common.compose_height = allocation.height;
}
diff --git a/src/editaddress.c b/src/editaddress.c
@@ -877,7 +877,8 @@ static void addressbook_edit_person_dialog_create( gboolean *cancelled ) {
gtk_window_set_geometry_hints(GTK_WINDOW(window), NULL, &geometry,
GDK_HINT_MIN_SIZE);
- gtk_window_set_default_size(window, prefs_common.addressbookeditpersonwin_width,
+ gtk_window_set_default_size(GTK_WINDOW(window),
+ prefs_common.addressbookeditpersonwin_width,
prefs_common.addressbookeditpersonwin_height);
personeditdlg.container = window;
diff --git a/src/gtk/gtkcmclist.c b/src/gtk/gtkcmclist.c
@@ -5672,7 +5672,7 @@ draw_row (GtkCMCList *clist,
cm_return_if_fail (clist != NULL);
if (clist->draw_now) {
- gtk_widget_queue_draw(clist);
+ gtk_widget_queue_draw(GTK_WIDGET(clist));
return;
}
@@ -5968,7 +5968,7 @@ draw_rows (GtkCMCList *clist,
cairo_fill(cr);
cairo_destroy(cr);
} else {
- gtk_widget_queue_draw(clist);
+ gtk_widget_queue_draw(GTK_WIDGET(clist));
}
}
}
@@ -6544,7 +6544,7 @@ gtk_cmclist_draw_focus (GtkWidget *widget)
cairo_stroke(cr);
cairo_destroy(cr);
} else {
- gtk_widget_queue_draw(clist);
+ gtk_widget_queue_draw(GTK_WIDGET(clist));
}
}
}
@@ -6577,7 +6577,7 @@ gtk_cmclist_undraw_focus (GtkWidget *widget)
cairo_stroke(cr);
cairo_destroy(cr);
} else {
- gtk_widget_queue_draw(clist);
+ gtk_widget_queue_draw(GTK_WIDGET(clist));
}
}