From: Michael Orlitzky Date: Wed, 23 Oct 2019 03:00:55 +0000 (-0400) Subject: xfce4-hdaps-dialogs.c: replace obsolete gtk_misc_set_alignment(). X-Git-Tag: v1.0.0~19 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=c4bc79ca98f1f556a39ddba593d01a09b7b4bc9f;p=xfce4-hdaps.git 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. --- 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();