gnome-specimen r18 - branches/import-from-bzr
- From: wbolster svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-specimen r18 - branches/import-from-bzr
- Date: Tue, 17 Jun 2008 18:52:08 +0000 (UTC)
Author: wbolster
Date: Tue Jun 17 18:52:08 2008
New Revision: 18
URL: http://svn.gnome.org/viewvc/gnome-specimen?rev=18&view=rev
Log:
* specimenwindow.py:
- Clear button works
- Add button works
Modified:
branches/import-from-bzr/ (props changed)
branches/import-from-bzr/specimenwindow.py
Modified: branches/import-from-bzr/specimenwindow.py
==============================================================================
--- branches/import-from-bzr/specimenwindow.py (original)
+++ branches/import-from-bzr/specimenwindow.py Tue Jun 17 18:52:08 2008
@@ -278,7 +278,6 @@
model = treeview.get_model()
iter = model.get_iter(path)
(family, face) = model.get(iter, 1, 2)
-
self.add_preview(family, face)
def on_preview_size_changed(self, widget, user_data=None):
@@ -293,15 +292,19 @@
def on_add_button_clicked(self, widget, data=None):
print 'add'
- pass
+ (model, iter) = self.fonts_treeview.get_selection().get_selected()
+
+ if iter is not None:
+ print model, iter
+ (family, face) = model.get(iter, 1, 2)
+ self.add_preview(family, face)
def on_remove_button_clicked(self, widget, data=None):
print 'remove'
pass
def on_clear_button_clicked(self, widget, data=None):
- print 'clear'
- pass
+ self.previews_store.clear()
def on_about_clicked(self, widget, data=None):
'Callback for the Help->About menu item'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]