gget r68 - in trunk: data gget
- From: johans svn gnome org
- To: svn-commits-list gnome org
- Subject: gget r68 - in trunk: data gget
- Date: Mon, 11 Aug 2008 12:33:05 +0000 (UTC)
Author: johans
Date: Mon Aug 11 12:33:05 2008
New Revision: 68
URL: http://svn.gnome.org/viewvc/gget?rev=68&view=rev
Log:
Remove statusbar until when/if we find proper use for it.
Modified:
trunk/data/gget.glade
trunk/gget/MainWindow.py
Modified: trunk/data/gget.glade
==============================================================================
--- trunk/data/gget.glade (original)
+++ trunk/data/gget.glade Mon Aug 11 12:33:05 2008
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
-<!--Generated with glade3 3.4.5 on Mon Aug 11 13:01:58 2008 -->
+<!--Generated with glade3 3.4.5 on Mon Aug 11 14:31:24 2008 -->
<glade-interface>
<widget class="GtkWindow" id="main_window">
<property name="title" translatable="yes">GGet</property>
@@ -112,7 +112,6 @@
</child>
<child>
<widget class="GtkCheckMenuItem" id="show_statusbar_menu_item">
- <property name="visible">True</property>
<property name="label" translatable="yes">Statusbar</property>
<property name="use_underline">True</property>
<property name="active">True</property>
@@ -304,16 +303,6 @@
<property name="position">2</property>
</packing>
</child>
- <child>
- <widget class="GtkStatusbar" id="statusbar">
- <property name="visible">True</property>
- <property name="spacing">2</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="position">3</property>
- </packing>
- </child>
</widget>
</child>
</widget>
@@ -698,8 +687,8 @@
<widget class="GtkFileChooserButton" id="default_folder_filechooserbutton">
<property name="visible">True</property>
<property name="sensitive">False</property>
- <property name="action">GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER</property>
<property name="local_only">False</property>
+ <property name="action">GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER</property>
<property name="title" translatable="yes">Select download folder</property>
</widget>
</child>
Modified: trunk/gget/MainWindow.py
==============================================================================
--- trunk/gget/MainWindow.py (original)
+++ trunk/gget/MainWindow.py Mon Aug 11 12:33:05 2008
@@ -71,7 +71,7 @@
self.config.window_position_y)
self.show_toolbar_menu_item.set_active(self.config.show_toolbar)
- self.show_statusbar_menu_item.set_active(self.config.show_statusbar)
+ # self.show_statusbar_menu_item.set_active(self.config.show_statusbar)
self.toolbar.props.visible = self.config.show_toolbar
self.__set_toolbar_style(self.config.toolbar_style)
@@ -90,7 +90,7 @@
self.speed_treeview_column.props.visible = self.config.show_speed
self.eta_treeview_column.props.visible = self.config.show_eta
- self.statusbar.props.visible = self.config.show_statusbar
+ # self.statusbar.props.visible = self.config.show_statusbar
def __get_widgets(self):
"""Get widgets from the glade file."""
@@ -109,7 +109,7 @@
# Show menu
self.show_toolbar_menu_item = xml.get_widget("show_toolbar_menu_item")
- self.show_statusbar_menu_item = xml.get_widget("show_statusbar_menu_item")
+ # self.show_statusbar_menu_item = xml.get_widget("show_statusbar_menu_item")
self.show_status_menu_item = xml.get_widget("show_status_menu_item")
self.show_current_size_menu_item = xml.get_widget("show_current_size_menu_item")
self.show_total_size_menu_item = xml.get_widget("show_total_size_menu_item")
@@ -133,7 +133,7 @@
self.downloads_treeview = xml.get_widget("downloads_treeview")
- self.statusbar = xml.get_widget("statusbar")
+ # self.statusbar = xml.get_widget("statusbar")
def __make_downloads_treeview(self):
"""Constructs the treeview containing downloads."""
@@ -318,8 +318,8 @@
# Show menu
self.show_toolbar_menu_item.connect("toggled",
self.__show_toolbar_menu_item_toggled)
- self.show_statusbar_menu_item.connect("toggled",
- self.__show_statusbar_menu_item_toggled)
+ # self.show_statusbar_menu_item.connect("toggled",
+ # self.__show_statusbar_menu_item_toggled)
self.show_status_menu_item.connect("toggled",
self.__show_status_menu_item_toggled)
@@ -427,9 +427,9 @@
"""Show/Hide toolbar"""
self.config.show_toolbar = menu_item.get_active()
- def __show_statusbar_menu_item_toggled(self, menu_item):
- """Show/Hide statusbar"""
- self.config.show_statusbar = menu_item.get_active()
+ # def __show_statusbar_menu_item_toggled(self, menu_item):
+ # """Show/Hide statusbar"""
+ # self.config.show_statusbar = menu_item.get_active()
def __show_status_menu_item_toggled(self, menu_item):
"""Show/Hide Status column"""
@@ -702,8 +702,8 @@
self.__show_speed_key_changed)
self.config.add_notify(Configuration.KEY_SHOW_ETA,
self.__show_eta_key_changed)
- self.config.add_notify(Configuration.KEY_SHOW_STATUSBAR,
- self.__show_statusbar_key_changed)
+ # self.config.add_notify(Configuration.KEY_SHOW_STATUSBAR,
+ # self.__show_statusbar_key_changed)
def __show_toolbar_key_changed(self, client, cnxn_id, entry, data):
"""Called when the gconf key for toolbar visibility is changed"""
@@ -734,14 +734,14 @@
elif toolbar_style == "text":
self.toolbar.set_style(gtk.TOOLBAR_TEXT)
- def __show_statusbar_key_changed(self, client, cnxn_id, entry, data):
- """Called when the gconf key for statusbar visibility is changed"""
- if not entry.value:
- self.statusbar.props.visible = True
- elif entry.value.type == gconf.VALUE_BOOL:
- self.statusbar.props.visible = entry.value.get_bool()
- else:
- self.statusbar.props.visible = True
+ # def __show_statusbar_key_changed(self, client, cnxn_id, entry, data):
+ # """Called when the gconf key for statusbar visibility is changed"""
+ # if not entry.value:
+ # self.statusbar.props.visible = True
+ # elif entry.value.type == gconf.VALUE_BOOL:
+ # self.statusbar.props.visible = entry.value.get_bool()
+ # else:
+ # self.statusbar.props.visible = True
def __show_status_key_changed(self, client, cnxn_id, entry, data):
"""Called when the gconf key for status visibility is changed"""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]