diff options
author | jstebbins <[email protected]> | 2009-03-02 04:06:38 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-03-02 04:06:38 +0000 |
commit | 335620a40972229ff4799a8852c45eb061317a12 (patch) | |
tree | 64bae86d7bf99cb588e2d704ca898e4b0819c560 /gtk/src/callbacks.c | |
parent | 64246f1cf34a761b36de02d6564dfa552f6c9111 (diff) |
LinGui: update log and about dialog with update version strings
also, make hb home web link on about dialog spawn a browser
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2193 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/callbacks.c')
-rw-r--r-- | gtk/src/callbacks.c | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 68bd207c9..7f358086d 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -2091,14 +2091,6 @@ ghb_log(gchar *log, ...) va_end(args); } -void -about_activate_cb(GtkWidget *xwidget, signal_user_data_t *ud) -{ - GtkWidget *widget = GHB_WIDGET (ud->builder, "hb_about"); - gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(widget), ghb_version()); - gtk_widget_show (widget); -} - static void browse_url(const gchar *url) { @@ -2130,6 +2122,29 @@ browse_url(const gchar *url) } void +about_web_hook(GtkAboutDialog *about, const gchar *link, gpointer data) +{ + browse_url(link); +} + +void +about_activate_cb(GtkWidget *xwidget, signal_user_data_t *ud) +{ + GtkWidget *widget = GHB_WIDGET (ud->builder, "hb_about"); + gchar *ver; + + ver = g_strdup_printf("%s (%s)", HB_PROJECT_VERSION, HB_PROJECT_BUILD_ARCH); + gtk_about_dialog_set_url_hook(about_web_hook, NULL, NULL); + gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(widget), ver); + g_free(ver); + gtk_about_dialog_set_website(GTK_ABOUT_DIALOG(widget), + HB_PROJECT_URL_WEBSITE); + gtk_about_dialog_set_website_label(GTK_ABOUT_DIALOG(widget), + HB_PROJECT_URL_WEBSITE); + gtk_widget_show (widget); +} + +void guide_activate_cb(GtkWidget *xwidget, signal_user_data_t *ud) { browse_url("http://trac.handbrake.fr/wiki/HandBrakeGuide"); |