Skip to content

Commit

Permalink
gui/bar: request correct size for sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
LBCrion committed Feb 7, 2025
1 parent 1030991 commit 8022363
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui/bar.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,15 @@ static void bar_style_updated ( GtkWidget *self )
if(!full_size)
{
if(dir==GTK_POS_TOP || dir==GTK_POS_BOTTOM)
{
gtk_widget_set_size_request(GTK_WIDGET(priv->revealer), (gint)size, 1);
gtk_widget_set_size_request(self, (gint)size, 1);
}
else
{
gtk_widget_set_size_request(GTK_WIDGET(priv->revealer), 1, (gint)size);
gtk_widget_set_size_request(self, 1, (gint)size);
}
}

if(priv->dir == dir && priv->halign == halign && priv->valign == valign &&
Expand Down

0 comments on commit 8022363

Please sign in to comment.