Entropy/Spritz:
- implement the Preferences menu - reorder left buttons git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2080 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
@@ -16,13 +16,10 @@ TODO list
|
||||
|
||||
Spritz:
|
||||
- configuration menu (equo.conf + others interface)
|
||||
- package masking menu
|
||||
- install tbz2
|
||||
- Popularity feature / Your Ego service
|
||||
- Category <-> Image dictionary (for the properties menu)
|
||||
- Skip Mirror buttons
|
||||
- button to stop the queue
|
||||
- show the number of packages found in a list
|
||||
- Spritz related preferences
|
||||
|
||||
Notes:
|
||||
- when supporting more than one ":" in atoms, remember to fix treeupdates functions accordingly
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 846 B |
@@ -808,7 +808,7 @@ class infoDialog:
|
||||
return self.dialog.run()
|
||||
|
||||
def destroy( self ):
|
||||
return self.dialog.destroy()
|
||||
return self.dialog.destroy()
|
||||
|
||||
|
||||
class EntryDialog:
|
||||
|
||||
+14
-3
@@ -242,6 +242,7 @@ class SpritzGUI:
|
||||
self.setupAdvisoriesFilter()
|
||||
|
||||
self.setupImages()
|
||||
self.setupLabels()
|
||||
|
||||
|
||||
def on_console_click(self, widget, event):
|
||||
@@ -301,10 +302,11 @@ class SpritzGUI:
|
||||
# Setup Vertical Toolbar
|
||||
self.createButton( _( "Packages" ), "button-packages.png", 'packages',True )
|
||||
self.createButton( _( "Package Categories" ), "button-group.png", 'group')
|
||||
self.createButton( _( "Package Queue" ), "button-queue.png", 'queue' )
|
||||
self.createButton( _( "Security Advisories" ), "button-glsa.png", 'glsa' )
|
||||
self.createButton( _( "Repository Selection" ), "button-repo.png", 'repos' )
|
||||
self.createButton( _( "Configuration Files" ), "button-conf.png", 'filesconf' )
|
||||
self.createButton( _( "Security Advisories" ), "button-glsa.png", 'glsa' )
|
||||
self.createButton( _( "Preferences" ), "preferences.png", 'preferences' )
|
||||
self.createButton( _( "Package Queue" ), "button-queue.png", 'queue' )
|
||||
self.createButton( _( "Output" ), "button-output.png", 'output' )
|
||||
|
||||
def createButton( self, text, icon, page,first = None ):
|
||||
@@ -314,7 +316,7 @@ class SpritzGUI:
|
||||
else:
|
||||
button = gtk.RadioButton( self.firstButton )
|
||||
button.connect( "clicked", self.on_PageButton_changed, page )
|
||||
button.connect( "pressed", self.on_PageButton_pressed, page )
|
||||
#button.connect( "pressed", self.on_PageButton_pressed, page )
|
||||
|
||||
button.set_relief( gtk.RELIEF_NONE )
|
||||
button.set_mode( False )
|
||||
@@ -338,6 +340,7 @@ class SpritzGUI:
|
||||
self.pageButtons[page] = button
|
||||
|
||||
def setupImages(self):
|
||||
""" setup misc application images """
|
||||
|
||||
# progressImage
|
||||
iconpath = os.path.join(const.PIXMAPS_PATH,"sabayon.png")
|
||||
@@ -348,6 +351,14 @@ class SpritzGUI:
|
||||
except gobject.GError:
|
||||
pass
|
||||
|
||||
def setupLabels(self):
|
||||
""" setup misc application labels """
|
||||
|
||||
mytxt = "<span size='x-large' foreground='#8A381B'>%s</span>" % (_("Preferences"),)
|
||||
self.ui.preferencesTitleLabel.set_markup(mytxt)
|
||||
mytxt = "<span foreground='#084670'>%s</span>" % (_("Some configuration options are critical for the health of your System. Be careful."),)
|
||||
self.ui.preferencesLabel.set_markup(mytxt)
|
||||
|
||||
|
||||
def setPage( self, page ):
|
||||
self.activePage = page
|
||||
|
||||
+848
-1
@@ -2212,7 +2212,853 @@
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<placeholder/>
|
||||
<widget class="GtkVBox" id="vbox26">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<child>
|
||||
<widget class="GtkHBox" id="hbox13">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<child>
|
||||
<widget class="GtkImage" id="image7">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="stock">gtk-preferences</property>
|
||||
<property name="icon_size">6</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="padding">2</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox30">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="preferencesTitleLabel">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="yalign">1</property>
|
||||
<property name="label">label</property>
|
||||
</widget>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="preferencesLabel">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="yalign">0</property>
|
||||
<property name="label">label</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="padding">3</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkNotebook" id="notebook1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="show_border">False</property>
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox31">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<child>
|
||||
<widget class="GtkFrame" id="frame1">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="label_xalign">0</property>
|
||||
<property name="shadow_type">GTK_SHADOW_OUT</property>
|
||||
<child>
|
||||
<widget class="GtkAlignment" id="alignment3">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="left_padding">12</property>
|
||||
<child>
|
||||
<widget class="GtkTable" id="table5">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="n_rows">2</property>
|
||||
<property name="n_columns">2</property>
|
||||
<property name="column_spacing">10</property>
|
||||
<property name="row_spacing">9</property>
|
||||
<property name="homogeneous">True</property>
|
||||
<child>
|
||||
<widget class="GtkTable" id="table7">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="n_rows">3</property>
|
||||
<property name="n_columns">2</property>
|
||||
<child>
|
||||
<widget class="GtkComboBox" id="collisionProtectionCombo">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="tooltip" translatable="yes">Prevents files belonging to a package being overwritten by another</property>
|
||||
<property name="items" translatable="yes">Disabled
|
||||
Removal only
|
||||
Install+Removal</property>
|
||||
<signal name="changed" handler="on_Preferences_toggled"/>
|
||||
</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">GTK_FILL</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label34">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="label" translatable="yes">Collision protection</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="top_attach">1</property>
|
||||
<property name="bottom_attach">2</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkSpinButton" id="niceSpinSelect">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="tooltip" translatable="yes">This is what they call "nice level"</property>
|
||||
<property name="max_length">3</property>
|
||||
<property name="width_chars">3</property>
|
||||
<property name="adjustment">1 -19 19 1 10 10</property>
|
||||
<property name="climb_rate">1</property>
|
||||
<property name="numeric">True</property>
|
||||
<signal name="value_changed" handler="on_Preferences_toggled"/>
|
||||
</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="label23">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="label" translatable="yes">Process priority (nice)</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkCheckButton" id="filesBackupCheckbutton">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="tooltip" translatable="yes">Entropy can keep a backup of your updated configuration files</property>
|
||||
<property name="label" translatable="yes">Backup configuration files</property>
|
||||
<property name="response_id">0</property>
|
||||
<property name="draw_indicator">True</property>
|
||||
<signal name="toggled" handler="on_Preferences_toggled"/>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="right_attach">2</property>
|
||||
<property name="top_attach">2</property>
|
||||
<property name="bottom_attach">3</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
</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>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox51">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label31">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="label" translatable="yes">Ignored protected files</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkHBox" id="hbox31">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<child>
|
||||
<widget class="GtkScrolledWindow" id="scrolledwindow33">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||
<child>
|
||||
<widget class="GtkTreeView" id="configProtectSkipView">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="headers_clickable">True</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkVButtonBox" id="vbuttonbox7">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="layout_style">GTK_BUTTONBOX_SPREAD</property>
|
||||
<child>
|
||||
<widget class="GtkButton" id="configProtectSkipNew">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="response_id">0</property>
|
||||
<signal name="clicked" handler="on_configProtectSkipNew_clicked"/>
|
||||
<signal name="released" handler="on_Preferences_toggled"/>
|
||||
<child>
|
||||
<widget class="GtkImage" id="image23">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="stock">gtk-new</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkButton" id="configProtectSkipEdit">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="response_id">0</property>
|
||||
<signal name="clicked" handler="on_configProtectSkipEdit_clicked"/>
|
||||
<child>
|
||||
<widget class="GtkImage" id="image30">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="stock">gtk-edit</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkButton" id="configProtectSkipDelete">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="response_id">0</property>
|
||||
<signal name="clicked" handler="on_configProtectSkipDelete_clicked"/>
|
||||
<signal name="released" handler="on_Preferences_toggled"/>
|
||||
<child>
|
||||
<widget class="GtkImage" id="image36">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="stock">gtk-delete</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">2</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="top_attach">1</property>
|
||||
<property name="bottom_attach">2</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox44">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label27">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="label" translatable="yes">Protected files and directories mask</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkHBox" id="hbox30">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<child>
|
||||
<widget class="GtkScrolledWindow" id="scrolledwindow32">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||
<child>
|
||||
<widget class="GtkTreeView" id="configProtectMaskView">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="headers_clickable">True</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkVButtonBox" id="vbuttonbox6">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="layout_style">GTK_BUTTONBOX_SPREAD</property>
|
||||
<child>
|
||||
<widget class="GtkButton" id="configProtectMaskNew">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="response_id">0</property>
|
||||
<signal name="clicked" handler="on_configProtectMaskNew_clicked"/>
|
||||
<signal name="released" handler="on_Preferences_toggled"/>
|
||||
<child>
|
||||
<widget class="GtkImage" id="image15">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="stock">gtk-new</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkButton" id="configProtectMaskEdit">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="response_id">0</property>
|
||||
<signal name="clicked" handler="on_configProtectMaskEdit_clicked"/>
|
||||
<signal name="released" handler="on_Preferences_toggled"/>
|
||||
<child>
|
||||
<widget class="GtkImage" id="image29">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="stock">gtk-edit</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkButton" id="configProtectMaskDelete">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="response_id">0</property>
|
||||
<signal name="clicked" handler="on_configProtectMaskDelete_clicked"/>
|
||||
<signal name="released" handler="on_Preferences_toggled"/>
|
||||
<child>
|
||||
<widget class="GtkImage" id="image35">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="stock">gtk-delete</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">2</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="left_attach">1</property>
|
||||
<property name="right_attach">2</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox33">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label25">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="label" translatable="yes">Protected files and directories</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkHBox" id="hbox24">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<child>
|
||||
<widget class="GtkScrolledWindow" id="scrolledwindow17">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||
<child>
|
||||
<widget class="GtkTreeView" id="configProtectView">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="headers_clickable">True</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkVButtonBox" id="vbuttonbox3">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="layout_style">GTK_BUTTONBOX_SPREAD</property>
|
||||
<child>
|
||||
<widget class="GtkButton" id="configProtectNew">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="response_id">0</property>
|
||||
<signal name="clicked" handler="on_configProtectNew_clicked"/>
|
||||
<signal name="released" handler="on_Preferences_toggled"/>
|
||||
<child>
|
||||
<widget class="GtkImage" id="image13">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="stock">gtk-new</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkButton" id="configProtectEdit">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="response_id">0</property>
|
||||
<signal name="clicked" handler="on_configProtectEdit_clicked"/>
|
||||
<signal name="released" handler="on_Preferences_toggled"/>
|
||||
<child>
|
||||
<widget class="GtkImage" id="image27">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="stock">gtk-edit</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkButton" id="configProtectDelete">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="response_id">0</property>
|
||||
<signal name="clicked" handler="on_configProtectDelete_clicked"/>
|
||||
<signal name="released" handler="on_Preferences_toggled"/>
|
||||
<child>
|
||||
<widget class="GtkImage" id="image33">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="stock">gtk-delete</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">2</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label24">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="use_markup">True</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="type">label_item</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label13">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="label" translatable="yes">System</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="type">tab</property>
|
||||
<property name="tab_fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox32">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="homogeneous">True</property>
|
||||
<child>
|
||||
<widget class="GtkFrame" id="frame2">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="label_xalign">0</property>
|
||||
<property name="shadow_type">GTK_SHADOW_OUT</property>
|
||||
<child>
|
||||
<widget class="GtkAlignment" id="alignment5">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="left_padding">12</property>
|
||||
<child>
|
||||
<widget class="GtkTable" id="table4">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="n_rows">3</property>
|
||||
<property name="n_columns">3</property>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label37">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="label" translatable="yes">kb/sec</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="left_attach">2</property>
|
||||
<property name="right_attach">3</property>
|
||||
<property name="top_attach">2</property>
|
||||
<property name="bottom_attach">3</property>
|
||||
<property name="y_options">GTK_FILL</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkSpinButton" id="speedLimitSpin">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="tooltip" translatable="yes">0 = no limit; 100 = 100kb/sec</property>
|
||||
<property name="editable">False</property>
|
||||
<property name="adjustment">0 0 99999 1 100 100</property>
|
||||
<signal name="value_changed" handler="on_Preferences_toggled"/>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="left_attach">1</property>
|
||||
<property name="right_attach">2</property>
|
||||
<property name="top_attach">2</property>
|
||||
<property name="bottom_attach">3</property>
|
||||
<property name="y_options">GTK_FILL</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkEntry" id="httpProxyEntry">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="tooltip" translatable="yes">Example: http://proxy:1234</property>
|
||||
<signal name="changed" handler="on_Preferences_toggled"/>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="left_attach">1</property>
|
||||
<property name="right_attach">3</property>
|
||||
<property name="top_attach">1</property>
|
||||
<property name="bottom_attach">2</property>
|
||||
<property name="y_options">GTK_FILL</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkEntry" id="ftpProxyEntry">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="tooltip" translatable="yes">Example: http://proxy:1234</property>
|
||||
<signal name="changed" handler="on_Preferences_toggled"/>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="left_attach">1</property>
|
||||
<property name="right_attach">3</property>
|
||||
<property name="y_options">GTK_FILL</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label36">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="label" translatable="yes">Download speed limit</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="top_attach">2</property>
|
||||
<property name="bottom_attach">3</property>
|
||||
<property name="y_options">GTK_FILL</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label32">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="label" translatable="yes">HTTP Proxy</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="top_attach">1</property>
|
||||
<property name="bottom_attach">2</property>
|
||||
<property name="y_options">GTK_FILL</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label18">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="label" translatable="yes">FTP Proxy</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="y_options">GTK_FILL</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label26">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="label" translatable="yes">Socket settings</property>
|
||||
<property name="use_markup">True</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="type">label_item</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label14">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="label" translatable="yes">Networking</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="type">tab</property>
|
||||
<property name="position">1</property>
|
||||
<property name="tab_fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
<child>
|
||||
<placeholder/>
|
||||
<packing>
|
||||
<property name="type">tab</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkHButtonBox" id="hbuttonbox2">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="spacing">10</property>
|
||||
<property name="layout_style">GTK_BUTTONBOX_START</property>
|
||||
<child>
|
||||
<widget class="GtkButton" id="preferencesRestoreButton">
|
||||
<property name="visible">True</property>
|
||||
<property name="sensitive">False</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="response_id">0</property>
|
||||
<signal name="clicked" handler="on_preferencesRestoreButton_clicked"/>
|
||||
<child>
|
||||
<widget class="GtkHBox" id="hbox16">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<child>
|
||||
<widget class="GtkImage" id="image8">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="stock">gtk-revert-to-saved</property>
|
||||
</widget>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label21">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="label" translatable="yes">Restore</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkButton" id="preferencesSaveButton">
|
||||
<property name="visible">True</property>
|
||||
<property name="sensitive">False</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="response_id">0</property>
|
||||
<signal name="clicked" handler="on_preferencesSaveButton_clicked"/>
|
||||
<child>
|
||||
<widget class="GtkHBox" id="hbox15">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<child>
|
||||
<widget class="GtkImage" id="image9">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="stock">gtk-save</property>
|
||||
</widget>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label22">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="label" translatable="yes">Save</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="padding">4</property>
|
||||
<property name="position">2</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="position">7</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label8">
|
||||
@@ -2723,6 +3569,7 @@
|
||||
</widget>
|
||||
<widget class="GtkDialog" id="EntryDialog">
|
||||
<property name="visible">True</property>
|
||||
<property name="border_width">8</property>
|
||||
<property name="modal">True</property>
|
||||
<property name="window_position">GTK_WIN_POS_CENTER_ON_PARENT</property>
|
||||
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
|
||||
|
||||
@@ -503,11 +503,102 @@ class SpritzController(Controller):
|
||||
def on_terminal_copy_activate(self, widget):
|
||||
self.clipboard.clear()
|
||||
self.clipboard.set_text(''.join(self.output.text_written))
|
||||
def on_Preferences_toggled(self, widget, toggle = True):
|
||||
self.ui.preferencesSaveButton.set_sensitive(toggle)
|
||||
self.ui.preferencesRestoreButton.set_sensitive(toggle)
|
||||
|
||||
def on_preferencesSaveButton_clicked(self, widget):
|
||||
sure = questionDialog(self.ui.main, _("Are you sure ?"))
|
||||
if not sure:
|
||||
return
|
||||
for config_file in self.Preferences:
|
||||
for name, setting, mytype, fillfunc, savefunc, wgwrite, wgread in self.Preferences[config_file]:
|
||||
if mytype == list:
|
||||
savefunc(config_file, name, setting, mytype, wgwrite, wgread)
|
||||
else:
|
||||
data = wgread()
|
||||
result = savefunc(config_file, name, setting, mytype, data)
|
||||
if not result:
|
||||
errorMessage(
|
||||
self.ui.main,
|
||||
cleanMarkupString("%s: %s") % (_("Error saving parameter"),name,),
|
||||
_("An issue occured while saving a preference"),
|
||||
"%s %s: %s" % (_("Parameter"),name,_("not saved"),),
|
||||
)
|
||||
initConfig_entropyConstants(etpConst['systemroot'])
|
||||
self.setupPreferences()
|
||||
|
||||
def on_preferencesRestoreButton_clicked(self, widget):
|
||||
self.setupPreferences()
|
||||
|
||||
def on_configProtectNew_clicked(self, widget):
|
||||
data = inputBox( self.ui.main, _("New"), _("Please insert a new path"))
|
||||
if not data:
|
||||
return
|
||||
self.configProtectModel.append([data])
|
||||
|
||||
def on_configProtectMaskNew_clicked(self, widget):
|
||||
data = inputBox( self.ui.main, _("New"), _("Please insert a new path"))
|
||||
if not data:
|
||||
return
|
||||
self.configProtectMaskModel.append([data])
|
||||
|
||||
def on_configProtectSkipNew_clicked(self, widget):
|
||||
data = inputBox( self.ui.main, _("New"), _("Please insert a new path"))
|
||||
if not data:
|
||||
return
|
||||
self.configProtectSkipModel.append([data])
|
||||
|
||||
def on_configProtectDelete_clicked(self, widget):
|
||||
model, myiter = self.configProtectView.get_selection().get_selected()
|
||||
if myiter:
|
||||
model.remove(myiter)
|
||||
|
||||
def on_configProtectMaskDelete_clicked(self, widget):
|
||||
model, myiter = self.configProtectMaskView.get_selection().get_selected()
|
||||
if myiter:
|
||||
model.remove(myiter)
|
||||
|
||||
def on_configProtectSkipDelete_clicked(self, widget):
|
||||
model, myiter = self.configProtectSkipView.get_selection().get_selected()
|
||||
if myiter:
|
||||
model.remove(myiter)
|
||||
|
||||
def on_configProtectEdit_clicked(self, widget):
|
||||
model, myiter = self.configProtectView.get_selection().get_selected()
|
||||
if myiter:
|
||||
item = model.get_value( myiter, 0 )
|
||||
data = inputBox( self.ui.main, _("New"), _("Please edit the selected path"), input_text = item)
|
||||
if not data:
|
||||
return
|
||||
model.remove(myiter)
|
||||
self.configProtectModel.append([data])
|
||||
|
||||
def on_configProtectMaskEdit_clicked(self, widget):
|
||||
model, myiter = self.configProtectMaskView.get_selection().get_selected()
|
||||
if myiter:
|
||||
item = model.get_value( myiter, 0 )
|
||||
data = inputBox( self.ui.main, _("New"), _("Please edit the selected path"), input_text = item)
|
||||
if not data:
|
||||
return
|
||||
model.remove(myiter)
|
||||
self.configProtectMaskModel.append([data])
|
||||
|
||||
def on_configProtectSkipEdit_clicked(self, widget):
|
||||
model, myiter = self.configProtectSkipView.get_selection().get_selected()
|
||||
if myiter:
|
||||
item = model.get_value( myiter, 0 )
|
||||
data = inputBox( self.ui.main, _("New"), _("Please edit the selected path"), input_text = item)
|
||||
if not data:
|
||||
return
|
||||
model.remove(myiter)
|
||||
self.configProtectSkipModel.append([data])
|
||||
|
||||
def on_PageButton_pressed( self, widget, page ):
|
||||
pass
|
||||
|
||||
def on_PageButton_changed( self, widget, page ):
|
||||
|
||||
''' Left Side Toolbar Handler'''
|
||||
# do not put here actions for 'packages' and 'output' but use on_PageButton_pressed
|
||||
if page == "filesconf":
|
||||
@@ -917,6 +1008,7 @@ class SpritzApplication(SpritzController,SpritzGUI):
|
||||
self.logger = logging.getLogger("yumex.main")
|
||||
|
||||
# init flags
|
||||
self.Preferences = None
|
||||
self.skipMirrorNow = False
|
||||
self.abortQueueNow = False
|
||||
self.doProgress = False
|
||||
@@ -947,6 +1039,196 @@ class SpritzApplication(SpritzController,SpritzGUI):
|
||||
self.pkgProperties_selected = None
|
||||
self.setupAdvPropertiesView()
|
||||
|
||||
self.setupPreferences()
|
||||
|
||||
def setupPreferences(self):
|
||||
|
||||
# config protect
|
||||
self.configProtectView = self.ui.configProtectView
|
||||
for mycol in self.configProtectView.get_columns(): self.configProtectView.remove_column(mycol)
|
||||
self.configProtectModel = gtk.ListStore( gobject.TYPE_STRING )
|
||||
cell = gtk.CellRendererText()
|
||||
column = gtk.TreeViewColumn( _( "Item" ), cell, markup = 0 )
|
||||
self.configProtectView.append_column( column )
|
||||
self.configProtectView.set_model( self.configProtectModel )
|
||||
|
||||
# config protect mask
|
||||
self.configProtectMaskView = self.ui.configProtectMaskView
|
||||
for mycol in self.configProtectMaskView.get_columns(): self.configProtectMaskView.remove_column(mycol)
|
||||
self.configProtectMaskModel = gtk.ListStore( gobject.TYPE_STRING )
|
||||
cell = gtk.CellRendererText()
|
||||
column = gtk.TreeViewColumn( _( "Item" ), cell, markup = 0 )
|
||||
self.configProtectMaskView.append_column( column )
|
||||
self.configProtectMaskView.set_model( self.configProtectMaskModel )
|
||||
|
||||
# config protect skip
|
||||
self.configProtectSkipView = self.ui.configProtectSkipView
|
||||
for mycol in self.configProtectSkipView.get_columns(): self.configProtectSkipView.remove_column(mycol)
|
||||
self.configProtectSkipModel = gtk.ListStore( gobject.TYPE_STRING )
|
||||
cell = gtk.CellRendererText()
|
||||
column = gtk.TreeViewColumn( _( "Item" ), cell, markup = 0 )
|
||||
self.configProtectSkipView.append_column( column )
|
||||
self.configProtectSkipView.set_model( self.configProtectSkipModel )
|
||||
|
||||
# prepare generic config to allow filling of data
|
||||
def fillSettingView(model, view, data):
|
||||
model.clear()
|
||||
view.set_model(model)
|
||||
view.set_property('headers-visible',False)
|
||||
for item in data:
|
||||
model.append([item])
|
||||
view.expand_all()
|
||||
|
||||
def fillSetting(name, mytype, wgwrite, data):
|
||||
if type(data) != mytype:
|
||||
if data == None: # empty parameter
|
||||
return
|
||||
errorMessage(
|
||||
self.ui.main,
|
||||
cleanMarkupString("%s: %s") % (_("Error setting parameter"),name,),
|
||||
_("An issue occured while loading a preference"),
|
||||
"%s %s %s: %s, %s: %s" % (_("Parameter"),name,_("must be of type"),mytype,_("got"),type(data),),
|
||||
)
|
||||
return
|
||||
wgwrite(data)
|
||||
|
||||
def saveSettingView(config_file, name, setting, mytype, model, view):
|
||||
|
||||
data = []
|
||||
iterator = model.get_iter_first()
|
||||
while iterator != None:
|
||||
item = model.get_value( iterator, 0 )
|
||||
if item:
|
||||
data.append(item)
|
||||
iterator = model.iter_next( iterator )
|
||||
|
||||
return saveSetting(config_file, name, setting, mytype, data)
|
||||
|
||||
|
||||
def saveSetting(config_file, name, myvariable, mytype, data):
|
||||
# saving setting
|
||||
writedata = ''
|
||||
if (not isinstance(data,mytype)) and (data != None):
|
||||
errorMessage(
|
||||
self.ui.main,
|
||||
cleanMarkupString("%s: %s") % (_("Error setting parameter"),name,),
|
||||
_("An issue occured while saving a preference"),
|
||||
"%s %s %s: %s, %s: %s" % (_("Parameter"),name,_("must be of type"),mytype,_("got"),type(data),),
|
||||
)
|
||||
return False
|
||||
|
||||
if isinstance(data,int):
|
||||
writedata = str(data)
|
||||
elif isinstance(data,list):
|
||||
writedata = ' '.join(data)
|
||||
elif isinstance(data,bool):
|
||||
writedata = "disable"
|
||||
if data: writedata = "enable"
|
||||
return saveParameter(config_file, name, writedata)
|
||||
|
||||
def saveParameter(config_file, name, data):
|
||||
return entropyTools.writeParameterToFile(config_file,name,data)
|
||||
|
||||
self.Preferences = {
|
||||
etpConst['entropyconf']: [
|
||||
(
|
||||
'ftp-proxy',
|
||||
etpConst['proxy']['ftp'],
|
||||
basestring,
|
||||
fillSetting,
|
||||
saveSetting,
|
||||
self.ui.ftpProxyEntry.set_text,
|
||||
self.ui.ftpProxyEntry.get_text,
|
||||
),
|
||||
(
|
||||
'http-proxy',
|
||||
etpConst['proxy']['http'],
|
||||
basestring,
|
||||
fillSetting,
|
||||
saveSetting,
|
||||
self.ui.httpProxyEntry.set_text,
|
||||
self.ui.httpProxyEntry.get_text,
|
||||
),
|
||||
(
|
||||
'nice-level',
|
||||
etpConst['current_nice'],
|
||||
int,
|
||||
fillSetting,
|
||||
saveSetting,
|
||||
self.ui.niceSpinSelect.set_value,
|
||||
self.ui.niceSpinSelect.get_value_as_int,
|
||||
)
|
||||
],
|
||||
etpConst['equoconf']: [
|
||||
(
|
||||
'collisionprotect',
|
||||
etpConst['collisionprotect'],
|
||||
int,
|
||||
fillSetting,
|
||||
saveSetting,
|
||||
self.ui.collisionProtectionCombo.set_active,
|
||||
self.ui.collisionProtectionCombo.get_active,
|
||||
),
|
||||
(
|
||||
'configprotect',
|
||||
etpConst['configprotect'],
|
||||
list,
|
||||
fillSettingView,
|
||||
saveSettingView,
|
||||
self.configProtectModel,
|
||||
self.configProtectView,
|
||||
),
|
||||
(
|
||||
'configprotectmask',
|
||||
etpConst['configprotectmask'],
|
||||
list,
|
||||
fillSettingView,
|
||||
saveSettingView,
|
||||
self.configProtectMaskModel,
|
||||
self.configProtectMaskView,
|
||||
),
|
||||
(
|
||||
'configprotectskip',
|
||||
etpConst['configprotectskip'],
|
||||
list,
|
||||
fillSettingView,
|
||||
saveSettingView,
|
||||
self.configProtectSkipModel,
|
||||
self.configProtectSkipView,
|
||||
),
|
||||
(
|
||||
'filesbackup',
|
||||
etpConst['filesbackup'],
|
||||
bool,
|
||||
fillSetting,
|
||||
saveSetting,
|
||||
self.ui.filesBackupCheckbutton.set_active,
|
||||
self.ui.filesBackupCheckbutton.get_active,
|
||||
)
|
||||
],
|
||||
etpConst['repositoriesconf']: [
|
||||
(
|
||||
'downloadspeedlimit',
|
||||
etpConst['downloadspeedlimit'],
|
||||
int,
|
||||
fillSetting,
|
||||
saveSetting,
|
||||
self.ui.speedLimitSpin.set_value,
|
||||
self.ui.speedLimitSpin.get_value_as_int,
|
||||
)
|
||||
],
|
||||
}
|
||||
|
||||
# load data
|
||||
for config_file in self.Preferences:
|
||||
for name, setting, mytype, fillfunc, savefunc, wgwrite, wgread in self.Preferences[config_file]:
|
||||
if mytype == list:
|
||||
fillfunc(wgwrite,wgread,setting)
|
||||
else:
|
||||
fillfunc(name, mytype, wgwrite, setting)
|
||||
|
||||
self.on_Preferences_toggled(None,False)
|
||||
|
||||
def setupMaskedPackagesWarningBox(self):
|
||||
mytxt = "<b><big><span foreground='#FF0000'>%s</span></big></b>\n%s" % (
|
||||
_("Attention"),
|
||||
|
||||
@@ -55,6 +55,7 @@ class const:
|
||||
PAGE_QUEUE = 4
|
||||
PAGE_FILESCONF = 5
|
||||
PAGE_GLSA = 6
|
||||
PAGE_PREFERENCES = 7
|
||||
PAGES = {
|
||||
'packages' : PAGE_PKG,
|
||||
'repos' : PAGE_REPOS,
|
||||
@@ -62,7 +63,8 @@ class const:
|
||||
'queue' : PAGE_QUEUE,
|
||||
'group' : PAGE_GROUP,
|
||||
'filesconf' : PAGE_FILESCONF,
|
||||
'glsa' : PAGE_GLSA
|
||||
'glsa' : PAGE_GLSA,
|
||||
'preferences': PAGE_PREFERENCES
|
||||
}
|
||||
|
||||
PACKAGE_PROGRESS_STEPS = ( 0.1, # Depsolve
|
||||
|
||||
Reference in New Issue
Block a user