[nautilus/new-properties-extension] f
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/new-properties-extension] f
- Date: Fri, 1 Jun 2018 11:13:09 +0000 (UTC)
commit 3a4e9bb8c836da55fb31f0f2eac3d304dc4e4f82
Author: Carlos Soriano <csoriano redhat com>
Date: Fri Jun 1 13:09:11 2018 +0200
f
.../nautilus-image-properties-page-provider.c | 2 +-
libnautilus-extension/nautilus-property-page-model.c | 18 ++++++++----------
src/nautilus-properties-window.c | 4 ++--
3 files changed, 11 insertions(+), 13 deletions(-)
---
diff --git a/extensions/image-properties/nautilus-image-properties-page-provider.c
b/extensions/image-properties/nautilus-image-properties-page-provider.c
index b4b8c2a7a..f2240852b 100644
--- a/extensions/image-properties/nautilus-image-properties-page-provider.c
+++ b/extensions/image-properties/nautilus-image-properties-page-provider.c
@@ -117,7 +117,7 @@ get_model (NautilusPropertyPageModelProvider *provider,
items = g_list_append (items, item2);
g_print ("HEEEREEEE\n");
- property_page = nautilus_property_page_model_new (NAUTILUS_IMAGE_PROPERTIES_PAGE_NAME,
+ property_page = nautilus_property_page_model_new (_("Image"),
sections,
items);
diff --git a/libnautilus-extension/nautilus-property-page-model.c
b/libnautilus-extension/nautilus-property-page-model.c
index 31fa7190b..86e0410ea 100644
--- a/libnautilus-extension/nautilus-property-page-model.c
+++ b/libnautilus-extension/nautilus-property-page-model.c
@@ -278,16 +278,14 @@ nautilus_property_page_model_class_init (NautilusPropertyPageModelClass *class)
G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE |
G_PARAM_READABLE));
g_object_class_install_property (G_OBJECT_CLASS (class),
PROP_SECTIONS,
- g_param_spec_object ("sections",
- "Sections",
- "Sections of the page",
- G_TYPE_POINTER,
- G_PARAM_READWRITE));
+ g_param_spec_pointer ("sections",
+ "Sections",
+ "Sections of the page",
+ G_PARAM_READWRITE));
g_object_class_install_property (G_OBJECT_CLASS (class),
PROP_ITEMS,
- g_param_spec_object ("items",
- "Items",
- "Items for the property page",
- G_TYPE_POINTER,
- G_PARAM_READWRITE));
+ g_param_spec_pointer ("items",
+ "Items",
+ "Items for the property page",
+ G_PARAM_READWRITE));
}
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index ce71b3e39..4c131f59f 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -4791,7 +4791,9 @@ append_extension_pages (NautilusPropertiesWindow *window)
page_widget = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
+ gtk_container_add (page_widget, gtk_label_new ("test"));
label = gtk_label_new (nautilus_property_page_model_get_title (page));
+ gtk_widget_show_all (page_widget);
gtk_notebook_append_page (window->notebook,
page_widget, label);
gtk_container_child_set (GTK_CONTAINER (window->notebook),
@@ -4802,8 +4804,6 @@ append_extension_pages (NautilusPropertiesWindow *window)
g_object_set_data (G_OBJECT (page_widget),
"is-extension-page",
page);
-
- g_object_unref (page);
}
nautilus_module_extension_list_free (model_providers);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]