From 37e590249dd9d191a2331040fb879830c9ceea8e Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Wed, 27 Jan 2016 18:14:37 +0100 Subject: GTK3: fix previous GtkMisc deprecations fix commit --- command/command.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'command') diff --git a/command/command.c b/command/command.c index 14822cb6..f81ce49e 100644 --- a/command/command.c +++ b/command/command.c @@ -143,9 +143,9 @@ command_settings_callback (GtkAction *action, CommandApplet *command_applet) gtk_container_set_border_width (GTK_CONTAINER (dialog), 10); widget = gtk_label_new (_("Command:")); -#if GTK_CHECK_VERSION (3, 0, 0) - gtk_widget_set_halign (widget, GTK_ALIGN_END); - gtk_widget_set_valign (widget, GTK_ALIGN_CENTER); +#if GTK_CHECK_VERSION (3, 16, 0) + gtk_label_set_xalign (GTK_LABEL (widget), 1.0); + gtk_label_set_yalign (GTK_LABEL (widget), 0.5); #else gtk_misc_set_alignment (GTK_MISC (widget), 1.0, 0.5); #endif @@ -159,9 +159,9 @@ command_settings_callback (GtkAction *action, CommandApplet *command_applet) 0, 0); widget = gtk_label_new (_("Interval (seconds):")); -#if GTK_CHECK_VERSION (3, 0, 0) - gtk_widget_set_halign (widget, GTK_ALIGN_END); - gtk_widget_set_valign (widget, GTK_ALIGN_CENTER); +#if GTK_CHECK_VERSION (3, 16, 0) + gtk_label_set_xalign (GTK_LABEL (widget), 1.0); + gtk_label_set_yalign (GTK_LABEL (widget), 0.5); #else gtk_misc_set_alignment (GTK_MISC (widget), 1.0, 0.5); #endif @@ -175,9 +175,9 @@ command_settings_callback (GtkAction *action, CommandApplet *command_applet) 0, 0); widget = gtk_label_new (_("Maximum width (chars):")); -#if GTK_CHECK_VERSION (3, 0, 0) - gtk_widget_set_halign (widget, GTK_ALIGN_END); - gtk_widget_set_valign (widget, GTK_ALIGN_CENTER); +#if GTK_CHECK_VERSION (3, 16, 0) + gtk_label_set_xalign (GTK_LABEL (widget), 1.0); + gtk_label_set_yalign (GTK_LABEL (widget), 0.5); #else gtk_misc_set_alignment (GTK_MISC (widget), 1.0, 0.5); #endif -- cgit v1.2.1