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);
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;
}
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);
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";
#include <gst/gst.h>
#include <glib/gstdio.h>
#include <gio/gio.h>
-#include "hbversion.h"
+#include "hb.h"
#include "renderer_button.h"
#include "hb-backend.h"
#include "ghb-dvd.h"
// Redirect stderr to the activity window
ghb_preview_init(ud);
IoRedirect(ud);
- ghb_log("Handbrake Version: %s (%d)", HB_VERSION, HB_BUILD);
+ ghb_log("Handbrake Version: %s (%d)", hb_get_version(NULL), hb_get_build(NULL));
ghb_init_dep_map();
// Need to connect x264_options textview buffer to the changed signal