]> gitweb.michael.orlitzky.com - xfce4-hdaps.git/commit
xfce4-hdaps-dialogs.c: consolidate the URI launcher.
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 29 Oct 2019 23:47:20 +0000 (19:47 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 29 Oct 2019 23:47:20 +0000 (19:47 -0400)
commita11bba966aac187122a7f04c4e111b58655ff1ec
tree07d7ad2e255dc8b7b978aebdcec5e5e87294c810
parentd1758a9d54a36f94e9615ed62ebec2de127b97ec
xfce4-hdaps-dialogs.c: consolidate the URI launcher.

Now that the signal handler for the "about" dialog works, let's
consolidate the two identical URI launcher routines. The new
factored-out launch_uri() function tries all three approaches
in succession:

  1. whatever gtk_show_uri_on_window() does,
  2. exo-open, and
  3. xdg-open.

If those all fail, it fails. We had to twiddle some things to allow us
to pass a GtkWindow pointer into the launch_uri() function because
gtk_show_uri_on_window() needs one, but that wasn't a big deal.
panel-plugin/xfce4-hdaps-dialogs.c