Merge lp:~cimi/overlay-scrollbar/blacklist-rtl-languages into lp:overlay-scrollbar

Proposed by Andrea Cimitan
Status: Merged
Merged at revision: 172
Proposed branch: lp:~cimi/overlay-scrollbar/blacklist-rtl-languages
Merge into: lp:overlay-scrollbar
Diff against target: 27 lines (+7/-0)
2 files modified
os/os-utils.c (+5/-0)
os/os-utils.h (+2/-0)
To merge this branch: bzr merge lp:~cimi/overlay-scrollbar/blacklist-rtl-languages
Reviewer Review Type Date Requested Status
David Barth (community) Approve
Review via email: mp+54548@code.launchpad.net

Description of the change

Blacklist RTL languages for now

To post a comment you must log in.
Revision history for this message
David Barth (dbarth) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'os/os-utils.c'
2--- os/os-utils.c 2011-03-22 19:03:33 +0000
3+++ os/os-utils.c 2011-03-23 15:47:12 +0000
4@@ -38,6 +38,11 @@
5
6 gint32 i;
7 const gint32 nr_programs = G_N_ELEMENTS (blacklist);
8+
9+ /* Black list RTL languages, not supported yet */
10+ if (gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL)
11+ return TRUE;
12+
13 for (i = 0; i < nr_programs; i++)
14 if (g_strcmp0 (blacklist[i], program) == 0)
15 return TRUE;
16
17=== modified file 'os/os-utils.h'
18--- os/os-utils.h 2011-03-22 18:58:18 +0000
19+++ os/os-utils.h 2011-03-23 15:47:12 +0000
20@@ -28,6 +28,8 @@
21 #define __OS_UTILS_H__
22
23 #include <glib.h>
24+#include <gtk/gtkwidget.h>
25+#include <gtk/gtkenums.h>
26
27 G_BEGIN_DECLS
28

Subscribers

People subscribed via source and target branches