[pitivi] gstwidget: don't override elementsettingsdialog's size settings
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] gstwidget: don't override elementsettingsdialog's size settings
- Date: Tue, 7 Jun 2011 01:40:32 +0000 (UTC)
commit 0953939993a65461799c64b2d84565fb34bf6a4a
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date: Mon Jun 6 15:06:02 2011 -0400
gstwidget: don't override elementsettingsdialog's size settings
Set the horizontal scrollbar policy to "never" to allow the dialog
to set its width automatically.
Fix spacing.
data/ui/elementsettingsdialog.ui | 7 +++++--
pitivi/ui/gstwidget.py | 4 ----
2 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/data/ui/elementsettingsdialog.ui b/data/ui/elementsettingsdialog.ui
index 5dbfcad..6868849 100644
--- a/data/ui/elementsettingsdialog.ui
+++ b/data/ui/elementsettingsdialog.ui
@@ -4,14 +4,17 @@
<object class="GtkDialog" id="dialog1">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="border_width">3</property>
+ <property name="border_width">12</property>
<property name="title" translatable="yes">Properties for <element></property>
<property name="modal">True</property>
+ <property name="default_height">550</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">12</property>
<child internal-child="action_area">
<object class="GtkButtonBox" id="dialog-action_area1">
<property name="visible">True</property>
@@ -61,12 +64,12 @@
<object class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="border_width">12</property>
<property name="spacing">12</property>
<child>
<object class="GtkScrolledWindow" id="scrolledwindow1">
<property name="visible">True</property>
<property name="can_focus">True</property>
+ <property name="hscrollbar_policy">never</property>
<property name="shadow_type">in</property>
<child>
<object class="GtkViewport" id="viewport1">
diff --git a/pitivi/ui/gstwidget.py b/pitivi/ui/gstwidget.py
index d5d3401..838cce0 100644
--- a/pitivi/ui/gstwidget.py
+++ b/pitivi/ui/gstwidget.py
@@ -205,10 +205,6 @@ class GstElementSettingsDialog(Loggable):
self.infolabel.set_markup("<b>" + self.factory.get_longname() + "</b>")
self.elementsettings.setElement(self.element, self.properties)
self.elementsettings.set_border_width(12)
- self.window.connect("map-event", self._windowMappedCb)
-
- def _windowMappedCb(self, widget, event):
- self.window.resize(600, 400)
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]