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.
Michael Orlitzky [Wed, 23 Oct 2019 02:59:40 +0000 (22:59 -0400)]
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.
Michael Orlitzky [Wed, 23 Oct 2019 02:58:35 +0000 (22:58 -0400)]
xfce4-hdaps-dialogs.c: drop obsolete GTK_DIALOG_NO_SEPARATOR flag.
While creating our main dialog box, we used to pass in the
GTK_DIALOG_NO_SEPARATOR flag to omit the separator between the main
vbox and the action area. I no longer remember what real impact this
had, which is good I guess because that flag doesn't exist in gtk+-3.x.
Other XFCE panel plugins have fixed this by deleting the flag, and that
seems like a fine solution to me.
Michael Orlitzky [Wed, 23 Oct 2019 02:28:46 +0000 (22:28 -0400)]
panel-plugin: replace XFCE_HVBOX with new GtkBox API.
The XFCE_HVBOX stuff is gone in the new version of the panel library
because its functionality has been superseded by GtkBox in gtk+-3.x.
First we drop the header include for libxfce4panel/xfce-hvbox.h that no
longer exists, and then we change xfce_hvbox_new() to gtk_box_new() and
xfce_hvbox_set_orientation() to gtk_orientable_set_orientation().
For us, this is pretty straightforward: instead of declaring a GtkTooltips
member and doing stuff to it, we just call the gtk_widget_set_tooltip_text()
function on our plugin's eventbox instead.
These are detected by the configure script which then does whatever it
needs to do to ensure that they get linked in the right places. Instead
of requesting gtk+-2.20.0 and the xfce-4.8.0 versions of the libraries, we
now request gtk+-3.0 and the xfce-4.14.0versions. This should immediately
break the build and give me a nice long list of tasks that need to be
completed to finish the migration.
Michael Orlitzky [Sun, 20 Oct 2019 12:59:14 +0000 (08:59 -0400)]
COPYING: update license to AGPL-3.
This also touches the comment headers in all of the source files,
since they mention the license by name. The text displayed on the
plugin's info dialog has also been updated.
Michael Orlitzky [Sun, 20 Oct 2019 12:43:58 +0000 (08:43 -0400)]
panel-plugin/Makefile.am: rename INCLUDES to AM_CPPFLAGS.
Upstream changed the name of the variable and now INCLUDES is
deprecated. See, for example, the "Variables used when building a
program" section of the automake manual.
Michael Orlitzky [Thu, 25 Mar 2010 01:28:11 +0000 (21:28 -0400)]
Bumped the version to 0.0.6.
Bumped the required versions of GTK+, libxfce4panel, and libxfce4util.
Replaced the libxfcegui4 requirement with libxfce4ui.
Michael Orlitzky [Thu, 19 Feb 2009 07:06:03 +0000 (02:06 -0500)]
Fixed build with --enable-debug=full thanks to Evgeni Golov.
Added declaration of hdaps_reset_timeout in xfce4-hdaps.h.
Rearranged some header #includes.
Michael Orlitzky [Wed, 11 Feb 2009 00:01:39 +0000 (19:01 -0500)]
Fixed a status update bug thanks to Evgeni Golov.
Added a new state constant, HDAPS_ON.
Changed hdaps_update_status to use the new constant when determining whether or not HDAPS has changed states from "on" to "off."
Michael Orlitzky [Sat, 24 Jan 2009 03:59:11 +0000 (22:59 -0500)]
Added tooltip support for the three states.
Changed the "error" icon to emblem-noread.
Updated the hdaps slurp/parse functions to always return HDAPS_ERROR when there is an error.
Altered hdaps_set_icon to check for (status == HDAPS_ERROR) rather than (status < HDAPS_OFF) as a result of the previous modification.