diff options
author | Colomban Wendling <[email protected]> | 2017-01-23 10:18:44 +0100 |
---|---|---|
committer | lukefromdc <[email protected]> | 2017-01-23 13:49:34 -0500 |
commit | 352600f12126c2f974a2510dfb744ba4f562da3f (patch) | |
tree | 5c9cba8df8c5e5802887971896bbfad4df9d20e4 /applets/notification_area/status-notifier/sn-image-menu-item.c | |
parent | 290a5d6fcdeed499cd6220c62d3e55b51c558a43 (diff) | |
download | mate-panel-352600f12126c2f974a2510dfb744ba4f562da3f.tar.bz2 mate-panel-352600f12126c2f974a2510dfb744ba4f562da3f.tar.xz |
status-notifier: Move GTK compatibility code inline
Diffstat (limited to 'applets/notification_area/status-notifier/sn-image-menu-item.c')
-rw-r--r-- | applets/notification_area/status-notifier/sn-image-menu-item.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/applets/notification_area/status-notifier/sn-image-menu-item.c b/applets/notification_area/status-notifier/sn-image-menu-item.c index 117ba9c3..412ba11e 100644 --- a/applets/notification_area/status-notifier/sn-image-menu-item.c +++ b/applets/notification_area/status-notifier/sn-image-menu-item.c @@ -17,8 +17,6 @@ #include "config.h" -#include "sn-compat-gtk.h" - #include "sn-image-menu-item.h" #define SPACING 6 @@ -175,7 +173,11 @@ sn_image_menu_item_init (SnImageMenuItem *item) item->accel_label = gtk_accel_label_new (""); gtk_box_pack_end (GTK_BOX (item->box), item->accel_label, TRUE, TRUE, 0); +#if GTK_CHECK_VERSION (3, 16, 0) gtk_label_set_xalign (GTK_LABEL (item->accel_label), 0.0); +#else + gtk_misc_set_alignment (GTK_MISC (item->accel_label), 0.0, 0.5); +#endif gtk_widget_show (item->accel_label); accel_label = GTK_ACCEL_LABEL (item->accel_label); |