Skip to content

Commit 2f72206

Browse files
panel: use widget size request over window default size
A change in libadwaita 1.6 (7a705c79) makes our old code spawn a huge panel. Adjust ourselves to override libadwaita's default 360x200 size and make the panel reasonable again. Tested to still work on libadwaita 1.5, too. Fixes #60 Co-authored-by: Nathaniel Mason <nathanielma5on@yahoo.com>
1 parent 6e63185 commit 2f72206

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/panel/panel.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ static void panel_init_layout(Panel *self) {
119119
gtk_layer_set_anchor(GTK_WINDOW(self->win), 1, 1);
120120
gtk_layer_set_anchor(GTK_WINDOW(self->win), 2, 1);
121121
gtk_layer_set_anchor(GTK_WINDOW(self->win), 3, 0);
122-
gtk_window_set_default_size(GTK_WINDOW(self->win), -1, 30);
122+
gtk_widget_set_size_request(GTK_WIDGET(self->win), -1, 30);
123123

124124
self->container = GTK_CENTER_BOX(gtk_center_box_new());
125125
gtk_widget_set_name(GTK_WIDGET(self->container), "panel");

0 commit comments

Comments
 (0)