[Xfce4-commits] [apps/gigolo] 21/35: Migrate from gtk_misc_set_alignment to gtk_label_set_xalign

noreply at xfce.org noreply at xfce.org
Mon Oct 31 18:18:55 CET 2016


This is an automated email from the git hooks/post-receive script.

landry pushed a commit to branch master
in repository apps/gigolo.

commit e3659ab278de4a275f6fc85fbc81cf6d8dc0bc33
Author: Landry Breuil <landry at xfce.org>
Date:   Sun Jun 19 16:57:28 2016 +0200

    Migrate from gtk_misc_set_alignment to gtk_label_set_xalign
---
 src/bookmarkeditdialog.c | 26 +++++++++++++-------------
 src/mountdialog.c        |  2 +-
 src/preferencesdialog.c  | 12 ++++++------
 3 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/src/bookmarkeditdialog.c b/src/bookmarkeditdialog.c
index 4b3d46f..7f6fd68 100644
--- a/src/bookmarkeditdialog.c
+++ b/src/bookmarkeditdialog.c
@@ -564,7 +564,7 @@ static void setup_for_type(GigoloBookmarkEditDialog *dialog)
 
 	if (meth->scheme == NULL)
 	{
-		gtk_misc_set_alignment(GTK_MISC(priv->uri_label), 0.0, 0.5);
+		gtk_label_set_xalign(GTK_LABEL(priv->uri_label), 0);
 		gtk_widget_show(priv->uri_label);
 		gtk_table_attach(GTK_TABLE(table), priv->uri_label,
 				  0, 1, i, i+1, GTK_FILL, GTK_FILL, 0, 0);
@@ -583,7 +583,7 @@ static void setup_for_type(GigoloBookmarkEditDialog *dialog)
 		else
 			gtk_label_set_text_with_mnemonic(GTK_LABEL(priv->host_label), _("_Server:"));
 
-		gtk_misc_set_alignment(GTK_MISC(priv->host_label), 0.0, 0.5);
+		gtk_label_set_xalign(GTK_LABEL(priv->host_label), 0);
 		gtk_widget_show(priv->host_label);
 		gtk_table_attach(GTK_TABLE(table), priv->host_label,
 				  0, 1, i, i+1, GTK_FILL, GTK_FILL, 0, 0);
@@ -597,7 +597,7 @@ static void setup_for_type(GigoloBookmarkEditDialog *dialog)
 
 		if (meth->flags & SHOW_SHARE)
 		{
-			gtk_misc_set_alignment(GTK_MISC(priv->share_label), 0.0, 0.5);
+			gtk_label_set_xalign(GTK_LABEL(priv->share_label), 0);
 			gtk_widget_show(priv->share_label);
 			gtk_table_attach(GTK_TABLE(table), priv->share_label,
 					  0, 1, i, i+1, GTK_FILL, GTK_FILL, 0, 0);
@@ -615,7 +615,7 @@ static void setup_for_type(GigoloBookmarkEditDialog *dialog)
 		}
 		if (meth->flags & SHOW_PATH)
 		{
-			gtk_misc_set_alignment(GTK_MISC(priv->path_label), 0.0, 0.5);
+			gtk_label_set_xalign(GTK_LABEL(priv->path_label), 0);
 			gtk_widget_show(priv->path_label);
 			gtk_table_attach(GTK_TABLE(table), priv->path_label,
 					  0, 1, i, i+1, GTK_FILL, GTK_FILL, 0, 0);
@@ -631,7 +631,7 @@ static void setup_for_type(GigoloBookmarkEditDialog *dialog)
 
 	if (meth->flags & (SHOW_PORT | SHOW_DOMAIN | SHOW_USER))
 	{
-		gtk_misc_set_alignment(GTK_MISC(priv->information_label), 0.0, 0.5);
+		gtk_label_set_xalign(GTK_LABEL(priv->information_label), 0);
 		gtk_widget_show(priv->information_label);
 		gtk_table_attach(GTK_TABLE(table), priv->information_label,
 			0, 2, i, i+1, GTK_FILL, GTK_FILL, 0, 0);
@@ -640,7 +640,7 @@ static void setup_for_type(GigoloBookmarkEditDialog *dialog)
 
 		if (meth->flags & SHOW_PORT)
 		{
-			gtk_misc_set_alignment(GTK_MISC(priv->port_label), 0.0, 0.5);
+			gtk_label_set_xalign(GTK_LABEL(priv->port_label), 0);
 			gtk_widget_show(priv->port_label);
 			gtk_table_attach(GTK_TABLE(table), priv->port_label,
 					  0, 1, i, i+1, GTK_FILL, GTK_FILL, 0, 0);
@@ -655,7 +655,7 @@ static void setup_for_type(GigoloBookmarkEditDialog *dialog)
 
 		if (meth->flags & SHOW_FOLDER && priv->dialog_type != GIGOLO_BE_MODE_CONNECT)
 		{
-			gtk_misc_set_alignment(GTK_MISC(priv->folder_label), 0.0, 0.5);
+			gtk_label_set_xalign(GTK_LABEL(priv->folder_label), 0);
 			gtk_widget_show(priv->folder_label);
 			gtk_table_attach(GTK_TABLE(table), priv->folder_label,
 					  0, 1, i, i+1, GTK_FILL, GTK_FILL, 0, 0);
@@ -670,7 +670,7 @@ static void setup_for_type(GigoloBookmarkEditDialog *dialog)
 
 		if (meth->flags & SHOW_DOMAIN)
 		{
-			gtk_misc_set_alignment(GTK_MISC(priv->domain_label), 0.0, 0.5);
+			gtk_label_set_xalign(GTK_LABEL(priv->domain_label), 0);
 			gtk_widget_show(priv->domain_label);
 			gtk_table_attach(GTK_TABLE(table), priv->domain_label,
 					  0, 1, i, i+1, GTK_FILL, GTK_FILL, 0, 0);
@@ -685,7 +685,7 @@ static void setup_for_type(GigoloBookmarkEditDialog *dialog)
 
 		if (meth->flags & SHOW_USER)
 		{
-			gtk_misc_set_alignment(GTK_MISC(priv->user_label), 0.0, 0.5);
+			gtk_label_set_xalign(GTK_LABEL(priv->user_label), 0);
 			gtk_widget_show(priv->user_label);
 			gtk_table_attach(GTK_TABLE(table), priv->user_label,
 					  0, 1, i, i+1, GTK_FILL, GTK_FILL, 0, 0);
@@ -1032,7 +1032,7 @@ static void gigolo_bookmark_edit_dialog_init(GigoloBookmarkEditDialog *dialog)
 	gtk_box_pack_start(GTK_BOX(hbox), table, TRUE, TRUE, 0);
 
 	priv->name_label = gtk_label_new_with_mnemonic(_("_Bookmark name:"));
-	gtk_misc_set_alignment(GTK_MISC(priv->name_label), 0.0, 0.5);
+	gtk_label_set_xalign(GTK_LABEL(priv->name_label), 0);
 	gtk_table_attach(GTK_TABLE(table), priv->name_label, 0, 1, 0, 1, GTK_FILL, GTK_FILL, 0, 0);
 
 	priv->name_entry = entry = gtk_entry_new();
@@ -1040,7 +1040,7 @@ static void gigolo_bookmark_edit_dialog_init(GigoloBookmarkEditDialog *dialog)
 	gtk_table_attach(GTK_TABLE(table), entry, 1, 2, 0, 1, GTK_FILL | GTK_EXPAND, GTK_FILL, 0, 0);
 
 	priv->color_label = gtk_label_new_with_mnemonic(_("_Color:"));
-	gtk_misc_set_alignment(GTK_MISC(priv->color_label), 0.0, 0.5);
+	gtk_label_set_xalign(GTK_LABEL(priv->color_label), 0);
 	gtk_table_attach(GTK_TABLE(table), priv->color_label, 0, 1, 1, 2, GTK_FILL, GTK_FILL, 0, 0);
 
 	priv->color_set = FALSE;
@@ -1051,7 +1051,7 @@ static void gigolo_bookmark_edit_dialog_init(GigoloBookmarkEditDialog *dialog)
 		1, 2, 1, 2, GTK_FILL | GTK_EXPAND, GTK_FILL, 0, 0);
 
 	priv->autoconnect_label = gtk_label_new_with_mnemonic(_("Au_to-Connect"));
-	gtk_misc_set_alignment(GTK_MISC(priv->autoconnect_label), 0.0, 0.5);
+	gtk_label_set_xalign(GTK_LABEL(priv->autoconnect_label), 0);
 	gtk_table_attach(GTK_TABLE(table), priv->autoconnect_label, 0, 1, 2, 3, GTK_FILL, GTK_FILL, 0, 0);
 
 	priv->autoconnect_checkbtn = gtk_check_button_new();
@@ -1062,7 +1062,7 @@ static void gigolo_bookmark_edit_dialog_init(GigoloBookmarkEditDialog *dialog)
 	gtk_table_attach(GTK_TABLE(table), priv->separator, 0, 2, 3, 4, GTK_FILL, GTK_FILL, 0, 0);
 
 	label = gtk_label_new_with_mnemonic(_("Service t_ype:"));
-	gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
+	gtk_label_set_xalign(GTK_LABEL(label), 0);
 	gtk_table_attach(GTK_TABLE(table), label, 0, 1, 4, 5, GTK_FILL, GTK_FILL, 0, 0);
 
 	priv->type_combo = combo = gtk_combo_box_new();
diff --git a/src/mountdialog.c b/src/mountdialog.c
index 3c0a8a2..e9771f3 100644
--- a/src/mountdialog.c
+++ b/src/mountdialog.c
@@ -104,7 +104,7 @@ static void gigolo_mount_dialog_init(GigoloMountDialog *self)
 	gtk_container_add(GTK_CONTAINER(gtk_dialog_get_content_area(GTK_DIALOG(self))), vbox);
 
 	priv->label = gtk_label_new(NULL);
-	gtk_misc_set_alignment(GTK_MISC(priv->label), 0.1, 0.5);
+	gtk_label_set_xalign(GTK_LABEL(priv->label), 0.1);
 	gtk_box_pack_start(GTK_BOX(vbox), priv->label, FALSE, FALSE, 6);
 
 	progress = gtk_progress_bar_new();
diff --git a/src/preferencesdialog.c b/src/preferencesdialog.c
index f85b44e..f44a896 100644
--- a/src/preferencesdialog.c
+++ b/src/preferencesdialog.c
@@ -335,7 +335,7 @@ static void set_settings(GigoloPreferencesDialog *dialog, GigoloSettings *settin
 	gtk_box_pack_start(GTK_BOX(frame_vbox), hbox, FALSE, FALSE, 0);
 
 	label1 = gtk_label_new_with_mnemonic(_("_File Manager"));
-	gtk_misc_set_alignment(GTK_MISC(label1), 0.0f, 0.5f);
+	gtk_label_set_xalign(GTK_LABEL(label1), 0);
 	gtk_box_pack_start(GTK_BOX(hbox), label1, FALSE, FALSE, 0);
 
 	image = gtk_image_new();
@@ -352,7 +352,7 @@ static void set_settings(GigoloPreferencesDialog *dialog, GigoloSettings *settin
 	gtk_box_pack_start(GTK_BOX(frame_vbox), hbox, FALSE, FALSE, 0);
 
 	label1 = gtk_label_new_with_mnemonic(_("_Terminal"));
-	gtk_misc_set_alignment(GTK_MISC(label1), 0.0f, 0.5f);
+	gtk_label_set_xalign(GTK_LABEL(label1), 0);
 	gtk_box_pack_start(GTK_BOX(hbox), label1, FALSE, FALSE, 0);
 
 	image = gtk_image_new();
@@ -369,7 +369,7 @@ static void set_settings(GigoloPreferencesDialog *dialog, GigoloSettings *settin
 	gtk_box_pack_start(GTK_BOX(frame_vbox), hbox, FALSE, FALSE, 0);
 
 	label1 = gtk_label_new_with_mnemonic(_("_Bookmark Auto-Connect Interval"));
-	gtk_misc_set_alignment(GTK_MISC(label1), 0.0f, 0.5f);
+	gtk_label_set_xalign(GTK_LABEL(label1), 0);
 	gtk_box_pack_start(GTK_BOX(hbox), label1, FALSE, FALSE, 0);
 
 	spinbutton = add_spinbutton(settings, "autoconnect-interval");
@@ -411,7 +411,7 @@ static void set_settings(GigoloPreferencesDialog *dialog, GigoloSettings *settin
 	gtk_box_pack_start(GTK_BOX(frame_vbox), hbox, FALSE, FALSE, 0);
 
 	label4 = gtk_label_new_with_mnemonic(_("_Connection List Mode"));
-	gtk_misc_set_alignment(GTK_MISC(label4), 0.0f, 0.5f);
+	gtk_label_set_xalign(GTK_LABEL(label4), 0);
 	gtk_box_pack_start(GTK_BOX(hbox), label4, FALSE, FALSE, 0);
 
 	combo = add_view_mode_combo(settings, "view-mode");
@@ -432,7 +432,7 @@ static void set_settings(GigoloPreferencesDialog *dialog, GigoloSettings *settin
 	gtk_box_pack_start(GTK_BOX(frame_vbox), hbox, FALSE, FALSE, 0);
 
 	label2 = gtk_label_new_with_mnemonic(_("St_yle"));
-	gtk_misc_set_alignment(GTK_MISC(label2), 0.0f, 0.5f);
+	gtk_label_set_xalign(GTK_LABEL(label2), 0);
 	gtk_box_pack_start(GTK_BOX(hbox), label2, FALSE, FALSE, 0);
 
 	combo_toolbar_style = add_toolbar_style_combo(settings, "toolbar-style");
@@ -443,7 +443,7 @@ static void set_settings(GigoloPreferencesDialog *dialog, GigoloSettings *settin
 	gtk_box_pack_start(GTK_BOX(frame_vbox), hbox, FALSE, FALSE, 0);
 
 	label3 = gtk_label_new_with_mnemonic(_("_Orientation"));
-	gtk_misc_set_alignment(GTK_MISC(label3), 0.0f, 0.5f);
+	gtk_label_set_xalign(GTK_LABEL(label3), 0);
 	gtk_box_pack_start(GTK_BOX(hbox), label3, FALSE, FALSE, 0);
 
 	combo_toolbar_orient = add_toolbar_orientation_combo(settings, "toolbar-orientation");

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list