commit d2e456c260a886cc294f64994e4b4fe0b3cc0452
parent 21ef00e494117b2bdc8eebf365e0325a6cfad19b
Author: Janne Veteläinen <janne.vetelainen@elisanet.fi>
Date: Sat, 22 Jun 2024 17:38:44 +0300
Make request_resize static
Diffstat:
3 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/systray/dwlbtray.c b/systray/dwlbtray.c
@@ -87,7 +87,6 @@ activate(GtkApplication* app, void *data)
GtkWidget *widget = GTK_WIDGET(host);
gtk_window_set_child(window, widget);
- dwlb_request_resize(host);
gtk_window_present(window);
}
diff --git a/systray/snhost.c b/systray/snhost.c
@@ -77,7 +77,7 @@ static GDBusInterfaceVTable interface_vtable = {
};
-void
+static void
dwlb_request_resize(SnHost *self)
{
if (self->exiting)
@@ -497,6 +497,8 @@ sn_host_constructed(GObject *obj)
gtk_box_set_homogeneous(GTK_BOX(obj), TRUE);
gtk_box_set_spacing(GTK_BOX(obj), self->margins);
+ dwlb_request_resize(self);
+
G_OBJECT_CLASS(sn_host_parent_class)->constructed(obj);
}
diff --git a/systray/snhost.h b/systray/snhost.h
@@ -14,8 +14,6 @@ SnHost *sn_host_new (const char *traymon,
int margins,
int spacing);
-void dwlb_request_resize (SnHost *self);
-
G_END_DECLS
#define STATUSNOTIFIERWATCHER_XML \