diff options
Diffstat (limited to 'mate-panel/panel-menu-bar.c')
-rw-r--r-- | mate-panel/panel-menu-bar.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/mate-panel/panel-menu-bar.c b/mate-panel/panel-menu-bar.c index c8ffa76c..955e9c4b 100644 --- a/mate-panel/panel-menu-bar.c +++ b/mate-panel/panel-menu-bar.c @@ -270,11 +270,7 @@ static void panel_menu_bar_size_allocate(GtkWidget* widget, GtkAllocation* alloc return; } -#if GTK_CHECK_VERSION (3, 18, 0) background = &PANEL_MENU_BAR(widget)->priv->panel->toplevel->background; -#else - background = &PANEL_MENU_BAR(widget)->priv->panel->background; -#endif if (background->type == PANEL_BACK_NONE || (background->type == PANEL_BACK_COLOR && !background->has_alpha)) { return; @@ -434,11 +430,7 @@ void panel_menu_bar_popup_menu(PanelMenuBar* menubar, guint32 activate_time) void panel_menu_bar_change_background(PanelMenuBar* menubar) { -#if GTK_CHECK_VERSION (3, 18, 0) panel_background_apply_css(&menubar->priv->panel->toplevel->background, GTK_WIDGET(menubar)); -#else - panel_background_apply_css(&menubar->priv->panel->background, GTK_WIDGET(menubar)); -#endif } static void set_item_text_gravity(GtkWidget* item) @@ -468,12 +460,8 @@ static void set_item_text_angle_and_alignment(GtkWidget* item, double text_angle gtk_label_set_angle (GTK_LABEL (label), text_angle); -#if GTK_CHECK_VERSION (3, 16, 0) gtk_label_set_xalign (GTK_LABEL (label), xalign); gtk_label_set_yalign (GTK_LABEL (label), yalign); -#else - gtk_misc_set_alignment (GTK_MISC (label), xalign, yalign); -#endif } static void panel_menu_bar_update_orientation(PanelMenuBar* menubar) |