[gnome-games] Use the default about dialogue hooks
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games] Use the default about dialogue hooks
- Date: Fri, 1 May 2009 10:13:00 -0400 (EDT)
commit b6a8f7c808a2ec08a6f6200f2e67811453f15c66
Author: Christian Persch <chpe gnome org>
Date: Fri May 1 15:25:49 2009 +0200
Use the default about dialogue hooks
Only install our custom hooks on gtk < 2.17; gtk >= 2.17 has default
hooks using gtk_show_uri().
---
aisleriot/sol.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/aisleriot/sol.c b/aisleriot/sol.c
index 4ce5387..e92886c 100644
--- a/aisleriot/sol.c
+++ b/aisleriot/sol.c
@@ -83,6 +83,8 @@ typedef struct {
#endif /* HAVE_HILDON */
} AppData;
+#if !GTK_CHECK_VERSION (2, 17, 0)
+
static void
about_url_hook (GtkAboutDialog *about,
const char *uri,
@@ -151,6 +153,8 @@ about_email_hook (GtkAboutDialog *about,
g_free (uri);
}
+#endif /* GTK < 2.17.0 */
+
static char *
variation_to_game_file (const char *variation)
{
@@ -604,8 +608,10 @@ main_prog (void *closure, int argc, char *argv[])
aisleriot_util_set_help_func (help_hook, &data);
+#if !GTK_CHECK_VERSION (2, 17, 0)
gtk_about_dialog_set_url_hook (about_url_hook, &data, NULL);
gtk_about_dialog_set_email_hook (about_email_hook, &data, NULL);
+#endif
data.window = AISLERIOT_WINDOW (aisleriot_window_new ());
g_signal_connect (data.window, "destroy",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]