~ubuntu-branches/ubuntu/gutsy/firefox/gutsy

« back to all changes in this revision

Viewing changes to widget/src/gtk2/nsBidiKeyboard.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Ian Jackson
  • Date: 2006-10-10 18:49:32 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20061010184932-da75izt7y0e59afq
Tags: 1.99+2.0rc2+dfsg-0ubuntu1
* New upstream version 2.0rc2.
* Fix/workaround for epiphany GtkSocket lifetype crash:
  apply patch id=241087 from Mozilla Bugzilla #241535 to fix LP #63814.
* Change application name to `Firefox', as requested by mdz.
  Files changed:
    - browser/locales/en-US/chrome/branding/brand.dtd
    - browser/locales/en-US/chrome/branding/brand.properties;
  New values:
    - brandShortName and brandFullName: `Bon Echo' => `Firefox'
    - vendorShortName: `Mozilla' => `Ubuntu'
* Make preferences dialogue fit again (bah!).

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 * ***** END LICENSE BLOCK ***** */
38
38
 
39
39
#include "nsBidiKeyboard.h"
 
40
#include <gtk/gtk.h>
40
41
 
41
42
NS_IMPL_ISUPPORTS1(nsBidiKeyboard, nsIBidiKeyboard)
42
43
 
50
51
 
51
52
NS_IMETHODIMP nsBidiKeyboard::IsLangRTL(PRBool *aIsRTL)
52
53
{
53
 
    *aIsRTL = PR_FALSE;
54
 
    // XXX Insert platform specific code to determine keyboard direction
 
54
    *aIsRTL = (gdk_keymap_get_direction(NULL) == PANGO_DIRECTION_RTL);
55
55
    return NS_OK;
56
56
}
57
57