~ubuntu-branches/ubuntu/trusty/xiphos/trusty

« back to all changes in this revision

Viewing changes to src/gecko/gecko-html.cpp

  • Committer: Package Import Robot
  • Author(s): Dmitrijs Ledkovs, Dmitrijs Ledkovs
  • Date: 2012-03-11 18:43:32 UTC
  • mfrom: (17.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20120311184332-splq3ecpx7tyi87d
Tags: 3.1.5+dfsg-1
[ Dmitrijs Ledkovs <dmitrij.ledkov@ubuntu.com> ]  
* New upstream release.
* Build using webkit backend
* Contains unpacked source for waf binary (Closes: #654511)
* Update debian/copyright to latest specification

Show diffs side-by-side

added added

removed removed

Lines of Context:
303
303
static void html_init(GeckoHtml * html)
304
304
{
305
305
        GeckoHtmlPriv *priv;
306
 
        GeckoHtmlClass *klass;
 
306
        //GeckoHtmlClass *klass;
307
307
 
308
308
        html->priv = priv = GECKO_HTML_GET_PRIVATE(html);
309
309
 
312
312
        priv->timeout = 0;
313
313
 
314
314
        priv->yelper = new Yelper(GTK_MOZ_EMBED(html));
315
 
        klass = GECKO_HTML_GET_CLASS(html);
 
315
        //klass = GECKO_HTML_GET_CLASS(html);
316
316
}
317
317
 
318
318
static void html_dispose(GObject * object)
664
664
                delete swdisplay;
665
665
#endif
666
666
}
 
667
 
 
668
void
 
669
gecko_html_set_parms(GeckoHtml *html,
 
670
                     GeckoHtmlPriv *priv,
 
671
                     DIALOG_DATA *dialog,
 
672
                     gboolean is_dialog,
 
673
                     gint pane)
 
674
{
 
675
        priv->pane = pane;
 
676
        priv->is_dialog = is_dialog;
 
677
        priv->dialog = dialog;
 
678
 
 
679
        //make scrollbar appear on the left for RTL locales
 
680
        GtkTextDirection dir = gtk_widget_get_direction(GTK_WIDGET (html));
 
681
        if (dir == GTK_TEXT_DIR_RTL)
 
682
            priv->yelper->SetRTL();
 
683
}