[pitivi] ElementSettingsDialog: remove unecessary widgets



commit b9028ad523b45b3dc7f19e36f886f248ee28bfb4
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date:   Fri Dec 10 16:01:27 2010 +0000

    ElementSettingsDialog: remove unecessary widgets

 pitivi/ui/elementsettingsdialog.glade |  131 +++++----------------------------
 pitivi/ui/gstwidget.py                |   10 +--
 2 files changed, 21 insertions(+), 120 deletions(-)
---
diff --git a/pitivi/ui/elementsettingsdialog.glade b/pitivi/ui/elementsettingsdialog.glade
index 1e739e6..f8d19c3 100644
--- a/pitivi/ui/elementsettingsdialog.glade
+++ b/pitivi/ui/elementsettingsdialog.glade
@@ -14,139 +14,44 @@
         <child>
           <widget class="GtkVBox" id="vbox1">
             <property name="visible">True</property>
-            <property name="border_width">3</property>
-            <property name="spacing">3</property>
+            <property name="border_width">12</property>
+            <property name="spacing">12</property>
             <child>
-              <widget class="GtkFrame" id="frame1">
+              <widget class="GtkLabel" id="infolabel">
                 <property name="visible">True</property>
-                <property name="label_xalign">0</property>
-                <property name="shadow_type">none</property>
-                <child>
-                  <widget class="GtkAlignment" id="alignment1">
-                    <property name="visible">True</property>
-                    <property name="left_padding">12</property>
-                    <child>
-                      <widget class="GtkTable" id="table1">
-                        <property name="visible">True</property>
-                        <property name="border_width">3</property>
-                        <property name="n_rows">2</property>
-                        <property name="n_columns">2</property>
-                        <property name="column_spacing">3</property>
-                        <property name="row_spacing">3</property>
-                        <child>
-                          <widget class="GtkLabel" id="authorlabel">
-                            <property name="visible">True</property>
-                            <property name="xalign">1</property>
-                            <property name="label" translatable="yes">Author</property>
-                          </widget>
-                          <packing>
-                            <property name="left_attach">1</property>
-                            <property name="right_attach">2</property>
-                            <property name="top_attach">1</property>
-                            <property name="bottom_attach">2</property>
-                            <property name="y_options"></property>
-                          </packing>
-                        </child>
-                        <child>
-                          <widget class="GtkLabel" id="descriptionlabel">
-                            <property name="visible">True</property>
-                            <property name="xalign">1</property>
-                            <property name="label" translatable="yes">Description</property>
-                          </widget>
-                          <packing>
-                            <property name="left_attach">1</property>
-                            <property name="right_attach">2</property>
-                            <property name="y_options"></property>
-                          </packing>
-                        </child>
-                        <child>
-                          <widget class="GtkLabel" id="label1">
-                            <property name="visible">True</property>
-                            <property name="xalign">0</property>
-                            <property name="yalign">0</property>
-                            <property name="label" translatable="yes">&lt;b&gt;Description:&lt;/b&gt;</property>
-                            <property name="use_markup">True</property>
-                          </widget>
-                          <packing>
-                            <property name="x_options">GTK_FILL</property>
-                            <property name="y_options">GTK_FILL</property>
-                          </packing>
-                        </child>
-                        <child>
-                          <widget class="GtkLabel" id="label2">
-                            <property name="visible">True</property>
-                            <property name="xalign">0</property>
-                            <property name="yalign">0</property>
-                            <property name="label" translatable="yes">&lt;b&gt;Author:&lt;/b&gt;</property>
-                            <property name="use_markup">True</property>
-                          </widget>
-                          <packing>
-                            <property name="top_attach">1</property>
-                            <property name="bottom_attach">2</property>
-                            <property name="x_options">GTK_FILL</property>
-                            <property name="y_options">GTK_FILL</property>
-                          </packing>
-                        </child>
-                      </widget>
-                    </child>
-                  </widget>
-                </child>
-                <child>
-                  <widget class="GtkLabel" id="infolabel">
-                    <property name="visible">True</property>
-                    <property name="label" translatable="yes">&lt;b&gt;Plugin Name&lt;/b&gt;</property>
-                    <property name="use_markup">True</property>
-                  </widget>
-                  <packing>
-                    <property name="type">label_item</property>
-                  </packing>
-                </child>
+                <property name="xalign">0</property>
+                <property name="label" translatable="yes">&lt;b&gt;Properties For Plugin&lt;/b&gt;</property>
+                <property name="use_markup">True</property>
               </widget>
               <packing>
                 <property name="expand">False</property>
+                <property name="fill">False</property>
                 <property name="position">0</property>
               </packing>
             </child>
             <child>
-              <widget class="GtkFrame" id="frame2">
-                <property name="height_request">200</property>
+              <widget class="GtkScrolledWindow" id="scrolledwindow1">
                 <property name="visible">True</property>
-                <property name="label_xalign">0</property>
-                <property name="shadow_type">none</property>
+                <property name="can_focus">True</property>
+                <property name="hscrollbar_policy">automatic</property>
+                <property name="vscrollbar_policy">automatic</property>
+                <property name="shadow_type">in</property>
                 <child>
-                  <widget class="GtkScrolledWindow" id="scrolledwindow1">
+                  <widget class="GtkViewport" id="viewport1">
                     <property name="visible">True</property>
-                    <property name="can_focus">True</property>
-                    <property name="hscrollbar_policy">automatic</property>
-                    <property name="vscrollbar_policy">automatic</property>
-                    <property name="shadow_type">in</property>
+                    <property name="resize_mode">queue</property>
+                    <property name="shadow_type">none</property>
                     <child>
-                      <widget class="GtkViewport" id="viewport1">
+                      <widget class="Custom" id="elementsettings">
                         <property name="visible">True</property>
-                        <property name="shadow_type">none</property>
-                        <child>
-                          <widget class="Custom" id="elementsettings">
-                            <property name="visible">True</property>
-                            <property name="creation_function">pitivi.ui.gstwidget.GstElementSettingsWidget()</property>
-                          </widget>
-                        </child>
+                        <property name="creation_function">pitivi.ui.gstwidget.GstElementSettingsWidget()</property>
                       </widget>
                     </child>
                   </widget>
                 </child>
-                <child>
-                  <widget class="GtkLabel" id="label3">
-                    <property name="visible">True</property>
-                    <property name="label" translatable="yes">&lt;b&gt;Properties&lt;/b&gt;</property>
-                    <property name="use_markup">True</property>
-                  </widget>
-                  <packing>
-                    <property name="type">label_item</property>
-                  </packing>
-                </child>
               </widget>
               <packing>
-                <property name="position">1</property>
+                <property name="position">-1</property>
               </packing>
             </child>
           </widget>
diff --git a/pitivi/ui/gstwidget.py b/pitivi/ui/gstwidget.py
index 9802fc0..6661254 100644
--- a/pitivi/ui/gstwidget.py
+++ b/pitivi/ui/gstwidget.py
@@ -187,19 +187,15 @@ class GstElementSettingsDialog(GladeWindow, Loggable):
         self.element = self.factory.create("elementsettings")
         if not self.element:
             self.warning("Couldn't create element from factory %s", self.factory)
-        self.desclabel = self.widgets["descriptionlabel"]
-        self.authlabel = self.widgets["authorlabel"]
         self.properties = properties
         self._fillWindow()
 
     def _fillWindow(self):
         # set title and frame label
         self.window.set_title(_("Properties for %s") % self.factory.get_longname())
-        self.widgets["infolabel"].set_markup("<b>" + self.factory.get_longname() + "</b>")
-        self.desclabel.set_text(self.factory.get_description())
-        self.authlabel.set_text('\n'.join(self.factory.get_author().split(",")))
-        self.authlabel.set_justify(gtk.JUSTIFY_RIGHT)
-        self.widgets["elementsettings"].setElement(self.element, self.properties)
+        self.infolabel.set_markup("<b>" + self.factory.get_longname() + "</b>")
+        self.elementsettings.setElement(self.element, self.properties)
+        self.elementsettings.set_border_width(12)
 
     def getSettings(self):
         """ returns the property/value dictionnary of the selected settings """



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