diff options
author | monsta <[email protected]> | 2016-02-04 13:59:26 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-02-04 14:08:33 +0300 |
commit | 73bc9f672f869f4685076ac6cafe76988cadbbf2 (patch) | |
tree | 0f786f57f9e989e4607bb19d5b071eabdeec564a | |
parent | 529814000d3bdd36675d5a4bf7395f49600c5332 (diff) | |
download | mate-control-center-73bc9f672f869f4685076ac6cafe76988cadbbf2.tar.bz2 mate-control-center-73bc9f672f869f4685076ac6cafe76988cadbbf2.tar.xz |
[GTK+3] don't set x/y align to 0.5 - it's the default value anyway
-rw-r--r-- | capplets/about-me/eel-alert-dialog.c | 3 | ||||
-rw-r--r-- | capplets/appearance/appearance-style.c | 1 | ||||
-rw-r--r-- | capplets/appearance/appearance-themes.c | 1 | ||||
-rw-r--r-- | capplets/keybindings/eggcellrendererkeys.c | 1 | ||||
-rw-r--r-- | font-viewer/font-view.c | 1 | ||||
-rw-r--r-- | libslab/slab-section.c | 1 | ||||
-rw-r--r-- | libslab/tile-action.c | 1 | ||||
-rw-r--r-- | typing-break/drw-break-window.c | 6 |
8 files changed, 0 insertions, 15 deletions
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 diff --git a/font-viewer/font-view.c b/font-viewer/font-view.c index 08747f33..2b416a02 100644 --- a/font-viewer/font-view.c +++ b/font-viewer/font-view.c @@ -322,7 +322,6 @@ add_row (GtkWidget *table, GtkWidget *label = gtk_label_new (value); #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 diff --git a/libslab/slab-section.c b/libslab/slab-section.c index 2f763a6e..f28f5c41 100644 --- a/libslab/slab-section.c +++ b/libslab/slab-section.c @@ -157,7 +157,6 @@ slab_section_new_with_markup (const gchar * title_markup, SlabStyle style) gtk_label_set_use_markup (GTK_LABEL (section->title), TRUE); #if GTK_CHECK_VERSION (3, 16, 0) gtk_label_set_xalign (GTK_LABEL (section->title), 0.0); - gtk_label_set_yalign (GTK_LABEL (section->title), 0.5); #else gtk_misc_set_alignment (GTK_MISC (section->title), 0.0, 0.5); #endif diff --git a/libslab/tile-action.c b/libslab/tile-action.c index 886dec8a..c87f2dad 100644 --- a/libslab/tile-action.c +++ b/libslab/tile-action.c @@ -85,7 +85,6 @@ tile_action_set_menu_item_label (TileAction * this, const gchar * markup) gtk_label_set_use_markup (GTK_LABEL (label), TRUE); #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 diff --git a/typing-break/drw-break-window.c b/typing-break/drw-break-window.c index 5ebe92d7..59a502ee 100644 --- a/typing-break/drw-break-window.c +++ b/typing-break/drw-break-window.c @@ -282,12 +282,6 @@ drw_break_window_init (DrwBreakWindow *window) priv->clock_label = gtk_label_new (NULL); -#if GTK_CHECK_VERSION (3, 16, 0) - gtk_label_set_xalign (GTK_LABEL (priv->clock_label), 0.5); - gtk_label_set_yalign (GTK_LABEL (priv->clock_label), 0.5); -#else - gtk_misc_set_alignment (GTK_MISC (priv->clock_label), 0.5, 0.5); -#endif gtk_widget_show (priv->clock_label); gtk_box_pack_start (GTK_BOX (vbox), priv->clock_label, TRUE, TRUE, 8); |