diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-02-25 20:56:50 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-02-25 11:08:47 -0800 |
commit | cd5c61e102dfd7cb1bfc5031e693b2dcd66bec9e (patch) | |
tree | 9b130bd57439d1cf47b51ce49400188c618e7c4b /webservice.c | |
parent | 9f8bbeb0cfd537daf5d60dafe829674a13e17433 (diff) | |
download | subsurface-cd5c61e102dfd7cb1bfc5031e693b2dcd66bec9e.tar.gz |
Don't use gtk_show_about_dialog() for the about dialog
There is a bug in GTK 2.2x where the links in the about dialog
(and URI's in general) do not work on Windows. To solve that
we add the OS specific method subsurface_launch_for_uri().
But to dispatch URI requests from the about dialog we need to
set a hook either with gtk_about_dialog_set_url_hook() (which is
deprecated from 2.24) or using signals like "activate-link".
One problem with the "activate-link" signal thought is that
we need to have a reference of an about dialog to pass to
g_signal_connect(). So instead of using gtk_show_about_dialog()
let's manage a dialog ourself with gtk_about_dialog_new(),
gtk_dialog_run(), gtk_widget_destroy().
Other changes:
- for GTK _bellow_ (but not including) 2.24 use
gtk_about_dialog_set_url_hook()
- use g_object_set() which is a convenient replacement for
the varargs list in gtk_show_about_dialog() (also makes the diff smaller).
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'webservice.c')
0 files changed, 0 insertions, 0 deletions