Commit 3ab175f6 authored by Sean Davis's avatar Sean Davis 🕶

Revert the invalid symbolic-icons systray patch

parent bff167d1
Pipeline #1125 passed with stages
in 4 minutes and 43 seconds
......@@ -60,7 +60,6 @@ void systray_plugin_configuration_changed (SnConfig *config,
{
gint icon_size;
gboolean square_icons;
gboolean symbolic_icons;
GList *list;
GList *l;
gchar *name;
......@@ -109,35 +108,6 @@ void systray_plugin_configuration_changed (SnConfig *config,
/* update icons in the box */
systray_plugin_names_update (plugin);
/* symbolic-icons */
{
/* apply symbolic colors */
symbolic_icons = sn_config_get_symbolic_icons (plugin->config);
if (symbolic_icons && G_LIKELY (plugin->manager != NULL))
{
GtkStyleContext *context;
GdkRGBA rgba;
GdkColor color;
GdkColor fg;
GdkColor error;
GdkColor warning;
GdkColor success;
context = gtk_widget_get_style_context (GTK_WIDGET (plugin->systray_box));
gtk_style_context_get_color (context, GTK_STATE_NORMAL, &rgba);
color.pixel = 0;
color.red = rgba.red * G_MAXUSHORT;
color.green = rgba.green * G_MAXUSHORT;
color.blue = rgba.blue * G_MAXUSHORT;
fg = error = warning = success = color;
systray_manager_set_colors (plugin->manager, &fg, &error, &warning, &success);
}
}
}
......@@ -220,7 +190,6 @@ systray_plugin_orientation_changed (XfcePanelPlugin *panel_plugin,
GtkOrientation orientation)
{
SnPlugin *plugin = XFCE_SN_PLUGIN (panel_plugin);
gboolean symbolic_icons = sn_config_get_symbolic_icons (plugin->config);
gtk_orientable_set_orientation (GTK_ORIENTABLE (plugin->box), orientation);
systray_box_set_orientation (XFCE_SYSTRAY_BOX (plugin->systray_box), orientation);
......@@ -229,7 +198,7 @@ systray_plugin_orientation_changed (XfcePanelPlugin *panel_plugin,
systray_manager_set_orientation (plugin->manager, orientation);
/* apply symbolic colors */
if (symbolic_icons && G_LIKELY (plugin->manager != NULL)) {
if (G_LIKELY (plugin->manager != NULL)) {
GtkStyleContext *context;
GdkRGBA rgba;
GdkColor color;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment