2005-08-21 Bernhard Walle
* Fixed memory leak (thanks to Brian J. Tarricone) * Custom bar colors now also work with special Gtk theme engine where the previous code doesn't work (thanks to Brian J. Tarricone) * Released 0.3.3. (Old svn revision: 771)master
parent
22959322fb
commit
7b2ca15079
|
@ -1,3 +1,9 @@
|
||||||
|
2005-08-21 Bernhard Walle
|
||||||
|
* Fixed memory leak (thanks to Brian J. Tarricone)
|
||||||
|
* Custom bar colors now also work with special Gtk theme engine where
|
||||||
|
the previous code doesn't work (thanks to Brian J. Tarricone)
|
||||||
|
* Released 0.3.3.
|
||||||
|
|
||||||
2005-08-01 Bernhard Walle
|
2005-08-01 Bernhard Walle
|
||||||
* Fixed error output if not in debug mode (#4707)
|
* Fixed error output if not in debug mode (#4707)
|
||||||
* Increased version number to 0.3.3.
|
* Increased version number to 0.3.3.
|
||||||
|
|
|
@ -503,13 +503,17 @@ static void setup_monitor(t_global_monitor *global, gboolean supress_warnings)
|
||||||
if (!rc) {
|
if (!rc) {
|
||||||
rc = gtk_rc_style_new();
|
rc = gtk_rc_style_new();
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
if (rc) {
|
||||||
rc->color_flags[GTK_STATE_PRELIGHT] |= GTK_RC_BG;
|
rc->color_flags[GTK_STATE_PRELIGHT] |= GTK_RC_BG;
|
||||||
|
rc->color_flags[GTK_STATE_SELECTED] |= GTK_RC_BASE;
|
||||||
rc->bg[GTK_STATE_PRELIGHT] = global->monitor->options.color[i];
|
rc->bg[GTK_STATE_PRELIGHT] = global->monitor->options.color[i];
|
||||||
}
|
rc->base[GTK_STATE_SELECTED] = global->monitor->options.color[i];
|
||||||
|
|
||||||
gtk_widget_modify_style(GTK_WIDGET(global->monitor->status[i]), rc);
|
gtk_widget_modify_style(GTK_WIDGET(global->monitor->status[i]), rc);
|
||||||
|
gtk_rc_style_unref(rc);
|
||||||
|
}
|
||||||
|
|
||||||
gtk_widget_show(GTK_WIDGET(global->monitor->status[i]));
|
gtk_widget_show(GTK_WIDGET(global->monitor->status[i]));
|
||||||
|
|
||||||
/* Maximum */
|
/* Maximum */
|
||||||
|
@ -1181,4 +1185,3 @@ G_MODULE_EXPORT void xfce_control_class_init(ControlClass *cc)
|
||||||
|
|
||||||
cc->set_orientation = monitor_set_orientation;
|
cc->set_orientation = monitor_set_orientation;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue