From: Grégoire Jadi Date: Thu, 25 Jul 2013 13:33:11 +0000 (+0200) Subject: * src/xwidget.c (xwidget_init_view): Remove dead code. X-Git-Tag: emacs-25.0.90~2871^2~5 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ede647400e3248fc19e6450644d016a845c9af85;p=emacs.git * src/xwidget.c (xwidget_init_view): Remove dead code. --- diff --git a/src/xwidget.c b/src/xwidget.c index 878070dda01..08f49ac82d7 100644 --- a/src/xwidget.c +++ b/src/xwidget.c @@ -987,9 +987,8 @@ xwidget_init_view (struct xwidget *xww, } else if (EQ(xww->type, Qwebkit_osr)|| EQ(xww->type, Qsocket_osr)|| (!NILP (Fget(xww->type, QCxwgir_class))))//xwgir widgets are OSR - { -#ifdef HAVE_WEBKIT_OSR //TODO the ifdef isnt really relevant anymore, we always have osr - printf("osr init:%s\n",SDATA(SYMBOL_NAME(xww->type))); + { + printf("osr init:%s\n",SDATA(SYMBOL_NAME(xww->type))); xv->widget = gtk_drawing_area_new(); gtk_widget_set_app_paintable ( xv->widget, TRUE); //because expose event handling gtk_widget_add_events(xv->widget, @@ -1023,14 +1022,6 @@ xwidget_init_view (struct xwidget *xww, - /* g_signal_connect (G_OBJECT ( xv->widget), "key-press-event", */ - /* G_CALLBACK (xwidget_osr_event_forward), NULL); */ - /* g_signal_connect (G_OBJECT ( xv->widget), "key-release-event", */ - /* G_CALLBACK (xwidget_osr_event_forward), NULL); */ - -#endif /* HAVE_WEBKIT_OSR */ - - } //else return NULL;