[ease/plugins] Add a viewport to respect window's size with long labels.



commit ec6f095fd5c6e9842e97aba9d5833312d887c243
Author: Stéphane Maniaci <stephane maniaci gmail com>
Date:   Tue Jun 22 16:54:30 2010 +0200

    Add a viewport to respect window's size with long labels.

 plugins/flickr.ui   |   26 +++++++++++++++++++-------
 plugins/flickr.vala |    2 +-
 2 files changed, 20 insertions(+), 8 deletions(-)
---
diff --git a/plugins/flickr.ui b/plugins/flickr.ui
index 549425e..22f9371 100644
--- a/plugins/flickr.ui
+++ b/plugins/flickr.ui
@@ -81,16 +81,28 @@
               </packing>
             </child>
             <child>
-              <object class="GtkLabel" id="infos_label">
+              <object class="GtkScrolledWindow" id="scrolledwindow2">
                 <property name="visible">True</property>
-                <property name="xalign">0</property>
-                <property name="yalign">0</property>
-                <property name="label" translatable="yes">Click a picture to get more information about it.</property>
-                <property name="wrap">True</property>
+                <property name="can_focus">True</property>
+                <property name="hscrollbar_policy">automatic</property>
+                <property name="vscrollbar_policy">automatic</property>
+                <child>
+                  <object class="GtkViewport" id="viewport1">
+                    <property name="visible">True</property>
+                    <property name="resize_mode">queue</property>
+                    <child>
+                      <object class="GtkLabel" id="infos_label">
+                        <property name="visible">True</property>
+                        <property name="xalign">0</property>
+                        <property name="yalign">0</property>
+                        <property name="label" translatable="yes">Click a picture to get more information about it.</property>
+                        <property name="wrap">True</property>
+                      </object>
+                    </child>
+                  </object>
+                </child>
               </object>
               <packing>
-                <property name="expand">False</property>
-                <property name="fill">False</property>
                 <property name="position">2</property>
               </packing>
             </child>
diff --git a/plugins/flickr.vala b/plugins/flickr.vala
index d9d2756..fa96596 100644
--- a/plugins/flickr.vala
+++ b/plugins/flickr.vala
@@ -12,7 +12,7 @@ using Gtk;
   - make a nice combo-box for licenses
   - make the UI prettier
   - split out in a common Ease.ResourceImporter dialog or something
-  - raise accuracy (ie use the keywords to search tags _and_ description, and others)
+  - raise accuracy (ie use the keywords to search tags _and_ description, and others) 50% DONE
   - get the next set of photos (use the "page" param of flickr.photos.search)
   - show a tiny spinner when loading
 */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]