[gnome-font-viewer/wip/ewlsh/gtk4] font-view: Don't cast header as GtkHeaderBar for `set_titlebar ()`
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-font-viewer/wip/ewlsh/gtk4] font-view: Don't cast header as GtkHeaderBar for `set_titlebar ()`
- Date: Sat, 12 Feb 2022 01:11:51 +0000 (UTC)
commit 47b29ef3de42c2f9dfb47719de964cfd76a17032
Author: Christopher Davis <christopherdavis gnome org>
Date: Fri Feb 11 17:03:51 2022 -0800
font-view: Don't cast header as GtkHeaderBar for `set_titlebar ()`
This function takes a GtkWidget*, not a GtkHeaderBar*.
src/font-view.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/font-view.c b/src/font-view.c
index 8690a66..f162567 100644
--- a/src/font-view.c
+++ b/src/font-view.c
@@ -1284,8 +1284,7 @@ ensure_window (FontViewApplication *self)
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
gtk_stack_add_named (GTK_STACK (self->stack), swin, "info");
- gtk_window_set_titlebar (GTK_WINDOW (window),
- GTK_HEADER_BAR (self->header));
+ gtk_window_set_titlebar (GTK_WINDOW (window), self->header);
gtk_window_present (GTK_WINDOW (window));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]