From c5f2adb8587f41c87ebe076275392662ffba081f Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Mon, 9 Jan 2006 21:40:23 +0000 Subject: [PATCH] * relation.svg: Relationship view icon * media.svg: Relationship view icon * src/ViewManager.py: no background color for sidebar * src/gramps_main.py: new icons svn: r5703 --- gramps2/ChangeLog | 6 + gramps2/src/ViewManager.py | 12 - gramps2/src/gramps_main.py | 4 +- gramps2/src/media.svg | 318 ++++++++++++++++++++++ gramps2/src/relation.svg | 537 +++++++++++++++++++++++++++++++++++++ 5 files changed, 863 insertions(+), 14 deletions(-) create mode 100644 gramps2/src/media.svg create mode 100644 gramps2/src/relation.svg diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index f602aea9d..2a666332e 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,9 @@ +2006-01-09 Don Allingham + * relation.svg: Relationship view icon + * media.svg: Relationship view icon + * src/ViewManager.py: no background color for sidebar + * src/gramps_main.py: new icons + 2006-01-09 Richard Taylor * src/ChooseParents.py: replaced DisplayTrace with new logger * src/DbPrompter.py: replaced DisplayTrace with new logger diff --git a/gramps2/src/ViewManager.py b/gramps2/src/ViewManager.py index aa1b745ef..761776118 100644 --- a/gramps2/src/ViewManager.py +++ b/gramps2/src/ViewManager.py @@ -278,16 +278,6 @@ class ViewManager: GrampsKeys.sync() gtk.main_quit() - def set_color(self,obj): - style = obj.get_style().copy() - new_color = style.bg[gtk.STATE_ACTIVE] - style.bg[gtk.STATE_NORMAL] = new_color - style.bg[gtk.STATE_PRELIGHT] = new_color - style.bg[gtk.STATE_ACTIVE] = new_color - style.bg[gtk.STATE_INSENSITIVE] = new_color - style.bg[gtk.STATE_SELECTED] = new_color - obj.set_style(style) - def build_ui_manager(self): self.merge_ids = [] self.uimanager = gtk.UIManager() @@ -435,7 +425,6 @@ class ViewManager: self.prev_nav = PageView.NAVIGATION_NONE index = 0 - self.set_color(self.ebox) for page_def in self.views: page = page_def(self.state,self.uistate) @@ -461,7 +450,6 @@ class ViewManager: button.set_alignment(0,0.5) button.connect('clicked', lambda x,y : self.notebook.set_current_page(y), index) - self.set_color(button) button.show() index += 1 self.bbox.pack_start(button,False) diff --git a/gramps2/src/gramps_main.py b/gramps2/src/gramps_main.py index ec53398ce..dbd221feb 100755 --- a/gramps2/src/gramps_main.py +++ b/gramps2/src/gramps_main.py @@ -66,9 +66,9 @@ def register_stock_icons (): import os items = [ ('person.svg',('gramps-person','Person',gtk.gdk.CONTROL_MASK,0,'')), - ('family48.png',('gramps-family','Relationships',gtk.gdk.CONTROL_MASK,0,'')), + ('relation.svg',('gramps-family','Relationships',gtk.gdk.CONTROL_MASK,0,'')), ('family48.png',('gramps-family-list','Family List',gtk.gdk.CONTROL_MASK,0,'')), - ('media.png',('gramps-media','Media',gtk.gdk.CONTROL_MASK,0,'')), + ('media.svg',('gramps-media','Media',gtk.gdk.CONTROL_MASK,0,'')), ('ped24.png',('gramps-pedigree','Pedigree',gtk.gdk.CONTROL_MASK,0,'')), ('repos.png',('gramps-repository','Repositories', gtk.gdk.CONTROL_MASK,0,'')), diff --git a/gramps2/src/media.svg b/gramps2/src/media.svg new file mode 100644 index 000000000..30196ba65 --- /dev/null +++ b/gramps2/src/media.svg @@ -0,0 +1,318 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + Jakub Steiner + + + http://jimmac.musichall.cz + + Multimedia Category + + + video + audio + multimedia + applications + category + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gramps2/src/relation.svg b/gramps2/src/relation.svg new file mode 100644 index 000000000..e0d05a105 --- /dev/null +++ b/gramps2/src/relation.svg @@ -0,0 +1,537 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + People + + + Jakub Steiner + + + http://jimmac.musichall.cz + + + users + people + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +