From 14d6cc70d0a47fa29c8e3076bdda90cc6d137a83 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Mon, 12 Nov 2007 15:44:15 +0000 Subject: [PATCH] 2007-11-12 Benny Malengier * src/images/gramps-import.png : import image * src/gramps_main.py: register import image * src/DbLoader.py: Use import not open in import dialog, issue #396 svn: r9336 --- ChangeLog | 5 +++++ src/DbLoader.py | 4 ++-- src/gramps_main.py | 1 + src/images/gramps-import.png | Bin 0 -> 1495 bytes 4 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 src/images/gramps-import.png diff --git a/ChangeLog b/ChangeLog index e3825d858..23321eda8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-11-12 Benny Malengier + * src/images/gramps-import.png : import image + * src/gramps_main.py: register import image + * src/DbLoader.py: Use import not open in import dialog, issue #396 + 2007-11-11 Jim Sack * src/GrampsDbUtils/_WriteGedcom.py: fix #1364 s/SGLS/SLGS/ Fixes 3.0 trunk. same issue exists in 2.2.x to be fixed next diff --git a/src/DbLoader.py b/src/DbLoader.py index ea54e48a7..68d63f96e 100644 --- a/src/DbLoader.py +++ b/src/DbLoader.py @@ -221,13 +221,13 @@ class DbLoader: self.uistate.window) if not warn_dialog.run(): return False - + choose = gtk.FileChooserDialog( _('GRAMPS: Import database'), self.uistate.window, gtk.FILE_CHOOSER_ACTION_OPEN, (gtk.STOCK_CANCEL,gtk.RESPONSE_CANCEL, - gtk.STOCK_OPEN,gtk.RESPONSE_OK)) + 'gramps-import',gtk.RESPONSE_OK)) choose.set_local_only(False) # Always add automatic (macth all files) filter diff --git a/src/gramps_main.py b/src/gramps_main.py index 7e925172e..25b34ac1f 100644 --- a/src/gramps_main.py +++ b/src/gramps_main.py @@ -134,6 +134,7 @@ def register_stock_icons (): # they should be ported in the near future items_legacy = [ ('gramps-export', _('Export'), gtk.gdk.CONTROL_MASK, 0, ''), + ('gramps-import', _('Import'), gtk.gdk.CONTROL_MASK, 0, ''), ('gramps-undo-history', _('Undo History'), gtk.gdk.CONTROL_MASK, 0, ''), ('gramps-url', _('URL'), gtk.gdk.CONTROL_MASK, 0, ''), ] diff --git a/src/images/gramps-import.png b/src/images/gramps-import.png new file mode 100644 index 0000000000000000000000000000000000000000..63d04f9a6bc8ce79e6357dfe327d4b0e8326703f GIT binary patch literal 1495 zcmV;|1t|K7P)@mD5TVBo1~w_apJ@zHeRpe zwbysOANOPLo#DZWvC{@&aiq~1jpqFSXEbyEXJBR45BwH*A5hmvG!pn0|EKjvB9Y$= zy!whN&J>h!>1CCB>wD_*(FfJD-|13-O2os*67f)1CKC++;(DO|KY(xT?(RNxVfgHh zmcSW&wG$|B8h<#1=a^)D!}Q$Jz^2an>Y-d9?bo$qjasN)vTX(6y9uaRGJopyyMt>- zPydYG`=47}{QfsudE|jR>0IB(t#bpk!~=lZqN6p+2G^#9383AG{Du4XJbvq@&GN4M z`oGfI91H=w|30vvExVrkaCJ7ZwL6>me0Mhax#wRkK7Q^(j)s;sv?TpVG(tf=BQ+IP z!tY;uEy)`RgkxF1dis|KDH(G|vYWO)+LcYVJ^bxMbaf;j1q^}8E969~DfFk8j#L%{ zEjNf#A}*Bj3*q`^lW2hO-H`oHTeDpxn$o1#e3qHf4-O;F*e{6jE>C$d<4+d9!rG7)RqzmA+-H{kL(2?nrcP!Z(;hv>EnsEb@v+i^Fu-x zwboPv?~IP(E55kw=-HIb;b)SZxt!pS?^={fwUpmOYX8apYrpI0Ub8GH5^thqT`yJB zJJHl}`)yLXy6d`${$1N}oAxc+8w+b(ETnnmjE7;EcPS-&N?p5yyLUXaRtT~8zTMya z#B++on`qy-701<2Hh1*gfl^}Xs?qkPd$%kjIX;}=(3^FN#rbUr%2Fvq_gq^8(0#sV zHhiY{riBnqwG!*N4ae0^rdQpuK?>KdR?PODUtSgi*DoCW1W{pZgz=BxBBbWpT_LMFdN`Q~O(~#cSa%E5yhP48 zo@3gZ%c=EkHJJEC<>3KM&ja{kn#S^F5nN2-8T(_RLWYt=# zIa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