From 1dde002031d1e4f22e5605fbc17fff87af75b709 Mon Sep 17 00:00:00 2001 From: Dustin Falgout Date: Thu, 3 Mar 2016 11:40:51 -0600 Subject: [PATCH] remove unused function. disable development related functionality in preparation for release. --- src/lightdm-webkit2-greeter.c | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/src/lightdm-webkit2-greeter.c b/src/lightdm-webkit2-greeter.c index 439e3b9..895449b 100644 --- a/src/lightdm-webkit2-greeter.c +++ b/src/lightdm-webkit2-greeter.c @@ -100,7 +100,7 @@ initialize_web_extensions_cb(WebKitWebContext *context, gpointer user_data) { static void create_new_webkit_settings_object(void) { webkit_settings = webkit_settings_new_with_settings( - "enable-developer-extras", TRUE, /* TODO: Disable this for release. */ + "enable-developer-extras", FALSE, "enable-fullscreen", TRUE, "enable-site-specific-quirks", TRUE, "enable-dns-prefetching", TRUE, @@ -165,23 +165,6 @@ message_received_cb(WebKitUserContentManager *manager, } -static gboolean -fade_timer_cb(gpointer data) { - gdouble opacity; - opacity = gtk_widget_get_opacity(web_view); - opacity -= 0.1; - - if (opacity <= 0) { - gtk_main_quit(); - return FALSE; - } - - gtk_widget_set_opacity(web_view, opacity); - - return TRUE; -} - - int main(int argc, char **argv) { GdkScreen *screen; @@ -275,8 +258,7 @@ main(int argc, char **argv) { webkit_web_view_set_background_color(WEBKIT_WEB_VIEW(web_view), gdk_rgba_copy(&bg_color)); /* Disable the context (right-click) menu. */ - /* TODO: Uncomment next line for release */ - //g_signal_connect(web_view, "context-menu", G_CALLBACK(context_menu_cb), NULL); + g_signal_connect(web_view, "context-menu", G_CALLBACK(context_menu_cb), NULL); /* There's no turning back now, let's go! */ gtk_container_add(GTK_CONTAINER(window), web_view);