connect max albums to preferences

Esse commit está contido em:
fossfreedom
2013-07-18 21:55:57 +01:00
commit 28ee9474f8
4 arquivos alterados com 105 adições e 69 exclusões
+4
Ver Arquivo
@@ -403,6 +403,10 @@ class Preferences(GObject.Object, PeasGtk.Configurable):
self.settings.bind(gs.PluginKey.FLOW_WIDTH, flow_width, 'value',
Gio.SettingsBindFlags.DEFAULT)
flow_max = builder.get_object('flow_max_adjustment')
self.settings.bind(gs.PluginKey.FLOW_MAX, flow_max, 'value',
Gio.SettingsBindFlags.DEFAULT)
flow_automatic = builder.get_object('automatic_checkbox')
self.settings.bind(gs.PluginKey.FLOW_AUTOMATIC,
flow_automatic, 'active', Gio.SettingsBindFlags.DEFAULT)
+5 -2
Ver Arquivo
@@ -2,7 +2,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<link rel="stylesheet" title="Standard" href="stylestest.css" type="text/css" media="screen" />
<link rel="stylesheet" title="Standard" href="styles.css" type="text/css" media="screen" />
<!--<style>
@@ -28,13 +28,16 @@
body{
background: #BACKGROUND_COLOUR;
font-size:0.825em;
font-family:Arial, Helvetica, sans-serif;
}
</style>
</head>
<body>
<div class="className">
<p>Use the Search and Filter options to display covers </p>
<p>Use the Search and Filter options to display covers
</p>
</div>
</body>
-22
Ver Arquivo
@@ -1,22 +0,0 @@
body{
/* Setting default text color, background and a font stack */
color:#555555;
font-size:0.825em;
background: #fcfcfc;
font-family:Arial, Helvetica, sans-serif;
}
.className{
background-color:#338BC7;
width:270px;
height:150px;
position:relative;
-moz-border-radius:6px;
-webkit-border-radius:6px;
border-radius:6px;
}
+96 -45
Ver Arquivo
@@ -64,40 +64,12 @@
<property name="text">0</property>
<property name="max_length">3</property>
</object>
<object class="GtkListStore" id="flow_model">
<columns>
<!-- column-name id -->
<column type="gchararray"/>
<!-- column-name text -->
<column type="gchararray"/>
</columns>
<data>
<row>
<col id="0">flow-horiz</col>
<col id="1" translatable="yes">Coverflow</col>
</row>
<row>
<col id="0">flow-vert</col>
<col id="1" translatable="yes">Coverflow (Vertical)</col>
</row>
<row>
<col id="0">carousel</col>
<col id="1" translatable="yes">Carousel</col>
</row>
<row>
<col id="0">roundabout</col>
<col id="1" translatable="yes">Roundabout</col>
</row>
</data>
</object>
<object class="GtkAdjustment" id="font_adjustment">
<property name="lower">4</property>
<property name="upper">72</property>
<property name="step_increment">1</property>
<property name="page_increment">1</property>
</object>
<object class="GtkAction" id="ok_action">
<property name="stock_id">gtk-ok</property>
<object class="GtkFileFilter" id="filefilter1">
<mime-types>
<mime-type>image/png</mime-type>
<mime-type>image/jpeg</mime-type>
<mime-type>image/gif</mime-type>
</mime-types>
</object>
<object class="GtkFileChooserDialog" id="filechooserdialog">
<property name="can_focus">False</property>
@@ -172,12 +144,47 @@
<action-widget response="-3">fc_ok_button</action-widget>
</action-widgets>
</object>
<object class="GtkFileFilter" id="filefilter1">
<mime-types>
<mime-type>image/png</mime-type>
<mime-type>image/jpeg</mime-type>
<mime-type>image/gif</mime-type>
</mime-types>
<object class="GtkListStore" id="flow_model">
<columns>
<!-- column-name id -->
<column type="gchararray"/>
<!-- column-name text -->
<column type="gchararray"/>
</columns>
<data>
<row>
<col id="0">flow-horiz</col>
<col id="1" translatable="yes">Coverflow</col>
</row>
<row>
<col id="0">flow-vert</col>
<col id="1" translatable="yes">Coverflow (Vertical)</col>
</row>
<row>
<col id="0">carousel</col>
<col id="1" translatable="yes">Carousel</col>
</row>
<row>
<col id="0">roundabout</col>
<col id="1" translatable="yes">Roundabout</col>
</row>
</data>
</object>
<object class="GtkAdjustment" id="flow_max_adjustment">
<property name="lower">50</property>
<property name="upper">500</property>
<property name="value">100</property>
<property name="step_increment">25</property>
<property name="page_increment">50</property>
</object>
<object class="GtkAdjustment" id="font_adjustment">
<property name="lower">4</property>
<property name="upper">72</property>
<property name="step_increment">1</property>
<property name="page_increment">1</property>
</object>
<object class="GtkAction" id="ok_action">
<property name="stock_id">gtk-ok</property>
</object>
<object class="GtkImage" id="howitworks_image">
<property name="visible">True</property>
@@ -1581,6 +1588,50 @@
<property name="position">4</property>
</packing>
</child>
<child>
<object class="GtkBox" id="box12">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkLabel" id="label15">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Maximum covers to display:</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkSpinButton" id="flow_max_spin">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="margin_left">5</property>
<property name="max_length">3</property>
<property name="invisible_char">•</property>
<property name="width_chars">3</property>
<property name="invisible_char_set">True</property>
<property name="adjustment">flow_max_adjustment</property>
<property name="climb_rate">10</property>
<property name="snap_to_ticks">True</property>
<property name="numeric">True</property>
<property name="update_policy">if-valid</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">5</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label12">
<property name="visible">True</property>
@@ -1595,7 +1646,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">5</property>
<property name="position">6</property>
</packing>
</child>
<child>
@@ -1613,7 +1664,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">6</property>
<property name="position">7</property>
</packing>
</child>
<child>
@@ -1632,7 +1683,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">7</property>
<property name="position">8</property>
</packing>
</child>
<child>
@@ -1649,7 +1700,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">8</property>
<property name="position">9</property>
</packing>
</child>
<child>
@@ -1667,7 +1718,7 @@ on click of cover</property>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">9</property>
<property name="position">10</property>
</packing>
</child>
</object>