aboutsummaryrefslogtreecommitdiffstats
path: root/applets/systray/systray.c
diff options
context:
space:
mode:
Diffstat (limited to 'applets/systray/systray.c')
-rw-r--r--applets/systray/systray.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/applets/systray/systray.c b/applets/systray/systray.c
index 39698a8..0bd4784 100644
--- a/applets/systray/systray.c
+++ b/applets/systray/systray.c
@@ -2,6 +2,8 @@
/*
* (C) 2006-2013 Intel Corp
*
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ *
* Author: Jorn Baayen <jorn@openedhand.com>
* Ross Burton <ross.burton@intel.com>
*
@@ -29,8 +31,9 @@ on_realize (GtkWidget *widget, gpointer user_data)
tray = (GtkWidget *)na_tray_new_for_screen (screen, orientation);
gtk_widget_show (tray);
-
- gtk_container_add (GTK_CONTAINER (widget), tray);
+ gtk_widget_set_valign (tray, GTK_ALIGN_CENTER);
+ gtk_widget_set_halign (tray, GTK_ALIGN_CENTER);
+ gtk_box_pack_start (GTK_BOX (widget), tray, FALSE, FALSE, 0);
}
G_MODULE_EXPORT GtkWidget *