summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2017-03-18 13:24:09 +0300
committermonsta <[email protected]>2017-03-18 13:54:13 +0300
commit5c52f7867c7e46897b6c4966cade4975042f383e (patch)
tree77fb28c0022f2fa69840cfb2c0c93232f3fe68e1
parent8a7710504a73860678f5a46ea2bdf8f929fad000 (diff)
downloadmate-screensaver-5c52f7867c7e46897b6c4966cade4975042f383e.tar.bz2
mate-screensaver-5c52f7867c7e46897b6c4966cade4975042f383e.tar.xz
copy theme dialog: fix build warning about wrong variable type
and set grid property only once, after grid is created
-rw-r--r--src/copy-theme-dialog.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/copy-theme-dialog.c b/src/copy-theme-dialog.c
index 470f192..fe7610d 100644
--- a/src/copy-theme-dialog.c
+++ b/src/copy-theme-dialog.c
@@ -226,6 +226,7 @@ copy_theme_dialog_init (CopyThemeDialog *dlg)
grid = gtk_grid_new ();
gtk_grid_set_row_spacing (GTK_GRID (grid), 4);
gtk_grid_set_column_spacing (GTK_GRID (grid), 4);
+ gtk_grid_set_column_homogeneous (GTK_GRID (grid), TRUE);
create_titled_label (GTK_GRID (grid), 0,
&label,
@@ -530,14 +531,12 @@ create_titled_label (GtkGrid *grid,
gtk_widget_set_halign (*title_widget, GTK_ALIGN_END);
gtk_widget_set_valign (*title_widget, GTK_ALIGN_START);
- gtk_grid_set_column_homogeneous (*title_widget, TRUE);
gtk_grid_attach (grid, *title_widget,
0, row, 1, 1);
gtk_widget_show (*title_widget);
*label_text_widget = gtk_label_new ("");
gtk_label_set_ellipsize (GTK_LABEL (*label_text_widget), PANGO_ELLIPSIZE_END);
- gtk_grid_set_column_homogeneous (*label_text_widget, TRUE);
gtk_widget_set_hexpand (*label_text_widget, TRUE);
gtk_grid_attach (grid, *label_text_widget,
1, row, 1, 1);