diff options
author | rbuj <[email protected]> | 2020-05-25 18:58:17 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2022-07-21 17:33:22 +0200 |
commit | 801f0b980f7d27197d343c75834b0e977a04fc9c (patch) | |
tree | 3316b4d70ea280a6ea5f329b4e293fa9e96c1170 /src | |
parent | 0ae07e1a2497c2a622415b696829766f1882e384 (diff) | |
download | caja-801f0b980f7d27197d343c75834b0e977a04fc9c.tar.bz2 caja-801f0b980f7d27197d343c75834b0e977a04fc9c.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 ceaed3ac..5a814315 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> |