From 73bc9f672f869f4685076ac6cafe76988cadbbf2 Mon Sep 17 00:00:00 2001 From: monsta Date: Thu, 4 Feb 2016 13:59:26 +0300 Subject: [GTK+3] don't set x/y align to 0.5 - it's the default value anyway --- capplets/about-me/eel-alert-dialog.c | 3 --- capplets/appearance/appearance-style.c | 1 - capplets/appearance/appearance-themes.c | 1 - capplets/keybindings/eggcellrendererkeys.c | 1 - 4 files changed, 6 deletions(-) (limited to 'capplets') diff --git a/capplets/about-me/eel-alert-dialog.c b/capplets/about-me/eel-alert-dialog.c index 1527164a..9fd4d52e 100644 --- a/capplets/about-me/eel-alert-dialog.c +++ b/capplets/about-me/eel-alert-dialog.c @@ -171,7 +171,6 @@ eel_alert_dialog_init (EelAlertDialog *dialog) gtk_label_set_use_markup (GTK_LABEL (dialog->details->primary_label), TRUE); #if GTK_CHECK_VERSION (3, 16, 0) gtk_label_set_xalign (GTK_LABEL (dialog->details->primary_label), 0.0); - gtk_label_set_yalign (GTK_LABEL (dialog->details->primary_label), 0.5); #else gtk_misc_set_alignment (GTK_MISC (dialog->details->primary_label), 0.0, 0.5); #endif @@ -180,7 +179,6 @@ eel_alert_dialog_init (EelAlertDialog *dialog) gtk_label_set_selectable (GTK_LABEL (dialog->details->secondary_label), TRUE); #if GTK_CHECK_VERSION (3, 16, 0) gtk_label_set_xalign (GTK_LABEL (dialog->details->secondary_label), 0.0); - gtk_label_set_yalign (GTK_LABEL (dialog->details->secondary_label), 0.5); #else gtk_misc_set_alignment (GTK_MISC (dialog->details->secondary_label), 0.0, 0.5); #endif @@ -189,7 +187,6 @@ eel_alert_dialog_init (EelAlertDialog *dialog) gtk_label_set_selectable (GTK_LABEL (dialog->details->details_label), TRUE); #if GTK_CHECK_VERSION (3, 16, 0) gtk_label_set_xalign (GTK_LABEL (dialog->details->details_label), 0.0); - gtk_label_set_yalign (GTK_LABEL (dialog->details->details_label), 0.5); #else gtk_misc_set_alignment (GTK_MISC (dialog->details->details_label), 0.0, 0.5); #endif diff --git a/capplets/appearance/appearance-style.c b/capplets/appearance/appearance-style.c index 21fe2002..f5722a1f 100644 --- a/capplets/appearance/appearance-style.c +++ b/capplets/appearance/appearance-style.c @@ -236,7 +236,6 @@ static void update_message_area(AppearanceData* data) gtk_label_set_line_wrap (GTK_LABEL (data->style_message_label), TRUE); #if GTK_CHECK_VERSION (3, 16, 0) gtk_label_set_xalign (GTK_LABEL (data->style_message_label), 0.0); - gtk_label_set_yalign (GTK_LABEL (data->style_message_label), 0.5); #else gtk_misc_set_alignment (GTK_MISC (data->style_message_label), 0.0, 0.5); #endif diff --git a/capplets/appearance/appearance-themes.c b/capplets/appearance/appearance-themes.c index a9b0af30..2fcff32b 100644 --- a/capplets/appearance/appearance-themes.c +++ b/capplets/appearance/appearance-themes.c @@ -666,7 +666,6 @@ theme_message_area_update (AppearanceData *data) gtk_label_set_line_wrap (GTK_LABEL (data->theme_message_label), TRUE); #if GTK_CHECK_VERSION (3, 16, 0) gtk_label_set_xalign (GTK_LABEL (data->theme_message_label), 0.0); - gtk_label_set_yalign (GTK_LABEL (data->theme_message_label), 0.5); #else gtk_misc_set_alignment (GTK_MISC (data->theme_message_label), 0.0, 0.5); #endif diff --git a/capplets/keybindings/eggcellrendererkeys.c b/capplets/keybindings/eggcellrendererkeys.c index 730931c5..1805d583 100644 --- a/capplets/keybindings/eggcellrendererkeys.c +++ b/capplets/keybindings/eggcellrendererkeys.c @@ -593,7 +593,6 @@ egg_cell_renderer_keys_start_editing (GtkCellRenderer *cell, label = gtk_label_new (NULL); #if GTK_CHECK_VERSION (3, 16, 0) gtk_label_set_xalign (GTK_LABEL (label), 0.0); - gtk_label_set_yalign (GTK_LABEL (label), 0.5); #else gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); #endif -- cgit v1.2.1