summaryrefslogtreecommitdiff
path: root/src/file-manager
diff options
context:
space:
mode:
authorMonsta <[email protected]>2015-07-20 15:43:07 +0300
committerMonsta <[email protected]>2015-07-20 16:36:11 +0300
commitd38397d5948cede78ff7a99112c18dfe8a8cfabf (patch)
treedc9164a88eaa883590a75e18c8a464d14dc5999d /src/file-manager
parentef5065ad9422477f1c35703f34d9bef53279a7ba (diff)
downloadcaja-d38397d5948cede78ff7a99112c18dfe8a8cfabf.tar.bz2
caja-d38397d5948cede78ff7a99112c18dfe8a8cfabf.tar.xz
file properties dialog: bring back two missing tabs
Notes and Image Properties tabs went missing after https://github.com/mate-desktop/caja/commit/451eef9b275ce006b270a3569d96e531e24dd15a fixes https://github.com/mate-desktop/caja/issues/433
Diffstat (limited to 'src/file-manager')
-rw-r--r--src/file-manager/fm-properties-window.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/file-manager/fm-properties-window.c b/src/file-manager/fm-properties-window.c
index d812505d..761e727b 100644
--- a/src/file-manager/fm-properties-window.c
+++ b/src/file-manager/fm-properties-window.c
@@ -4948,10 +4948,24 @@ static void
append_extension_pages (FMPropertiesWindow *window)
{
GList *providers;
+ GList *module_providers;
GList *p;
providers = caja_extensions_get_for_type (CAJA_TYPE_PROPERTY_PAGE_PROVIDER);
+ /* FIXME: we also need the property pages from two old modules that
+ * are not registered as proper extensions. This is going to work
+ * this way until some generic solution is introduced.
+ */
+ module_providers = caja_module_get_extensions_for_type (CAJA_TYPE_PROPERTY_PAGE_PROVIDER);
+ for (p = module_providers; p != NULL; p = p->next) {
+ const gchar *type_name = G_OBJECT_TYPE_NAME (G_OBJECT (p->data));
+ if (g_strcmp0 (type_name, "CajaNotesViewerProvider") == 0 ||
+ g_strcmp0 (type_name, "CajaImagePropertiesPageProvider") == 0) {
+ providers = g_list_prepend (providers, p->data);
+ }
+ }
+
for (p = providers; p != NULL; p = p->next) {
CajaPropertyPageProvider *provider;
GList *pages;