summaryrefslogtreecommitdiffstats
path: root/gtk/src/callbacks.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2010-05-24 18:15:40 +0000
committerjstebbins <[email protected]>2010-05-24 18:15:40 +0000
commitb1d5e7b5af2cbc601253d254389a4ef8df709639 (patch)
tree0baeb0af4fd534eabfa7f25d3456f2aa452e52a6 /gtk/src/callbacks.c
parenteef8301f8f1c858961395ea8f1a9e6a58400e36d (diff)
LinGui: add option to completely disable update checking
configure --disable-gtk-update-checks removes the code that does update checks including the webkit library used for displaying the appcast. this is useful when packaging for a repository that has it's own update mechanism. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3323 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/callbacks.c')
-rw-r--r--gtk/src/callbacks.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c
index 0b4cd5b94..ec29ff6c0 100644
--- a/gtk/src/callbacks.c
+++ b/gtk/src/callbacks.c
@@ -29,11 +29,15 @@
#include <netinet/in.h>
#include <netdb.h>
+
+#if !defined(_NO_UPDATE_CHECK)
#if defined(_OLD_WEBKIT)
#include <webkit.h>
#else
#include <webkit/webkit.h>
#endif
+#endif
+
#include <libnotify/notify.h>
#include <gdk/gdkx.h>
#else
@@ -2972,6 +2976,7 @@ ghb_timer_cb(gpointer data)
update_preview = FALSE;
}
+#if !defined(_NO_UPDATE_CHECK)
if (!appcast_busy)
{
gchar *updates;
@@ -3002,6 +3007,7 @@ ghb_timer_cb(gpointer data)
}
}
}
+#endif
return TRUE;
}
@@ -4664,6 +4670,7 @@ process_appcast(signal_user_data_t *ud)
gtk_label_set_text(GTK_LABEL(label), msg);
#if !defined(_WIN32)
+#if !defined(_NO_UPDATE_CHECK)
if (html == NULL)
{
html = webkit_web_view_new();
@@ -4675,6 +4682,7 @@ process_appcast(signal_user_data_t *ud)
}
webkit_web_view_open(WEBKIT_WEB_VIEW(html), description);
#endif
+#endif
dialog = GHB_WIDGET(ud->builder, "update_dialog");
response = gtk_dialog_run(GTK_DIALOG(dialog));
gtk_widget_hide(dialog);