mirror of
https://github.com/rozniak/xfce-winxp-tc.git
synced 2026-05-01 11:41:30 +00:00
Enhancement: Fixes #52, Icon views are unthemed
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
/**
|
||||
* Default styles for the icon view
|
||||
*/
|
||||
iconview
|
||||
iconview:not(:selected)
|
||||
{
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
@@ -162,6 +162,11 @@ static void wintc_desktop_window_init(
|
||||
G_CALLBACK(on_window_map_event),
|
||||
NULL
|
||||
);
|
||||
|
||||
wintc_widget_add_style_class(
|
||||
GTK_WIDGET(self),
|
||||
"wintc-desktop"
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
@@ -292,8 +297,21 @@ static gboolean wintc_desktop_window_draw(
|
||||
|
||||
// FIXME: Just drawing default desktop background colour atm
|
||||
//
|
||||
cairo_set_source_rgb(cr, 0.0f, 0.298f, 0.596f);
|
||||
cairo_paint(cr);
|
||||
//cairo_set_source_rgb(cr, 0.0f, 0.298f, 0.596f);
|
||||
//cairo_paint(cr);
|
||||
|
||||
// FIXME: Just drawing the style background colour atm
|
||||
//
|
||||
GtkStyleContext* ctx = gtk_widget_get_style_context(widget);
|
||||
|
||||
gtk_render_background(
|
||||
ctx,
|
||||
cr,
|
||||
0.0f,
|
||||
0.0f,
|
||||
(gdouble) wnd_w,
|
||||
(gdouble) wnd_h
|
||||
);
|
||||
|
||||
// FIXME: Billy basic drawing of the wallpaper, if present
|
||||
//
|
||||
|
||||
@@ -534,13 +534,20 @@ static void wintc_explorer_window_set_property(
|
||||
|
||||
case PROP_INITIAL_PATH:
|
||||
{
|
||||
const gchar* uri = g_value_get_string(value);
|
||||
|
||||
if (!uri)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
// FIXME: We don't handle extended paths yet!
|
||||
//
|
||||
WinTCShextPathInfo path_info;
|
||||
|
||||
wintc_shext_path_info_demangle_uri(
|
||||
&path_info,
|
||||
g_value_get_string(value)
|
||||
uri
|
||||
);
|
||||
|
||||
wnd->initial_path = path_info.base_path;
|
||||
|
||||
Reference in New Issue
Block a user