From c4bc79ca98f1f556a39ddba593d01a09b7b4bc9f Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 22 Oct 2019 23:00:55 -0400 Subject: [PATCH] xfce4-hdaps-dialogs.c: replace obsolete gtk_misc_set_alignment(). The gtk_misc_set_alignment() function has been deprecated since gtk+-3.14. Instead, we are prodded to use the gtk_widget_set_halign() and gtk_widget_set_valign() functions. This is a trivial change, replacing two calls to gtk_misc_set_alignment() by four calls to the new functions. --- panel-plugin/xfce4-hdaps-dialogs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/panel-plugin/xfce4-hdaps-dialogs.c b/panel-plugin/xfce4-hdaps-dialogs.c index 78fecdb..dc104fd 100644 --- a/panel-plugin/xfce4-hdaps-dialogs.c +++ b/panel-plugin/xfce4-hdaps-dialogs.c @@ -134,7 +134,8 @@ void hdaps_configure(XfcePanelPlugin *plugin, label = gtk_label_new(_("Poll Frequency:")); gtk_size_group_add_widget(sg, label); - gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); + gtk_widget_set_halign(label, 0.0); + gtk_widget_set_valign(label, 0.5); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); hdaps->sb_poll_frequency = gtk_spin_button_new_with_range(100, 5000, 100); @@ -152,7 +153,8 @@ void hdaps_configure(XfcePanelPlugin *plugin, label = gtk_label_new(_("Device Name:")); gtk_size_group_add_widget(sg, label); - gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); + gtk_widget_set_halign(label, 0.0); + gtk_widget_set_valign(label, 0.5); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); hdaps->cb_device_name = gtk_combo_box_text_new(); -- 2.44.2