[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 08/41: Replace GtkMisc.

noreply at xfce.org noreply at xfce.org
Sat Aug 20 18:32:22 CEST 2016


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

gottcode pushed a commit to branch master
in repository panel-plugins/xfce4-whiskermenu-plugin.

commit cdb7eff4ab4e8b53a6dd000c357a5dbea413b98a
Author: Graeme Gott <graeme at gottcode.org>
Date:   Mon Aug 8 07:57:05 2016 -0400

    Replace GtkMisc.
---
 panel-plugin/configuration-dialog.cpp | 20 ++++++++++----------
 panel-plugin/window.cpp               | 10 +++++-----
 2 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/panel-plugin/configuration-dialog.cpp b/panel-plugin/configuration-dialog.cpp
index 4d51e1d..eb95dba 100644
--- a/panel-plugin/configuration-dialog.cpp
+++ b/panel-plugin/configuration-dialog.cpp
@@ -518,7 +518,7 @@ GtkWidget* ConfigurationDialog::init_appearance_tab()
 
 	// Add button style selector
 	GtkWidget* label = gtk_label_new_with_mnemonic(_("Di_splay:"));
-	gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
+	gtk_widget_set_halign(label, GTK_ALIGN_START);
 	gtk_grid_attach(panel_table, label, 0, 0, 1, 1);
 
 	m_button_style = gtk_combo_box_text_new();
@@ -533,7 +533,7 @@ GtkWidget* ConfigurationDialog::init_appearance_tab()
 
 	// Add title selector
 	label = gtk_label_new_with_mnemonic(_("_Title:"));
-	gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
+	gtk_widget_set_halign(label, GTK_ALIGN_START);
 	gtk_grid_attach(panel_table, label, 0, 1, 1, 1);
 
 	m_title = gtk_entry_new();
@@ -544,7 +544,7 @@ GtkWidget* ConfigurationDialog::init_appearance_tab()
 
 	// Add icon selector
 	label = gtk_label_new_with_mnemonic(_("_Icon:"));
-	gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
+	gtk_widget_set_halign(label, GTK_ALIGN_START);
 	gtk_grid_attach(panel_table, label, 0, 2, 1, 1);
 
 	m_icon_button = gtk_button_new();
@@ -601,7 +601,7 @@ GtkWidget* ConfigurationDialog::init_appearance_tab()
 
 	// Add item icon size selector
 	label = gtk_label_new_with_mnemonic(_("Ite_m icon size:"));
-	gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
+	gtk_widget_set_halign(label, GTK_ALIGN_START);
 	gtk_grid_attach(menu_table, label, 0, 4, 1, 1);
 
 	m_item_icon_size = gtk_combo_box_text_new();
@@ -617,7 +617,7 @@ GtkWidget* ConfigurationDialog::init_appearance_tab()
 
 	// Add category icon size selector
 	label = gtk_label_new_with_mnemonic(_("Categ_ory icon size:"));
-	gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
+	gtk_widget_set_halign(label, GTK_ALIGN_START);
 	gtk_grid_attach(menu_table, label, 0, 5, 1, 1);
 
 	m_category_icon_size = gtk_combo_box_text_new();
@@ -632,7 +632,7 @@ GtkWidget* ConfigurationDialog::init_appearance_tab()
 
 	// Add option to control background opacity
 	label = gtk_label_new_with_mnemonic(_("Background opacit_y:"));
-	gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
+	gtk_widget_set_halign(label, GTK_ALIGN_START);
 	gtk_grid_attach(menu_table, label, 0, 6, 1, 1);
 
 	m_background_opacity = gtk_hscale_new_with_range(0.0, 100.0, 1.0);
@@ -699,7 +699,7 @@ GtkWidget* ConfigurationDialog::init_behavior_tab()
 
 	// Add value to change maximum number of recently used entries
 	GtkWidget* label = gtk_label_new_with_mnemonic(_("Amount of _items:"));
-	gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
+	gtk_widget_set_halign(label, GTK_ALIGN_START);
 	gtk_grid_attach(recent_table, label, 0, 0, 1, 1);
 
 	m_recent_items_max = gtk_spin_button_new_with_range(0, 100, 1);
@@ -836,7 +836,7 @@ GtkWidget* ConfigurationDialog::init_search_actions_tab()
 
 	// Create entry for name
 	GtkWidget* label = gtk_label_new_with_mnemonic(_("Nam_e:"));
-	gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
+	gtk_widget_set_halign(label, GTK_ALIGN_START);
 	gtk_widget_show(label);
 	gtk_grid_attach(details_table, label, 0, 0, 1, 1);
 
@@ -849,7 +849,7 @@ GtkWidget* ConfigurationDialog::init_search_actions_tab()
 
 	// Create entry for keyword
 	label = gtk_label_new_with_mnemonic(_("_Pattern:"));
-	gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
+	gtk_widget_set_halign(label, GTK_ALIGN_START);
 	gtk_widget_show(label);
 	gtk_grid_attach(details_table, label, 0, 1, 1, 1);
 
@@ -861,7 +861,7 @@ GtkWidget* ConfigurationDialog::init_search_actions_tab()
 
 	// Create entry for command
 	label = gtk_label_new_with_mnemonic(_("C_ommand:"));
-	gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
+	gtk_widget_set_halign(label, GTK_ALIGN_START);
 	gtk_widget_show(label);
 	gtk_grid_attach(details_table, label, 0, 2, 1, 1);
 
diff --git a/panel-plugin/window.cpp b/panel-plugin/window.cpp
index 304e3e7..bd6c2b7 100644
--- a/panel-plugin/window.cpp
+++ b/panel-plugin/window.cpp
@@ -91,7 +91,7 @@ WhiskerMenu::Window::Window() :
 	gchar* username = g_markup_printf_escaped("<b><big>%s</big></b>", name);
 	m_username = GTK_LABEL(gtk_label_new(NULL));
 	gtk_label_set_markup(m_username, username);
-	gtk_misc_set_alignment(GTK_MISC(m_username), 0.0f, 0.5f);
+	gtk_widget_set_halign(GTK_WIDGET(m_username), GTK_ALIGN_START);
 	g_free(username);
 
 	// Create action buttons
@@ -472,7 +472,7 @@ void WhiskerMenu::Window::show(GtkWidget* parent, bool horizontal)
 		m_layout_left = layout_left;
 		if (m_layout_left && m_layout_commands_alternate)
 		{
-			gtk_misc_set_alignment(GTK_MISC(m_username), 0.0f, 0.5f);
+			gtk_widget_set_halign(GTK_WIDGET(m_username), GTK_ALIGN_START);
 
 			gtk_alignment_set(m_commands_align, 1, 0, 0, 0);
 			for (int i = 0; i < 4; ++i)
@@ -489,7 +489,7 @@ void WhiskerMenu::Window::show(GtkWidget* parent, bool horizontal)
 		}
 		else if (m_layout_commands_alternate)
 		{
-			gtk_misc_set_alignment(GTK_MISC(m_username), 1.0f, 0.5f);
+			gtk_widget_set_halign(GTK_WIDGET(m_username), GTK_ALIGN_END);
 
 			gtk_alignment_set(m_commands_align, 0, 0, 0, 0);
 			for (int i = 0; i < 4; ++i)
@@ -506,7 +506,7 @@ void WhiskerMenu::Window::show(GtkWidget* parent, bool horizontal)
 		}
 		else if (m_layout_left)
 		{
-			gtk_misc_set_alignment(GTK_MISC(m_username), 0.0f, 0.5f);
+			gtk_widget_set_halign(GTK_WIDGET(m_username), GTK_ALIGN_START);
 
 			gtk_alignment_set(m_commands_align, 1, 0, 0, 0);
 			for (int i = 0; i < 4; ++i)
@@ -521,7 +521,7 @@ void WhiskerMenu::Window::show(GtkWidget* parent, bool horizontal)
 		}
 		else
 		{
-			gtk_misc_set_alignment(GTK_MISC(m_username), 1.0f, 0.5f);
+			gtk_widget_set_halign(GTK_WIDGET(m_username), GTK_ALIGN_END);
 
 			gtk_alignment_set(m_commands_align, 0, 0, 0, 0);
 			for (int i = 0; i < 4; ++i)

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


More information about the Xfce4-commits mailing list