[gnome-documents] selections: pack organize collection dialog into a scrolled window
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] selections: pack organize collection dialog into a scrolled window
- Date: Thu, 8 Mar 2012 20:41:13 +0000 (UTC)
commit 2fec946dd2beb7f8a2ff2ecd17c6de34327c7cce
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Mar 8 15:32:11 2012 -0500
selections: pack organize collection dialog into a scrolled window
The collection list could need to scroll.
src/selections.js | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/src/selections.js b/src/selections.js
index 9f763dd..7aed96c 100644
--- a/src/selections.js
+++ b/src/selections.js
@@ -594,15 +594,21 @@ OrganizeCollectionDialog.prototype = {
modal: true,
destroy_with_parent: true,
default_width: 400,
- default_height: 200 });
- this.widget.add_button('gtk-add', OrganizeCollectionDialogResponse.ADD);
+ default_height: 250 });
+ this.widget.add_button('gtk-add', OrganizeCollectionDialogResponse.ADD);
this.widget.add_button('gtk-ok', Gtk.ResponseType.OK);
this.widget.set_default_response(Gtk.ResponseType.OK);
let contentArea = this.widget.get_content_area();
+ let sw = new Gtk.ScrolledWindow({ shadow_type: Gtk.ShadowType.IN,
+ margin_left: 5,
+ margin_right: 5,
+ margin_bottom: 3 });
let collView = new OrganizeCollectionView();
- contentArea.add(collView.widget);
+
+ sw.add(collView.widget);
+ contentArea.add(sw);
this.widget.connect('response', Lang.bind(this,
function(widget, response) {
@@ -610,7 +616,7 @@ OrganizeCollectionDialog.prototype = {
collView.addCollection();
}));
- this.widget.show();
+ this.widget.show_all();
}
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]