summaryrefslogtreecommitdiffstats
path: root/gtk/src/callbacks.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-02-27 01:11:58 +0000
committerjstebbins <[email protected]>2009-02-27 01:11:58 +0000
commit0bc9a7d79b9a6012f9f104aac64c118a6bc1befa (patch)
treeecaa124407a62752d47cf6c6c8188b180a9e2983 /gtk/src/callbacks.c
parent5e7da391d57ddeaecc53910f1e8daa411706e79b (diff)
LinGui: clean up my improper use of HB_VERSION and HB_BUILD.
replace with hb_get_version and hb_get_build. this fixes a difficulty with compiling using KonaB1end's shiny new build system. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2177 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/callbacks.c')
-rw-r--r--gtk/src/callbacks.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c
index acb434e7e..68bd207c9 100644
--- a/gtk/src/callbacks.c
+++ b/gtk/src/callbacks.c
@@ -1517,7 +1517,7 @@ queue_scan(signal_user_data_t *ud, GValue *js)
gchar *ver_str;
ver_str = g_strdup_printf("Handbrake Version: %s (%d)\n",
- HB_VERSION, HB_BUILD);
+ hb_get_version(NULL), hb_get_build(NULL));
g_io_channel_write_chars (ud->job_activity_log, ver_str,
-1, NULL, NULL);
g_free(ver_str);
@@ -2940,7 +2940,7 @@ process_appcast(signal_user_data_t *ud)
if (ud->appcast == NULL || ud->appcast_len < 15 ||
strncmp(&(ud->appcast[9]), "200 OK", 6))
{
- if (!stable_update_lock && HB_BUILD % 100)
+ if (!stable_update_lock && hb_get_build(NULL) % 100)
g_idle_add((GSourceFunc)check_stable_update, ud);
goto done;
}
@@ -2949,14 +2949,14 @@ process_appcast(signal_user_data_t *ud)
ibuild = g_strtod(build, NULL);
skip = ghb_settings_get_int(ud->settings, "update_skip_version");
if (description == NULL || build == NULL || version == NULL
- || ibuild <= HB_BUILD || skip == ibuild)
+ || ibuild <= hb_get_build(NULL) || skip == ibuild)
{
- if (!stable_update_lock && HB_BUILD % 100)
+ if (!stable_update_lock && hb_get_build(NULL) % 100)
g_thread_create((GThreadFunc)check_stable_update, ud, FALSE, NULL);
goto done;
}
msg = g_strdup_printf("HandBrake %s/%s is now available (you have %s/%d).",
- version, build, HB_VERSION, HB_BUILD);
+ version, build, hb_get_version(NULL), hb_get_build(NULL));
label = GHB_WIDGET(ud->builder, "update_message");
gtk_label_set_text(GTK_LABEL(label), msg);
html = gtk_html_new_from_string(description, -1);
@@ -3079,7 +3079,7 @@ ghb_check_update(signal_user_data_t *ud)
GError *gerror = NULL;
g_debug("ghb_check_update");
- if (HB_BUILD % 100)
+ if (hb_get_build(NULL) % 100)
{
query =
"GET /appcast_unstable.xml HTTP/1.0\r\nHost: handbrake.fr\r\n\r\n";