summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/caja-file-management-properties.c32
-rw-r--r--src/caja-file-management-properties.ui25
2 files changed, 25 insertions, 32 deletions
diff --git a/src/caja-file-management-properties.c b/src/caja-file-management-properties.c
index 2761a85b..eeeb6a27 100644
--- a/src/caja-file-management-properties.c
+++ b/src/caja-file-management-properties.c
@@ -198,29 +198,6 @@ enum
static void caja_file_management_properties_dialog_update_media_sensitivity (GtkBuilder *builder);
static void
-caja_file_management_properties_size_group_create (GtkBuilder *builder,
- char *prefix,
- int items)
-{
- GtkSizeGroup *size_group;
- int i;
- GtkWidget *widget = NULL;
-
- size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
-
- for (i = 0; i < items; i++)
- {
- char *item_name;
-
- item_name = g_strdup_printf ("%s_%d", prefix, i);
- widget = GTK_WIDGET (gtk_builder_get_object (builder, item_name));
- gtk_size_group_add_widget (size_group, widget);
- g_free (item_name);
- }
- g_object_unref (G_OBJECT (size_group));
-}
-
-static void
preferences_show_help (GtkWindow *parent,
char const *helpfile,
char const *sect_id)
@@ -1132,15 +1109,6 @@ caja_file_management_properties_dialog_setup (GtkBuilder *builder, GtkWindow *wi
GtkWidget *dialog;
/* setup UI */
- caja_file_management_properties_size_group_create (builder,
- "views_label",
- 5);
- caja_file_management_properties_size_group_create (builder,
- "captions_label",
- 3);
- caja_file_management_properties_size_group_create (builder,
- "preview_label",
- 5);
create_date_format_menu (builder);
/* setup preferences */
diff --git a/src/caja-file-management-properties.ui b/src/caja-file-management-properties.ui
index 86df982d..405d9222 100644
--- a/src/caja-file-management-properties.ui
+++ b/src/caja-file-management-properties.ui
@@ -2643,6 +2643,13 @@
<placeholder/>
</child>
</object>
+ <object class="GtkSizeGroup" id="caption_labels_sizegroup">
+ <widgets>
+ <widget name="captions_label_0"/>
+ <widget name="captions_label_1"/>
+ <widget name="captions_label_2"/>
+ </widgets>
+ </object>
<object class="GtkSizeGroup" id="media_labels_sizegroup">
<widgets>
<widget name="media_audio_cdda_label"/>
@@ -2654,4 +2661,22 @@
<widget name="media_other_action_label"/>
</widgets>
</object>
+ <object class="GtkSizeGroup" id="preview_labels_sizegroup">
+ <widgets>
+ <widget name="preview_label_0"/>
+ <widget name="preview_label_1"/>
+ <widget name="preview_label_2"/>
+ <widget name="preview_label_3"/>
+ <widget name="preview_label_4"/>
+ </widgets>
+ </object>
+ <object class="GtkSizeGroup" id="view_labels_sizegroup">
+ <widgets>
+ <widget name="views_label_0"/>
+ <widget name="views_label_1"/>
+ <widget name="views_label_2"/>
+ <widget name="views_label_4"/>
+ <widget name="views_label_3"/>
+ </widgets>
+ </object>
</interface>