]> gitweb.michael.orlitzky.com - xfce4-hdaps.git/commit
xfce4-hdaps-dialogs.c: update to newer combo box API.
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 23 Oct 2019 02:59:40 +0000 (22:59 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sat, 26 Oct 2019 14:29:52 +0000 (10:29 -0400)
commiteca7888e5b1854e1bc95f0de26ea4904f7ac51f1
treeeba9d88844b8a0572adfa6e85f375e3c948b2a39
parentf53133d9a33b1a3390cca82b3885a6788b42e761
xfce4-hdaps-dialogs.c: update to newer combo box API.

The gtk_combo_box_get_active_text() and gtk_combo_box_append_text()
functions have apparently been deprecated since gtk+-2.24. Instead
of calling those functions on a GtkComboBox pointer, we're instead
supposed to call e.g. gtk_combo_box_text_get_active_text() on a
GtkComboBoxText pointer.

Since our "cb_device_name" member was only ever declared as a GtkWidget,
all we have to do is switch everything to the new functions so that they
create, access, and modify the GtkComboBoxText referred to by cb_device_name
instead of a GtkComboBox in the same place.
panel-plugin/xfce4-hdaps-dialogs.c