summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authormonsta <[email protected]>2015-12-07 16:16:34 +0300
committermonsta <[email protected]>2015-12-07 16:16:34 +0300
commit6827a0c8a478e704c1f96dbfa3036ba6b1b9f652 (patch)
treec8df263c9946a21e2896a1db7d4e1fdb33ebe0c7 /share
parent645e58d55d8d6154b441e9fb7112be7bcbc5a2ac (diff)
downloadcaja-extensions-6827a0c8a478e704c1f96dbfa3036ba6b1b9f652.tar.bz2
caja-extensions-6827a0c8a478e704c1f96dbfa3036ba6b1b9f652.tar.xz
share: rename GtkBuilder variable
Diffstat (limited to 'share')
-rw-r--r--share/caja-share.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/share/caja-share.c b/share/caja-share.c
index 61be2d6..285631f 100644
--- a/share/caja-share.c
+++ b/share/caja-share.c
@@ -63,7 +63,7 @@ typedef struct {
char *path; /* Full path which is being shared */
CajaFileInfo *fileinfo; /* Caja file to which this page refers */
- GtkBuilder *xml;
+ GtkBuilder *ui;
GtkWidget *main; /* Widget that holds all the rest. Its "PropertyPage" GObject-data points to this PropertyPage structure */
@@ -627,7 +627,7 @@ free_property_page_cb (gpointer data)
g_free (page->path);
g_object_unref (page->fileinfo);
- g_object_unref (page->xml);
+ g_object_unref (page->ui);
g_free (page);
}
@@ -685,12 +685,12 @@ create_property_page (CajaFileInfo *fileinfo)
}
- page->xml = gtk_builder_new ();
- gtk_builder_set_translation_domain (page->xml, GETTEXT_PACKAGE);
- g_assert (gtk_builder_add_from_file (page->xml,
+ page->ui = gtk_builder_new ();
+ gtk_builder_set_translation_domain (page->ui, GETTEXT_PACKAGE);
+ g_assert (gtk_builder_add_from_file (page->ui,
INTERFACES_DIR"/share-dialog.ui", &error));
- page->main = GTK_WIDGET (gtk_builder_get_object (page->xml, "vbox1"));
+ page->main = GTK_WIDGET (gtk_builder_get_object (page->ui, "vbox1"));
g_assert (page->main != NULL);
g_object_set_data_full (G_OBJECT (page->main),
@@ -698,16 +698,16 @@ create_property_page (CajaFileInfo *fileinfo)
page,
free_property_page_cb);
- page->checkbutton_share_folder = GTK_WIDGET (gtk_builder_get_object (page->xml,"checkbutton_share_folder"));
- page->hbox_share_comment = GTK_WIDGET (gtk_builder_get_object (page->xml,"hbox_share_comment"));
- page->hbox_share_name = GTK_WIDGET (gtk_builder_get_object (page->xml,"hbox_share_name"));
- page->checkbutton_share_rw_ro = GTK_WIDGET (gtk_builder_get_object (page->xml,"checkbutton_share_rw_ro"));
- page->checkbutton_share_guest_ok = GTK_WIDGET (gtk_builder_get_object (page->xml,"checkbutton_share_guest_ok"));
- page->entry_share_name = GTK_WIDGET (gtk_builder_get_object (page->xml,"entry_share_name"));
- page->entry_share_comment = GTK_WIDGET (gtk_builder_get_object (page->xml,"entry_share_comment"));
- page->label_status = GTK_WIDGET (gtk_builder_get_object (page->xml,"label_status"));
- page->button_cancel = GTK_WIDGET (gtk_builder_get_object (page->xml,"button_cancel"));
- page->button_apply = GTK_WIDGET (gtk_builder_get_object (page->xml,"button_apply"));
+ page->checkbutton_share_folder = GTK_WIDGET (gtk_builder_get_object (page->ui,"checkbutton_share_folder"));
+ page->hbox_share_comment = GTK_WIDGET (gtk_builder_get_object (page->ui,"hbox_share_comment"));
+ page->hbox_share_name = GTK_WIDGET (gtk_builder_get_object (page->ui,"hbox_share_name"));
+ page->checkbutton_share_rw_ro = GTK_WIDGET (gtk_builder_get_object (page->ui,"checkbutton_share_rw_ro"));
+ page->checkbutton_share_guest_ok = GTK_WIDGET (gtk_builder_get_object (page->ui,"checkbutton_share_guest_ok"));
+ page->entry_share_name = GTK_WIDGET (gtk_builder_get_object (page->ui,"entry_share_name"));
+ page->entry_share_comment = GTK_WIDGET (gtk_builder_get_object (page->ui,"entry_share_comment"));
+ page->label_status = GTK_WIDGET (gtk_builder_get_object (page->ui,"label_status"));
+ page->button_cancel = GTK_WIDGET (gtk_builder_get_object (page->ui,"button_cancel"));
+ page->button_apply = GTK_WIDGET (gtk_builder_get_object (page->ui,"button_apply"));
/* Sanity check so that we don't screw up the Glade file */
g_assert (page->checkbutton_share_folder != NULL