[gnome-panel] panel-menu-bar-object: remove unneeded style class
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] panel-menu-bar-object: remove unneeded style class
- Date: Wed, 24 May 2017 21:16:50 +0000 (UTC)
commit ea4c6672fb724d2e88c7459992183035841ac17a
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Thu May 25 00:09:47 2017 +0300
panel-menu-bar-object: remove unneeded style class
This style class is already added for toplevel panel.
gnome-panel/panel-menu-bar-object.c | 17 -----------------
1 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/gnome-panel/panel-menu-bar-object.c b/gnome-panel/panel-menu-bar-object.c
index e9e2785..3b220ec 100644
--- a/gnome-panel/panel-menu-bar-object.c
+++ b/gnome-panel/panel-menu-bar-object.c
@@ -102,11 +102,6 @@ panel_menu_bar_object_init (PanelMenuBarObject *menubar)
g_object_unref (provider);
gtk_style_context_add_class (context, "gnome-panel-menu-bar");
- if (menubar->priv->orientation & PANEL_HORIZONTAL_MASK)
- gtk_style_context_add_class (context, GTK_STYLE_CLASS_HORIZONTAL);
- else
- gtk_style_context_add_class (context, GTK_STYLE_CLASS_VERTICAL);
-
menubar->priv->panel = NULL;
}
@@ -320,8 +315,6 @@ void
panel_menu_bar_object_set_orientation (PanelMenuBarObject *menubar,
PanelOrientation orientation)
{
- GtkStyleContext *context;
-
g_return_if_fail (PANEL_IS_MENU_BAR_OBJECT (menubar));
if (menubar->priv->orientation == orientation)
@@ -329,16 +322,6 @@ panel_menu_bar_object_set_orientation (PanelMenuBarObject *menubar,
menubar->priv->orientation = orientation;
- context = gtk_widget_get_style_context (GTK_WIDGET (menubar));
- if (orientation & PANEL_HORIZONTAL_MASK) {
- gtk_style_context_add_class (context, GTK_STYLE_CLASS_HORIZONTAL);
- gtk_style_context_remove_class (context, GTK_STYLE_CLASS_VERTICAL);
- } else {
- gtk_style_context_add_class (context, GTK_STYLE_CLASS_VERTICAL);
- gtk_style_context_remove_class (context, GTK_STYLE_CLASS_HORIZONTAL);
- }
- gtk_widget_reset_style (GTK_WIDGET (menubar));
-
panel_menu_bar_object_update_orientation (menubar);
g_object_notify (G_OBJECT (menubar), "orientation");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]