summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-23 13:30:49 +0100
committerinfirit <[email protected]>2014-11-23 13:31:35 +0100
commitbf4500d99c6ab596bc673afee964762f9dc44230 (patch)
treeca5bead6409070e54c6643273f28050871f3f5e8
parent02bea48c33f6c5c6dc27c7c23a4c03123b8c1e83 (diff)
downloadmate-panel-bf4500d99c6ab596bc673afee964762f9dc44230.tar.bz2
mate-panel-bf4500d99c6ab596bc673afee964762f9dc44230.tar.xz
Gtk3: window-menu: Don't change selector style since it's already changed by libwnck
Based on gnome-panel commit: 60cb9c798ed25868c1c07b73fa08aabbb5892d2c From: Carlos Garcia Campos <[email protected]>
-rw-r--r--applets/wncklet/window-menu.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/applets/wncklet/window-menu.c b/applets/wncklet/window-menu.c
index f19add48..7a2f5498 100644
--- a/applets/wncklet/window-menu.c
+++ b/applets/wncklet/window-menu.c
@@ -207,28 +207,6 @@ static inline void force_no_focus_padding(GtkWidget* widget)
gtk_widget_set_name(widget, "PanelApplet-window-menu-applet-button");
}
-#if GTK_CHECK_VERSION (3, 0, 0)
-static inline void
-force_no_shadow_and_padding (GtkWidget *widget)
-{
- GtkCssProvider *provider;
-
- provider = gtk_css_provider_new ();
- gtk_css_provider_load_from_data (provider,
- "#window-menu-applet-selector {\n"
- " border-width: 0px;\n"
- " -GtkMenuBar-internal-padding: 0px;\n"
- " -GtkMenuBar-shadow-type: none; }",
- -1, NULL);
- gtk_style_context_add_provider (gtk_widget_get_style_context (widget),
- GTK_STYLE_PROVIDER (provider),
- GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
- g_object_unref (provider);
-
- gtk_widget_set_name (widget, "window-menu-applet-selector");
-}
-#endif
-
static void window_menu_size_allocate(MatePanelApplet* applet, GtkAllocation* allocation, WindowMenu* window_menu)
{
MatePanelAppletOrient orient;
@@ -337,9 +315,6 @@ gboolean window_menu_applet_fill(MatePanelApplet* applet)
g_object_unref(action_group);
window_menu->selector = wnck_selector_new();
-#if GTK_CHECK_VERSION (3, 0, 0)
- force_no_shadow_and_padding (window_menu->selector);
-#endif
gtk_container_add(GTK_CONTAINER(window_menu->applet), window_menu->selector);
mate_panel_applet_set_background_widget(MATE_PANEL_APPLET(window_menu->applet), GTK_WIDGET(window_menu->selector));