diff options
author | rbuj <[email protected]> | 2020-05-25 18:58:17 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-06-13 17:32:57 +0200 |
commit | 270534f373b8fd1abceae02049b7aa21a2dca334 (patch) | |
tree | d1e2c019f13689a1627159f9d58d0a3c75d806d7 /src | |
parent | 8098baafdcbfc9d22ff95c648734d2f06481bf2d (diff) | |
download | caja-270534f373b8fd1abceae02049b7aa21a2dca334.tar.bz2 caja-270534f373b8fd1abceae02049b7aa21a2dca334.tar.xz |
caja-file-management-properties: Remove caja_file_management_properties_size_group_create
Diffstat (limited to 'src')
-rw-r--r-- | src/caja-file-management-properties.c | 32 | ||||
-rw-r--r-- | src/caja-file-management-properties.ui | 25 |
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> |