[Xfce4-commits] [panel-plugins/xfce4-fsguard-plugin] 15/15: Use gtk_widget_set_valign() instead of gtk_misc_set_alignment()
noreply at xfce.org
noreply at xfce.org
Thu Apr 28 12:07:58 CEST 2016
This is an automated email from the git hooks/post-receive script.
landry pushed a commit to branch master
in repository panel-plugins/xfce4-fsguard-plugin.
commit 0f1e704164af7637b7b25893fc6b47c9ccc640b9
Author: Landry Breuil <landry at xfce.org>
Date: Thu Apr 28 12:07:07 2016 +0200
Use gtk_widget_set_valign() instead of gtk_misc_set_alignment()
---
panel-plugin/fsguard.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/panel-plugin/fsguard.c b/panel-plugin/fsguard.c
index 9b23b48..4bb0422 100644
--- a/panel-plugin/fsguard.c
+++ b/panel-plugin/fsguard.c
@@ -629,18 +629,18 @@ fsguard_create_options (XfcePanelPlugin *plugin, FsGuard *fsguard)
TRUE, TRUE, 0);
GtkWidget *label1 = gtk_label_new (_("Mount point"));
- gtk_misc_set_alignment (GTK_MISC (label1), 0, 0.5);
+ gtk_widget_set_valign(label1, GTK_ALIGN_CENTER);
GtkWidget *entry1 = gtk_entry_new ();
gtk_entry_set_max_length (GTK_ENTRY (entry1), 32);
gtk_entry_set_text (GTK_ENTRY (entry1), fsguard->path);
GtkWidget *label3 = gtk_label_new (_("Warning limit (%)"));
- gtk_misc_set_alignment (GTK_MISC (label3), 0, 0.5);
+ gtk_widget_set_valign(label3, GTK_ALIGN_CENTER);
GtkWidget *spin1 = gtk_spin_button_new_with_range (0, 100, 1);
gtk_spin_button_set_value (GTK_SPIN_BUTTON (spin1), fsguard->limit_warning);
GtkWidget *label4 = gtk_label_new (_("Urgent limit (%)"));
- gtk_misc_set_alignment (GTK_MISC (label4), 0, 0.5);
+ gtk_widget_set_valign(label4, GTK_ALIGN_CENTER);
GtkWidget *spin2 = gtk_spin_button_new_with_range (0, 100, 1);
gtk_spin_button_set_value (GTK_SPIN_BUTTON (spin2), fsguard->limit_urgent);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list