summaryrefslogtreecommitdiff
path: root/src/caja-information-panel.c
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2016-06-18 16:57:12 -0400
committerraveit65 <[email protected]>2016-06-19 09:56:31 +0200
commit262492b5ef82faf66b3b6b78aea7d304a52cf2e0 (patch)
treed241ddf8b1c7e410a16e414f12f0849f68a99129 /src/caja-information-panel.c
parentde50df2018498f9eefdf08efd22e6c9e371a2ea1 (diff)
downloadcaja-262492b5ef82faf66b3b6b78aea7d304a52cf2e0.tar.bz2
caja-262492b5ef82faf66b3b6b78aea7d304a52cf2e0.tar.xz
GTK3: Fix caja information panel
The Caja information panel (information option in sidebar) was never fully ported to GTK3, probably still isn't. Set the .view style class on it, and exclude the rest of caja_information_panel_update_appearance as that code segfaults (at least with GTK 3.21) on dragging a background to the info panel. We now have a demo for background dragging in GTK3: A background can be dragged to the information sidebar and will be displayed. Won't be saved and won't appear in other Cajs navigation windows, something in the code that segfaulted no doubt needs to be fixed for that but that's for later. At least this widget finally works. It will follow any theme I have and no longer fails to update to BlackMATE or my own theme.
Diffstat (limited to 'src/caja-information-panel.c')
-rw-r--r--src/caja-information-panel.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/caja-information-panel.c b/src/caja-information-panel.c
index fa4632d0..d5611490 100644
--- a/src/caja-information-panel.c
+++ b/src/caja-information-panel.c
@@ -1045,6 +1045,11 @@ caja_information_panel_update_buttons (CajaInformationPanel *information_panel)
static void
caja_information_panel_update_appearance (CajaInformationPanel *information_panel)
{
+
+#if GTK_CHECK_VERSION(3,0,0)
+ gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (information_panel)),
+ GTK_STYLE_CLASS_VIEW);
+#else
EelBackground *background;
char *background_color;
char *background_image;
@@ -1102,6 +1107,7 @@ caja_information_panel_update_appearance (CajaInformationPanel *information_pane
g_signal_handlers_unblock_by_func (background,
G_CALLBACK (background_settings_changed_callback),
information_panel);
+#endif
}
static void