gnome-specimen r157 - in branches/import-from-bzr: . specimen
- From: wbolster svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-specimen r157 - in branches/import-from-bzr: . specimen
- Date: Tue, 17 Jun 2008 18:54:44 +0000 (UTC)
Author: wbolster
Date: Tue Jun 17 18:54:44 2008
New Revision: 157
URL: http://svn.gnome.org/viewvc/gnome-specimen?rev=157&view=rev
Log:
* specimen/specimenwindow.py:
- Do not import gtk.keysyms explicitly.
Modified:
branches/import-from-bzr/ (props changed)
branches/import-from-bzr/specimen/specimenwindow.py
Modified: branches/import-from-bzr/specimen/specimenwindow.py
==============================================================================
--- branches/import-from-bzr/specimen/specimenwindow.py (original)
+++ branches/import-from-bzr/specimen/specimenwindow.py Tue Jun 17 18:54:44 2008
@@ -252,6 +252,7 @@
# regular string comparison.
return cmp(name1, name2)
+
# previews
def initialize_previews_pane(self, glade_tree):
@@ -284,7 +285,6 @@
self.previews_treeview.connect('scroll-event', self.on_previews_treeview_scroll_event)
-
def cell_data_cb(self, column, cell, model, treeiter, data=None):
if model.get_path(treeiter)[0] % 2 == 0:
# this is a name row
@@ -361,7 +361,6 @@
family, face = model.get(treeiter, 1, 2)
self.add_preview(family, face)
-
def add_preview(self, family, face):
'Adds a preview to the list of previews'
# The face parameter can be None if a top-level row was selected. Don't
@@ -468,11 +467,10 @@
return False
def on_previews_treeview_key_release_event(self, treeview, event, data=None):
- import gtk.keysyms as syms
keyval = event.keyval
# Delete removes the row
- if keyval == syms.Delete:
+ if keyval == gtk.keysyms.Delete:
self.delete_selected();
return True
@@ -496,6 +494,7 @@
# Propagate further in all other cases
return False
+
# preview colors
def set_colors(self, fgcolor, bgcolor):
@@ -591,6 +590,7 @@
self.update_previews()
+
# buttons
def on_add_button_clicked(self, widget, data=None):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]