mirror of
https://github.com/nikdoof/mythview.git
synced 2025-12-13 10:32:17 +00:00
Icon sizes centralised (ready for preferences), layout slightly changed
This commit is contained in:
@@ -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.3 on Sun Apr 27 00:43:06 2008 -->
|
||||
<!--Generated with glade3 3.4.3 on Sun Apr 27 01:14:23 2008 -->
|
||||
<glade-interface>
|
||||
<widget class="GtkWindow" id="MainWindow">
|
||||
<property name="title" translatable="yes">Myth View</property>
|
||||
@@ -13,8 +13,11 @@
|
||||
<child>
|
||||
<widget class="GtkToolbar" id="MainToolbar">
|
||||
<property name="visible">True</property>
|
||||
<property name="toolbar_style">GTK_TOOLBAR_BOTH_HORIZ</property>
|
||||
<property name="icon_size">GTK_ICON_SIZE_SMALL_TOOLBAR</property>
|
||||
<child>
|
||||
<widget class="GtkToolButton" id="btnConnect">
|
||||
<property name="tooltip_text">Connect</property>
|
||||
<property name="label" translatable="yes">Connect</property>
|
||||
<property name="stock_id">gtk-connect</property>
|
||||
</widget>
|
||||
@@ -25,6 +28,7 @@
|
||||
<child>
|
||||
<widget class="GtkToolButton" id="btnRefresh">
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip_text">Refresh</property>
|
||||
<property name="label" translatable="yes">Refresh</property>
|
||||
<property name="stock_id">gtk-refresh</property>
|
||||
<signal name="clicked" handler="on_btnRefresh_clicked"/>
|
||||
@@ -48,6 +52,8 @@
|
||||
<widget class="GtkTreeView" id="ChannelView">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="reorderable">True</property>
|
||||
<property name="enable_grid_lines">GTK_TREE_VIEW_GRID_LINES_HORIZONTAL</property>
|
||||
<property name="enable_tree_lines">True</property>
|
||||
</widget>
|
||||
</child>
|
||||
|
||||
@@ -25,6 +25,7 @@ class MythViewUI:
|
||||
self.wTree = gtk.glade.XML(self.gladefile)
|
||||
|
||||
self.mythtv = MythTV()
|
||||
self.icon_size = 32
|
||||
|
||||
#Get the Main Window, and connect the "destroy" event
|
||||
self.window = self.wTree.get_widget("MainWindow")
|
||||
@@ -46,7 +47,7 @@ class MythViewUI:
|
||||
self.channelTree.append_column(column)
|
||||
|
||||
self.channelTree = self.wTree.get_widget("ChannelView")
|
||||
addTreeColumn("Channel ID", gtk.CellRendererText(), False,64)
|
||||
addTreeColumn("Channel ID", gtk.CellRendererText(), False,self.icon_size)
|
||||
addTreeColumn("Channel #", gtk.CellRendererText(), True, 0)
|
||||
addTreeColumn("Icon", gtk.CellRendererPixbuf(), True, 0)
|
||||
addTreeColumn("Name", gtk.CellRendererText(), True, 0)
|
||||
@@ -67,7 +68,7 @@ class MythViewUI:
|
||||
for row in rows:
|
||||
|
||||
if row[1]:
|
||||
icon = MythIcon(self.mythtv, row[0], 64, 64).pixbuf
|
||||
icon = MythIcon(self.mythtv, row[0], self.icon_size, self.icon_size).pixbuf
|
||||
else:
|
||||
icon = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user