[easytag/wip/application-window: 76/79] Remove use of deprecated GtkMisc xalign property



commit 8f7c13d26c0d263ae4886e7c5156dc584d641490
Author: David King <amigadave amigadave com>
Date:   Thu Jul 31 21:11:36 2014 +0200

    Remove use of deprecated GtkMisc xalign property
    
    Use GtkWidget halign property instead.

 src/cddb_dialog.c        |    6 +++---
 src/file_area.c          |   24 ++++++++++++------------
 src/load_files_dialog.c  |    2 +-
 src/preferences_dialog.c |   27 +++++++++++++--------------
 src/scan_dialog.c        |   34 +++++++++++++++++-----------------
 src/search_dialog.c      |    4 ++--
 src/tag_area.c           |   29 ++++++++++++++---------------
 7 files changed, 62 insertions(+), 64 deletions(-)
---
diff --git a/src/cddb_dialog.c b/src/cddb_dialog.c
index 55b554f..3a1fe56 100644
--- a/src/cddb_dialog.c
+++ b/src/cddb_dialog.c
@@ -2964,7 +2964,7 @@ create_cddb_dialog (EtCDDBDialog *self)
     gtk_box_pack_start(GTK_BOX(notebookvbox),hbox,FALSE,FALSE,0);
 
     Label = gtk_label_new(_("Request CDDB"));
-    gtk_misc_set_alignment(GTK_MISC(Label),1.0,0.5);
+    gtk_widget_set_halign (Label, GTK_ALIGN_END);
     gtk_box_pack_start(GTK_BOX(hbox),Label,FALSE,FALSE,0);
 
     // Button to generate CddbId and request string from the selected files
@@ -3017,7 +3017,7 @@ create_cddb_dialog (EtCDDBDialog *self)
     gtk_box_pack_start(GTK_BOX(notebookvbox),hbox,FALSE,FALSE,0);
 
     Label = gtk_label_new(_("Words:"));
-    gtk_misc_set_alignment(GTK_MISC(Label),1.0,0.5);
+    gtk_widget_set_halign (Label, GTK_ALIGN_END);
     gtk_box_pack_start(GTK_BOX(hbox),Label,FALSE,FALSE,0);
 
     g_assert (priv->search_string_model == NULL);
@@ -3233,7 +3233,7 @@ create_cddb_dialog (EtCDDBDialog *self)
     gtk_container_add(GTK_CONTAINER(Frame),hbox);
 
     Label = gtk_label_new(_("Search:"));
-    gtk_misc_set_alignment(GTK_MISC(Label),1.0,0.5);
+    gtk_widget_set_halign (Label, GTK_ALIGN_END);
     gtk_box_pack_start(GTK_BOX(hbox),Label,FALSE,FALSE,0);
 
     g_assert (priv->search_string_in_result_model == NULL);
diff --git a/src/file_area.c b/src/file_area.c
index 2529898..b6927b4 100644
--- a/src/file_area.c
+++ b/src/file_area.c
@@ -119,8 +119,8 @@ create_file_area (EtFileArea *self)
     priv->version_value_label = gtk_label_new ("");
     gtk_grid_attach (GTK_GRID (priv->header_grid), priv->version_value_label,
                      1, 0, 1, 1);
-    gtk_misc_set_alignment (GTK_MISC (priv->version_label), 1.0, 0.5);
-    gtk_misc_set_alignment (GTK_MISC (priv->version_value_label), 0.0, 0.5);
+    gtk_widget_set_halign (priv->version_label, GTK_ALIGN_END);
+    gtk_widget_set_halign (priv->version_value_label, GTK_ALIGN_START);
 
     priv->bitrate_label = gtk_label_new (_("Bitrate:"));
     gtk_grid_attach (GTK_GRID (priv->header_grid), priv->bitrate_label, 0, 1,
@@ -128,8 +128,8 @@ create_file_area (EtFileArea *self)
     priv->bitrate_value_label = gtk_label_new ("");
     gtk_grid_attach (GTK_GRID (priv->header_grid), priv->bitrate_value_label,
                      1, 1, 1, 1);
-    gtk_misc_set_alignment (GTK_MISC (priv->bitrate_label), 1.0, 0.5);
-    gtk_misc_set_alignment (GTK_MISC (priv->bitrate_value_label), 0.0, 0.5);
+    gtk_widget_set_halign (priv->bitrate_label, GTK_ALIGN_END);
+    gtk_widget_set_halign (priv->bitrate_value_label, GTK_ALIGN_START);
 
     /* Translators: Please try to keep this string as short as possible as it
      * is shown in a narrow column. */
@@ -139,8 +139,8 @@ create_file_area (EtFileArea *self)
     priv->samplerate_value_label = gtk_label_new ("");
     gtk_grid_attach (GTK_GRID (priv->header_grid),
                      priv->samplerate_value_label, 1, 2, 1, 1);
-    gtk_misc_set_alignment (GTK_MISC (priv->samplerate_label), 1.0, 0.5);
-    gtk_misc_set_alignment (GTK_MISC (priv->samplerate_value_label), 0.0, 0.5);
+    gtk_widget_set_halign (priv->samplerate_label, GTK_ALIGN_END);
+    gtk_widget_set_halign (priv->samplerate_value_label, GTK_ALIGN_START);
 
     separator = gtk_separator_new (GTK_ORIENTATION_VERTICAL);
     gtk_grid_attach (GTK_GRID (priv->header_grid), separator, 2, 0, 1, 4);
@@ -151,8 +151,8 @@ create_file_area (EtFileArea *self)
     priv->mode_value_label = gtk_label_new ("");
     gtk_grid_attach (GTK_GRID (priv->header_grid), priv->mode_value_label, 4,
                      0, 1, 1);
-    gtk_misc_set_alignment (GTK_MISC (priv->mode_label), 1.0, 0.5);
-    gtk_misc_set_alignment (GTK_MISC (priv->mode_value_label), 0.0, 0.5);
+    gtk_widget_set_halign (priv->mode_label, GTK_ALIGN_END);
+    gtk_widget_set_halign (priv->mode_value_label, GTK_ALIGN_START);
 
     priv->size_label = gtk_label_new (_("Size:"));
     gtk_grid_attach (GTK_GRID (priv->header_grid), priv->size_label, 3, 1, 1,
@@ -160,8 +160,8 @@ create_file_area (EtFileArea *self)
     priv->size_value_label = gtk_label_new ("");
     gtk_grid_attach (GTK_GRID (priv->header_grid), priv->size_value_label, 4,
                      1, 1, 1);
-    gtk_misc_set_alignment (GTK_MISC (priv->size_label), 1.0, 0.5);
-    gtk_misc_set_alignment (GTK_MISC (priv->size_value_label), 0.0, 0.5);
+    gtk_widget_set_halign (priv->size_label, GTK_ALIGN_END);
+    gtk_widget_set_halign (priv->size_value_label, GTK_ALIGN_START);
 
     priv->duration_label = gtk_label_new (_("Duration:"));
     gtk_grid_attach (GTK_GRID (priv->header_grid), priv->duration_label, 3, 2,
@@ -169,8 +169,8 @@ create_file_area (EtFileArea *self)
     priv->duration_value_label = gtk_label_new ("");
     gtk_grid_attach (GTK_GRID (priv->header_grid), priv->duration_value_label,
                      4, 2, 1, 1);
-    gtk_misc_set_alignment (GTK_MISC (priv->duration_label), 1.0, 0.5);
-    gtk_misc_set_alignment (GTK_MISC (priv->duration_value_label), 0.0, 0.5);
+    gtk_widget_set_halign (priv->duration_label, GTK_ALIGN_END);
+    gtk_widget_set_halign (priv->duration_value_label, GTK_ALIGN_START);
 
     g_signal_connect_swapped (MainSettings, "changed::file-show-header",
                               G_CALLBACK (on_file_show_header_changed), self);
diff --git a/src/load_files_dialog.c b/src/load_files_dialog.c
index b8bf46e..fa588ee 100644
--- a/src/load_files_dialog.c
+++ b/src/load_files_dialog.c
@@ -862,7 +862,7 @@ create_load_files_dialog (EtLoadFilesDialog *self)
                                                    G_TYPE_STRING);
 
     Label = gtk_label_new(_("File:"));
-    gtk_misc_set_alignment(GTK_MISC(Label),1.0,0.5);
+    gtk_widget_set_halign (Label, GTK_ALIGN_END);
     gtk_box_pack_start(GTK_BOX(hbox),Label,FALSE,FALSE,0);
     priv->file_to_load_combo = 
gtk_combo_box_new_with_model_and_entry(GTK_TREE_MODEL(priv->file_to_load_model));
     g_object_unref (priv->file_to_load_model);
diff --git a/src/preferences_dialog.c b/src/preferences_dialog.c
index d7d3739..6199217 100644
--- a/src/preferences_dialog.c
+++ b/src/preferences_dialog.c
@@ -585,8 +585,7 @@ create_preferences_dialog (EtPreferencesDialog *self)
     Label = gtk_label_new(_("Rules to apply if some characters can't be converted to "
         "the system character encoding when writing filename:"));
     gtk_grid_attach (GTK_GRID (Table), Label, 0, 0, 2, 1);
-    gtk_misc_set_alignment(GTK_MISC(Label),0,0.5);
-
+    gtk_widget_set_halign (Label, GTK_ALIGN_START);
 
     FilenameCharacterSetOther = gtk_radio_button_new_with_label(NULL,_("Try another "
         "character encoding"));
@@ -741,7 +740,7 @@ create_preferences_dialog (EtPreferencesDialog *self)
     
     Label = gtk_label_new(_("For Vorbis tags, selected fields will be split at dashes and saved as separate 
tags"));
     gtk_grid_attach (GTK_GRID (Table), Label, 0, 0, 2, 1);
-    gtk_misc_set_alignment(GTK_MISC(Label),0,0.5);
+    gtk_widget_set_halign (Label, GTK_ALIGN_START);
 
     VorbisSplitFieldTitle = gtk_check_button_new_with_label(_("Title"));
     VorbisSplitFieldArtist = gtk_check_button_new_with_label(_("Artist"));
@@ -878,7 +877,7 @@ create_preferences_dialog (EtPreferencesDialog *self)
     /* ID3v2 tag version */
     priv->LabelId3v2Version = gtk_label_new (_("Version:"));
     gtk_grid_attach (GTK_GRID (Table), priv->LabelId3v2Version, 0, 1, 2, 1);
-    gtk_misc_set_alignment (GTK_MISC (priv->LabelId3v2Version), 0, 0.5);
+    gtk_widget_set_halign (priv->LabelId3v2Version, GTK_ALIGN_START);
 
     priv->FileWritingId3v2VersionCombo = gtk_combo_box_text_new ();
     gtk_widget_set_tooltip_text (priv->FileWritingId3v2VersionCombo,
@@ -903,7 +902,7 @@ create_preferences_dialog (EtPreferencesDialog *self)
     /* Charset */
     priv->LabelId3v2Charset = gtk_label_new (_("Charset:"));
     gtk_grid_attach (GTK_GRID (Table), priv->LabelId3v2Charset, 0, 2, 5, 1);
-    gtk_misc_set_alignment (GTK_MISC (priv->LabelId3v2Charset), 0, 0.5);
+    gtk_widget_set_halign (priv->LabelId3v2Charset, GTK_ALIGN_START);
 
     /* Unicode. */
     priv->FileWritingId3v2UseUnicodeCharacterSet = gtk_radio_button_new_with_label (NULL, _("Unicode "));
@@ -962,8 +961,8 @@ create_preferences_dialog (EtPreferencesDialog *self)
     priv->LabelAdditionalId3v2IconvOptions = gtk_label_new (_("Additional settings for iconv():"));
     gtk_grid_attach (GTK_GRID (Table), priv->LabelAdditionalId3v2IconvOptions,
                      2, 5, 3, 1);
-    gtk_misc_set_alignment (GTK_MISC (priv->LabelAdditionalId3v2IconvOptions),
-                            0, 0.5);
+    gtk_widget_set_halign (priv->LabelAdditionalId3v2IconvOptions,
+                           GTK_ALIGN_START);
 
     priv->FileWritingId3v2IconvOptionsNo = gtk_radio_button_new_with_label (NULL,
                                                                             _("No"));
@@ -1038,7 +1037,7 @@ create_preferences_dialog (EtPreferencesDialog *self)
     /* Id3V1 writing character set */
     priv->LabelId3v1Charset = gtk_label_new (_("Charset:"));
     gtk_grid_attach (GTK_GRID (Table), priv->LabelId3v1Charset, 0, 1, 4, 1);
-    gtk_misc_set_alignment (GTK_MISC (priv->LabelId3v1Charset), 0, 0.5);
+    gtk_widget_set_halign (priv->LabelId3v1Charset, GTK_ALIGN_START);
 
     priv->FileWritingId3v1CharacterSetCombo = gtk_combo_box_text_new();
     gtk_grid_attach (GTK_GRID (Table), priv->FileWritingId3v1CharacterSetCombo,
@@ -1058,8 +1057,8 @@ create_preferences_dialog (EtPreferencesDialog *self)
     priv->LabelAdditionalId3v1IconvOptions = gtk_label_new (_("Additional settings for iconv():"));
     gtk_grid_attach (GTK_GRID (Table), priv->LabelAdditionalId3v1IconvOptions,
                      1, 3, 3, 1);
-    gtk_misc_set_alignment (GTK_MISC (priv->LabelAdditionalId3v1IconvOptions),
-                            0, 0.5);
+    gtk_widget_set_halign (priv->LabelAdditionalId3v1IconvOptions,
+                           GTK_ALIGN_START);
 
     priv->FileWritingId3v1IconvOptionsNo = gtk_radio_button_new_with_label (NULL,
                                                                             _("No"));
@@ -1476,7 +1475,7 @@ create_preferences_dialog (EtPreferencesDialog *self)
 
     Label = gtk_label_new(_("Host Name:"));
     gtk_grid_attach (GTK_GRID (Table), Label, 1, 1, 1, 1);
-    gtk_misc_set_alignment(GTK_MISC(Label),1,0.5);
+    gtk_widget_set_halign (Label, GTK_ALIGN_END);
     CddbProxyName = gtk_entry_new();
     gtk_grid_attach (GTK_GRID (Table), CddbProxyName, 2, 1, 1, 1);
     g_settings_bind (MainSettings, "cddb-proxy-hostname",
@@ -1486,7 +1485,7 @@ create_preferences_dialog (EtPreferencesDialog *self)
     gtk_widget_set_tooltip_text(CddbProxyName,_("Name of the proxy server."));
     Label = gtk_label_new (_("Port:"));
     gtk_grid_attach (GTK_GRID (Table), Label, 3, 1, 1, 1);
-    gtk_misc_set_alignment(GTK_MISC(Label),1,0.5);
+    gtk_widget_set_halign (Label, GTK_ALIGN_END);
     CddbProxyPort = gtk_spin_button_new_with_range (0.0, 65535.0, 1.0);
     g_settings_bind (MainSettings, "cddb-proxy-port", CddbProxyPort, "value",
                      G_SETTINGS_BIND_DEFAULT);
@@ -1497,7 +1496,7 @@ create_preferences_dialog (EtPreferencesDialog *self)
     gtk_widget_set_tooltip_text(CddbProxyPort,_("Port of the proxy server."));
     Label = gtk_label_new(_("User Name:"));
     gtk_grid_attach (GTK_GRID (Table), Label, 1, 2, 1, 1);
-    gtk_misc_set_alignment(GTK_MISC(Label),1,0.5);
+    gtk_widget_set_halign (Label, GTK_ALIGN_END);
     CddbProxyUserName = gtk_entry_new();
     g_settings_bind (MainSettings, "cddb-proxy-username", CddbProxyUserName,
                      "text", G_SETTINGS_BIND_DEFAULT);
@@ -1507,7 +1506,7 @@ create_preferences_dialog (EtPreferencesDialog *self)
     gtk_widget_set_tooltip_text(CddbProxyUserName,_("Name of user for the the proxy server."));
     Label = gtk_label_new(_("User Password:"));
     gtk_grid_attach (GTK_GRID (Table), Label, 3, 2, 1, 1);
-    gtk_misc_set_alignment(GTK_MISC(Label),1,0.5);
+    gtk_widget_set_halign (Label, GTK_ALIGN_END);
     CddbProxyUserPassword = gtk_entry_new();
     gtk_entry_set_visibility (GTK_ENTRY (CddbProxyUserPassword), FALSE);
     g_settings_bind (MainSettings, "cddb-proxy-password", CddbProxyUserPassword,
diff --git a/src/scan_dialog.c b/src/scan_dialog.c
index cd1620e..8db66fa 100644
--- a/src/scan_dialog.c
+++ b/src/scan_dialog.c
@@ -3014,55 +3014,55 @@ create_scan_dialog (EtScanDialog *self)
     gtk_container_set_border_width(GTK_CONTAINER(Table),4);
     Label = gtk_label_new(_("%a: artist"));
     et_grid_attach_margins (GTK_GRID (Table), Label, 0, 0, 1, 1, 6, 0);
-    gtk_misc_set_alignment(GTK_MISC(Label),0,0.5);
+    gtk_widget_set_halign (Label, GTK_ALIGN_START);
     Label = gtk_label_new(_("%z: album artist"));
     et_grid_attach_margins (GTK_GRID (Table), Label, 0, 1, 1, 1, 6, 0);
-    gtk_misc_set_alignment(GTK_MISC(Label),0,0.5);
+    gtk_widget_set_halign (Label, GTK_ALIGN_START);
     Label = gtk_label_new(_("%b: album"));
     et_grid_attach_margins (GTK_GRID (Table), Label, 0, 2, 1, 1, 6, 0);
-    gtk_misc_set_alignment(GTK_MISC(Label),0,0.5);
+    gtk_widget_set_halign (Label, GTK_ALIGN_START);
     Label = gtk_label_new(_("%c: comment"));
     et_grid_attach_margins (GTK_GRID (Table), Label, 0, 3, 1, 1, 6, 0);
-    gtk_misc_set_alignment(GTK_MISC(Label),0,0.5);
+    gtk_widget_set_halign (Label, GTK_ALIGN_START);
     Label = gtk_label_new(_("%p: composer"));
     et_grid_attach_margins (GTK_GRID (Table), Label, 0, 4, 1, 1, 6, 0);
-    gtk_misc_set_alignment(GTK_MISC(Label),0,0.5);
+    gtk_widget_set_halign (Label, GTK_ALIGN_START);
     Label = gtk_label_new(_("%r: copyright"));
     et_grid_attach_margins (GTK_GRID (Table), Label, 0, 5, 1, 1, 6, 0);
-    gtk_misc_set_alignment(GTK_MISC(Label),0,0.5);
+    gtk_widget_set_halign (Label, GTK_ALIGN_START);
     Label = gtk_label_new(_("%d: disc number"));
     et_grid_attach_margins (GTK_GRID (Table), Label, 1, 0, 1, 1, 6, 0);
-    gtk_misc_set_alignment(GTK_MISC(Label),0,0.5);
+    gtk_widget_set_halign (Label, GTK_ALIGN_START);
     Label = gtk_label_new(_("%e: encoded by"));
     et_grid_attach_margins (GTK_GRID (Table), Label, 1, 1, 1, 1, 6, 0);
-    gtk_misc_set_alignment(GTK_MISC(Label),0,0.5);
+    gtk_widget_set_halign (Label, GTK_ALIGN_START);
     Label = gtk_label_new(_("%g: genre"));
     et_grid_attach_margins (GTK_GRID (Table), Label, 1, 2, 1, 1, 6, 0);
-    gtk_misc_set_alignment(GTK_MISC(Label),0,0.5);
+    gtk_widget_set_halign (Label, GTK_ALIGN_START);
     Label = gtk_label_new(_("%i: ignored"));
     et_grid_attach_margins (GTK_GRID (Table), Label, 1, 3, 1, 1, 6, 0);
-    gtk_misc_set_alignment(GTK_MISC(Label),0,0.5);
+    gtk_widget_set_halign (Label, GTK_ALIGN_START);
     Label = gtk_label_new(_("%l: number of tracks"));
     et_grid_attach_margins (GTK_GRID (Table), Label, 1, 4, 1, 1, 6, 0);
-    gtk_misc_set_alignment(GTK_MISC(Label),0,0.5);
+    gtk_widget_set_halign (Label, GTK_ALIGN_START);
     Label = gtk_label_new(_("%o: orig. artist"));
     et_grid_attach_margins (GTK_GRID (Table), Label, 1, 5, 1, 1, 6, 0);
-    gtk_misc_set_alignment(GTK_MISC(Label),0,0.5);
+    gtk_widget_set_halign (Label, GTK_ALIGN_START);
     Label = gtk_label_new(_("%n: track"));
     et_grid_attach_margins (GTK_GRID (Table), Label, 2, 0, 1, 1, 6, 0);
-    gtk_misc_set_alignment(GTK_MISC(Label),0,0.5);
+    gtk_widget_set_halign (Label, GTK_ALIGN_START);
     Label = gtk_label_new(_("%t: title"));
     et_grid_attach_margins (GTK_GRID (Table), Label, 2, 1, 1, 1, 6, 0);
-    gtk_misc_set_alignment(GTK_MISC(Label),0,0.5);
+    gtk_widget_set_halign (Label, GTK_ALIGN_START);
     Label = gtk_label_new(_("%u: URL"));
     et_grid_attach_margins (GTK_GRID (Table), Label, 2, 2, 1, 1, 6, 0);
-    gtk_misc_set_alignment(GTK_MISC(Label),0,0.5);
+    gtk_widget_set_halign (Label, GTK_ALIGN_START);
     Label = gtk_label_new (_("%x: number of discs"));
     et_grid_attach_margins (GTK_GRID (Table), Label, 2, 3, 1, 1, 6, 0);
-    gtk_misc_set_alignment (GTK_MISC (Label), 0, 0.5);
+    gtk_widget_set_halign (Label, GTK_ALIGN_START);
     Label = gtk_label_new(_("%y: year"));
     et_grid_attach_margins (GTK_GRID (Table), Label, 2, 4, 1, 1, 6, 0);
-    gtk_misc_set_alignment(GTK_MISC(Label),0,0.5);
+    gtk_widget_set_halign (Label, GTK_ALIGN_START);
 
     /*
      * Masks Editor
diff --git a/src/search_dialog.c b/src/search_dialog.c
index 491c5e2..bde268c 100644
--- a/src/search_dialog.c
+++ b/src/search_dialog.c
@@ -628,7 +628,7 @@ create_search_dialog (EtSearchDialog *self)
     priv->search_string_model = gtk_list_store_new (MISC_COMBO_COUNT, G_TYPE_STRING);
 
     Label = gtk_label_new(_("Search:"));
-    gtk_misc_set_alignment(GTK_MISC(Label),1.0,0.5);
+    gtk_widget_set_halign (Label, GTK_ALIGN_END);
     gtk_grid_attach (GTK_GRID (Table), Label, 0, 0, 1, 1);
     priv->search_string_combo = gtk_combo_box_new_with_model_and_entry (GTK_TREE_MODEL 
(priv->search_string_model));
     g_object_unref (priv->search_string_model);
@@ -646,7 +646,7 @@ create_search_dialog (EtSearchDialog *self)
 
     // Where...
     Label = gtk_label_new(_("In:"));
-    gtk_misc_set_alignment(GTK_MISC(Label),1.0,0.5);
+    gtk_widget_set_halign (Label, GTK_ALIGN_END);
     gtk_grid_attach (GTK_GRID (Table), Label, 0, 1, 1, 1);
     /* Translators: This option is for the previous 'in' option. For instance,
      * translate this as "Search" "In:" "the Filename". */
diff --git a/src/tag_area.c b/src/tag_area.c
index 82a7aa2..f86b54e 100644
--- a/src/tag_area.c
+++ b/src/tag_area.c
@@ -2097,7 +2097,7 @@ create_tag_area (EtTagArea *self)
     priv->title_label = gtk_label_new (_("Title:"));
     et_grid_attach_full (GTK_GRID (table), priv->title_label, 0, 0, 1, 1,
                          FALSE, FALSE, TablePadding, TablePadding);
-    gtk_misc_set_alignment (GTK_MISC (priv->title_label), 1.0, 0.5);
+    gtk_widget_set_halign (priv->title_label, GTK_ALIGN_END);
 
     priv->title_entry = gtk_entry_new ();
     gtk_entry_set_icon_from_icon_name (GTK_ENTRY (priv->title_entry),
@@ -2114,7 +2114,7 @@ create_tag_area (EtTagArea *self)
     priv->artist_label = gtk_label_new (_("Artist:"));
     et_grid_attach_full (GTK_GRID (table), priv->artist_label, 0, 1, 1, 1,
                          FALSE, FALSE, TablePadding, TablePadding);
-    gtk_misc_set_alignment (GTK_MISC (priv->artist_label), 1.0, 0.5);
+    gtk_widget_set_halign (priv->artist_label, GTK_ALIGN_END);
 
     priv->artist_entry = gtk_entry_new ();
     gtk_entry_set_icon_from_icon_name (GTK_ENTRY (priv->artist_entry),
@@ -2131,7 +2131,7 @@ create_tag_area (EtTagArea *self)
     priv->album_artist_label = gtk_label_new (_("Album artist:"));
     et_grid_attach_full (GTK_GRID (table), priv->album_artist_label, 0, 2, 1,
                          1, FALSE, FALSE, TablePadding, TablePadding);
-    gtk_misc_set_alignment (GTK_MISC (priv->album_artist_label), 1.0, 0.5);
+    gtk_widget_set_halign (priv->album_artist_label, GTK_ALIGN_END);
 
     priv->album_artist_entry = gtk_entry_new ();
     gtk_entry_set_icon_from_icon_name (GTK_ENTRY (priv->album_artist_entry),
@@ -2148,7 +2148,7 @@ create_tag_area (EtTagArea *self)
     priv->album_label = gtk_label_new (_("Album:"));
     et_grid_attach_full (GTK_GRID (table), priv->album_label, 0, 3, 1, 1,
                          FALSE, FALSE, TablePadding, TablePadding);
-    gtk_misc_set_alignment (GTK_MISC (priv->album_label), 1.0, 0.5);
+    gtk_widget_set_halign (priv->album_label, GTK_ALIGN_END);
 
     priv->album_entry = gtk_entry_new ();
     gtk_entry_set_icon_from_icon_name (GTK_ENTRY (priv->album_entry),
@@ -2165,7 +2165,7 @@ create_tag_area (EtTagArea *self)
     priv->disc_number_label = gtk_label_new (_("CD:"));
     et_grid_attach_full (GTK_GRID (table), priv->disc_number_label, 8, 3, 1, 1,
                          FALSE, FALSE, TablePadding, TablePadding);
-    gtk_misc_set_alignment (GTK_MISC (priv->disc_number_label), 1.0, 0.5);
+    gtk_widget_set_halign (priv->disc_number_label, GTK_ALIGN_END);
 
     priv->disc_number_entry = gtk_entry_new ();
     gtk_entry_set_icon_from_icon_name (GTK_ENTRY (priv->disc_number_entry),
@@ -2185,7 +2185,7 @@ create_tag_area (EtTagArea *self)
     priv->year_label = gtk_label_new (_("Year:"));
     et_grid_attach_full (GTK_GRID (table), priv->year_label, 0, 4, 1, 1, FALSE,
                          FALSE, TablePadding, TablePadding);
-    gtk_misc_set_alignment (GTK_MISC (priv->year_label), 1.0, 0.5);
+    gtk_widget_set_halign (priv->year_label, GTK_ALIGN_END);
 
     priv->year_entry = gtk_entry_new ();
     gtk_entry_set_max_length (GTK_ENTRY (priv->year_entry), 4);
@@ -2231,7 +2231,7 @@ create_tag_area (EtTagArea *self)
     priv->track_label = gtk_label_new (_("Track #:"));
     et_grid_attach_full (GTK_GRID (table), priv->track_label, 5, 4, 1, 1,
                          FALSE, FALSE, TablePadding, TablePadding);
-    gtk_misc_set_alignment (GTK_MISC (priv->track_label), 1.0, 0.5);
+    gtk_widget_set_halign (priv->track_label, GTK_ALIGN_END);
 
     if (priv->track_combo_model != NULL)
     {
@@ -2260,7 +2260,6 @@ create_tag_area (EtTagArea *self)
     label = gtk_label_new ("/");
     et_grid_attach_full (GTK_GRID (table), label, 7, 4, 1, 1, FALSE, FALSE,
                          TablePadding, TablePadding);
-    gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5);
 
     priv->track_number_button = gtk_button_new ();
     gtk_widget_set_size_request (priv->track_number_button, MButtonSize,
@@ -2295,7 +2294,7 @@ create_tag_area (EtTagArea *self)
     priv->genre_label = gtk_label_new (_("Genre:"));
     et_grid_attach_full (GTK_GRID (table), priv->genre_label, 0, 5, 1, 1,
                          FALSE, FALSE, TablePadding, TablePadding);
-    gtk_misc_set_alignment (GTK_MISC (priv->genre_label), 1.0, 0.5);
+    gtk_widget_set_halign (priv->genre_label, GTK_ALIGN_END);
 
     if (priv->genre_combo_model != NULL)
     {
@@ -2338,7 +2337,7 @@ create_tag_area (EtTagArea *self)
     priv->comment_label = gtk_label_new (_("Comment:"));
     et_grid_attach_full (GTK_GRID (table), priv->comment_label, 0, 6, 1, 1,
                          FALSE, FALSE, TablePadding, TablePadding);
-    gtk_misc_set_alignment (GTK_MISC (priv->comment_label), 1.0, 0.5);
+    gtk_widget_set_halign (priv->comment_label, GTK_ALIGN_END);
 
     priv->comment_entry = gtk_entry_new ();
     gtk_entry_set_icon_from_icon_name (GTK_ENTRY (priv->comment_entry),
@@ -2355,7 +2354,7 @@ create_tag_area (EtTagArea *self)
     priv->composer_label = gtk_label_new (_("Composer:"));
     et_grid_attach_full (GTK_GRID (table), priv->composer_label, 0, 7, 1, 1,
                          FALSE, FALSE, TablePadding, TablePadding);
-    gtk_misc_set_alignment (GTK_MISC (priv->composer_label), 1.0, 0.5);
+    gtk_widget_set_halign (priv->composer_label, GTK_ALIGN_END);
 
     priv->composer_entry = gtk_entry_new ();
     gtk_entry_set_icon_from_icon_name (GTK_ENTRY (priv->composer_entry),
@@ -2373,7 +2372,7 @@ create_tag_area (EtTagArea *self)
     priv->orig_artist_label = gtk_label_new (_("Orig. artist:"));
     et_grid_attach_full (GTK_GRID (table), priv->orig_artist_label, 0, 8, 1, 1,
                          FALSE, FALSE, TablePadding, TablePadding);
-    gtk_misc_set_alignment (GTK_MISC (priv->orig_artist_label), 1.0, 0.5);
+    gtk_widget_set_halign (priv->orig_artist_label, GTK_ALIGN_END);
 
     priv->orig_artist_entry = gtk_entry_new ();
     gtk_entry_set_icon_from_icon_name (GTK_ENTRY (priv->orig_artist_entry),
@@ -2390,7 +2389,7 @@ create_tag_area (EtTagArea *self)
     priv->copyright_label = gtk_label_new (_("Copyright:"));
     et_grid_attach_full (GTK_GRID (table), priv->copyright_label, 0, 9, 1, 1,
                          FALSE, FALSE, TablePadding, TablePadding);
-    gtk_misc_set_alignment (GTK_MISC (priv->copyright_label), 1.0, 0.5);
+    gtk_widget_set_halign (priv->copyright_label, GTK_ALIGN_END);
 
     priv->copyright_entry = gtk_entry_new ();
     gtk_entry_set_icon_from_icon_name (GTK_ENTRY (priv->copyright_entry),
@@ -2409,7 +2408,7 @@ create_tag_area (EtTagArea *self)
     priv->url_label = gtk_label_new (_("URL:"));
     et_grid_attach_full (GTK_GRID (table), priv->url_label, 0, 10, 1, 1, FALSE,
                          FALSE, TablePadding, TablePadding);
-    gtk_misc_set_alignment (GTK_MISC (priv->url_label), 1.0, 0.5);
+    gtk_widget_set_halign (priv->url_label, GTK_ALIGN_END);
 
     priv->url_entry = gtk_entry_new ();
     gtk_entry_set_icon_from_icon_name (GTK_ENTRY (priv->url_entry),
@@ -2426,7 +2425,7 @@ create_tag_area (EtTagArea *self)
     priv->encoded_by_label = gtk_label_new (_("Encoded by:"));
     et_grid_attach_full (GTK_GRID (table), priv->encoded_by_label, 0, 11, 1, 1,
                          FALSE, FALSE, TablePadding, TablePadding);
-    gtk_misc_set_alignment (GTK_MISC (priv->encoded_by_label), 1.0, 0.5);
+    gtk_widget_set_halign (priv->encoded_by_label, GTK_ALIGN_END);
 
     priv->encoded_by_entry = gtk_entry_new ();
     gtk_entry_set_icon_from_icon_name (GTK_ENTRY (priv->encoded_by_entry),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]