[gdl] add workaround (for a GI bug) to the js example
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdl] add workaround (for a GI bug) to the js example
- Date: Wed, 29 Dec 2010 21:45:19 +0000 (UTC)
commit 99df77ab9abf5f96ee78e123bb0b4e2fdc041528
Author: Abderrahim Kitouni <a kitouni gmail com>
Date: Wed Dec 29 22:35:34 2010 +0100
add workaround (for a GI bug) to the js example
gdl/test-dock.js | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/gdl/test-dock.js b/gdl/test-dock.js
index 49e23f0..176805a 100755
--- a/gdl/test-dock.js
+++ b/gdl/test-dock.js
@@ -33,7 +33,18 @@ function create_text_item () {
function create_styles_item (dock) {
function create_style_button (dock, box, group, style, style_text) {
current_style = dock.master.switcher_style;
+ /* This won't work because of a bug in G-I, a workaround is below
+
button1 = new Gtk.RadioButton.with_label_from_widget (group, style_text);
+ */
+
+ if (group == null) {
+ button1 = new Gtk.RadioButton ();
+ } else {
+ button1 = group.new_with_label_from_widget (style_text);
+ }
+ /* end workaround */
+
button1.show ();
button1.__style_id = style;
if (current_style == style) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]