summaryrefslogtreecommitdiff
path: root/mate-panel/panel-force-quit.c
diff options
context:
space:
mode:
authorRoy Zhang <[email protected]>2016-01-04 14:05:03 +0800
committerWolfgang Ulbrich <[email protected]>2016-01-23 22:33:21 +0100
commit067dbe7b68fa625ea87ef6e259539fff2baaeaf7 (patch)
tree0dd7b2c62af9ee70409cc1c36111635274656e5c /mate-panel/panel-force-quit.c
parent0f7314ea3db7411ae7827ec9bb89a2b485227f1a (diff)
downloadmate-panel-067dbe7b68fa625ea87ef6e259539fff2baaeaf7.tar.bz2
mate-panel-067dbe7b68fa625ea87ef6e259539fff2baaeaf7.tar.xz
Gtk3: Don't use deprecated gtk_misc_set_alignment
Diffstat (limited to 'mate-panel/panel-force-quit.c')
-rw-r--r--mate-panel/panel-force-quit.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mate-panel/panel-force-quit.c b/mate-panel/panel-force-quit.c
index f0374e2f..e8832214 100644
--- a/mate-panel/panel-force-quit.c
+++ b/mate-panel/panel-force-quit.c
@@ -76,7 +76,12 @@ display_popup_window (GdkScreen *screen)
image = gtk_image_new_from_icon_name (PANEL_ICON_FORCE_QUIT,
GTK_ICON_SIZE_DIALOG);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_widget_set_halign (image, GTK_ALIGN_CENTER);
+ gtk_widget_set_valign (image, GTK_ALIGN_CENTER);
+#else
gtk_misc_set_alignment (GTK_MISC (image), 0.5, 0.5);
+#endif
gtk_box_pack_start (GTK_BOX (vbox), image, TRUE, TRUE, 4);
gtk_widget_show (image);