summaryrefslogtreecommitdiffstats
path: root/gtk/src/main.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/main.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/main.c')
-rw-r--r--gtk/src/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/src/main.c b/gtk/src/main.c
index c26966db2..6d0d81441 100644
--- a/gtk/src/main.c
+++ b/gtk/src/main.c
@@ -827,6 +827,11 @@ main (int argc, char *argv[])
// Since GtkBuilder no longer assigns object ids to widget names
// Assign a few that are necessary for style overrides to work
GtkWidget *widget;
+#if defined(_NO_UPDATE_CHECK)
+ widget = GHB_WIDGET(ud->builder, "check_updates_box");
+ gtk_widget_hide(widget);
+#endif
+
widget = GHB_WIDGET(ud->builder, "preview_hud");
gtk_widget_set_name(widget, "preview_hud");
widget = GHB_WIDGET(ud->builder, "preview_window");