Skip to content
Permalink
Browse files

Theme: show applet handles on non-MATE themes

Fix #758
Ensure that themes such as GNOME themes (e.g Adwaita) that do not explicitly support MATE show the drag handles for applets such as tray and window-list.
  • Loading branch information...
lukefromdc authored and raveit65 committed Apr 12, 2018
1 parent 3bb4ce0 commit 5f38df2de5bea162ae8efc847d0dca6bd4e8fde2
Showing with 30 additions and 0 deletions.
  1. +30 −0 mate-panel/libmate-panel-applet-private/panel-applet-frame-dbus.c
@@ -262,6 +262,36 @@ mate_panel_applet_frame_dbus_change_background (MatePanelAppletFrame *frame,

g_free (bg_str);
}
GtkCssProvider *provider;
provider = gtk_css_provider_new ();
gtk_css_provider_load_from_data (provider,
"MatePanelAppletFrameDBus > MatePanelAppletFrameDBus { \n"
"border-style: solid; \n"
"border-width: 3px; \n"
"border-color: transparent; \n"
"background-repeat: no-repeat; \n"
"background-position: left; \n"
"background-image: linear-gradient(to bottom, \n"
"transparent, \n"
"transparent 20%, \n"
"alpha (#999999, 0.6) 21%, \n"
"alpha (#999999, 0.6) 29%, \n"
"transparent 30%, \n"
"transparent 45%, \n"
"alpha (#999999, 0.6) 46%, \n"
"alpha (#999999, 0.6) 54%, \n"
"transparent 55%, \n"
"transparent 70%, \n"
"alpha (#999999, 0.6) 71%, \n"
"alpha (#999999, 0.6) 79%, \n"
"transparent 80%, \n"
"transparent); \n"
"}",
-1, NULL);
gtk_style_context_add_provider (gtk_widget_get_style_context(GTK_WIDGET(frame)),
GTK_STYLE_PROVIDER (provider),
GTK_STYLE_PROVIDER_PRIORITY_FALLBACK);
g_object_unref (provider);
}

static void

0 comments on commit 5f38df2

Please sign in to comment.
You can’t perform that action at this time.