Author: olivier Date: 2008-11-08 20:20:40 +0000 (Sat, 08 Nov 2008) New Revision: 28671
Modified: xfwm4/trunk/ChangeLog xfwm4/trunk/NEWS xfwm4/trunk/src/tabwin.c Log: * src/tabwin.c: Draw focus in tabwin to make sure the selection is visible even with themes that do not show selected items. Modified: xfwm4/trunk/ChangeLog =================================================================== --- xfwm4/trunk/ChangeLog 2008-11-08 20:06:57 UTC (rev 28670) +++ xfwm4/trunk/ChangeLog 2008-11-08 20:20:40 UTC (rev 28671) @@ -1,5 +1,10 @@ 2008-11-08 olivier + * src/tabwin.c: Draw focus in tabwin to make sure the selection is + visible even with themes that do not show selected items. + +2008-11-08 olivier + * src/settings.c: Do not display warnings for "workspace_names", for real this time... Modified: xfwm4/trunk/NEWS =================================================================== --- xfwm4/trunk/NEWS 2008-11-08 20:06:57 UTC (rev 28670) +++ xfwm4/trunk/NEWS 2008-11-08 20:20:40 UTC (rev 28671) @@ -12,6 +12,8 @@ - Fix workspaces names not being set in the workspace settings GUI. - Do not display warnings for values that are not configurable via xfconf (typically theme settings). +- Draw focus in tabwin to make sure the selection is visible even with themes + that do not show selected items. 4.5.91 (Xfce 4.6beta1) ====================== Modified: xfwm4/trunk/src/tabwin.c =================================================================== --- xfwm4/trunk/src/tabwin.c 2008-11-08 20:06:57 UTC (rev 28670) +++ xfwm4/trunk/src/tabwin.c 2008-11-08 20:20:40 UTC (rev 28671) @@ -67,14 +67,18 @@ static gboolean paint_selected (GtkWidget * w, GdkEventExpose * event, gpointer data) { - gtk_paint_box (w->style, w->window, + gtk_draw_flat_box (w->style, w->window, GTK_STATE_SELECTED, - GTK_SHADOW_IN, - NULL, w, "box", + GTK_SHADOW_NONE, w->allocation.x - WIN_ICON_BORDER, w->allocation.y - WIN_ICON_BORDER, w->allocation.width + 2 * WIN_ICON_BORDER, w->allocation.height + 2 * WIN_ICON_BORDER); + gtk_draw_focus (w->style, w->window, + w->allocation.x - WIN_ICON_BORDER, + w->allocation.y - WIN_ICON_BORDER, + w->allocation.width + 2 * WIN_ICON_BORDER, + w->allocation.height + 2 * WIN_ICON_BORDER); return FALSE; } _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits