225 Commits

Author SHA1 Message Date
Doug Blank
f7a367e602 Fixed Gtk3 buffer.get_text issue 2013-12-26 16:16:07 -05:00
Nick Hall
a6e4bf9cc5 7333: Reduce number of columns in LDS temple selector 2013-12-26 17:31:02 +00:00
Nick Hall
dd56299936 Enhance event type selector to use sub-menus 2013-12-22 19:58:25 +00:00
Nick Hall
13438a74d6 Add gui.widgets section to the documentation 2013-11-15 19:13:29 +00:00
Nick Hall
5e1cd88bcb Improve gui documentation 2013-11-14 18:11:06 +00:00
Doug Blank
bd501a8357 Protect from no shown image yet
svn: r23467
2013-11-08 09:21:07 -08:00
Doug Blank
9670f8ff1c Don't show try to make thumbnail if not a pixbuf yet
svn: r23459
2013-11-07 11:27:23 -08:00
Doug Blank
3f36cc9cdc Allow drag and drop on image
svn: r23450
2013-11-07 11:25:44 -08:00
Nick Hall
046f89a2a7 Update selection widget with latest version
svn: r23426
2013-10-27 12:59:41 +00:00
Nick Hall
767430f93f Modify media reference editor to use new selection widget
svn: r23421
2013-10-26 17:56:39 +00:00
Doug Blank
c6585a8fac Add right-click 'Make Active Media' to Photo class
svn: r23276
2013-10-08 11:32:33 +00:00
Nick Hall
66fc6893ea Fix bug listing gramplets already in gramplet bar
svn: r23041
2013-09-05 22:47:02 +00:00
Nick Hall
2aaca6aac7 6874: Use shorter names in add gramplet list. Remove old attributes gramplet.
svn: r22959
2013-08-30 18:09:48 +00:00
Nick Hall
72c2cff790 Add date validation to filters
svn: r22905
2013-08-22 17:13:55 +00:00
Vassilii Khachaturov
29c7564ea4 6871: workaround gtk RTL bug in MultiTreeView
optimizing cleanup - reapply from gramps40

svn: r22891
2013-08-21 07:33:26 +00:00
Vassilii Khachaturov
02d8a8d915 6871: workaround gtk RTL bug in MultiTreeView
Reapply from gramps40 - blend of Nick's and my fix for the bug.

svn: r22888
2013-08-20 21:55:17 +00:00
Nick Hall
c56996b635 Simplify status bar and fix justification of filter status
svn: r22872
2013-08-15 22:08:23 +00:00
Nick Hall
435f5106de 6969: Connect to switch-page signal after the initial gramplets have been added
svn: r22801
2013-08-05 18:35:39 +00:00
Paul Franklin
5d4ba11075 show more LDS temples on the screen
svn: r22736
2013-07-24 19:12:14 +00:00
Benny Malengier
1f88a54415 GTK3 wants to deprecate unicode menu
svn: r22634
2013-07-01 08:42:06 +00:00
Benny Malengier
2c879c794c 6807: validatedmaskedentry: no attribute '_block_changed'
svn: r22630
2013-06-30 15:52:04 +00:00
Benny Malengier
36deb5ef40 GTK3: make sure menu shows up
svn: r22628
2013-06-30 13:38:38 +00:00
Benny Malengier
5066561558 GTK 3.9 removes unicode-menu
svn: r22627
2013-06-30 07:56:56 +00:00
Vassilii Khachaturov
8af57bcf07 4571: RTL support in fanchart: cleanup older code
Use math.degrees() / math.radians() where able

Follow-up to CR by Benny:
    Removed redundant forced conversion to float, the
    	from future import division
    handles that already. See PEP-238 for details.

draw_text:
Remove manual layout wrapping, use pango Layout logic.
Refactored wrap_truncate_layout from draw_arc_text,
and it's now reused in draw_text, here with CHAR
wrapping mode as opposed to WORD in draw_arc_text.
This replaces the (Unicode-wrong) implementation of
manual char-by-char code with text truncation.

svn: r22569
2013-06-23 11:12:13 +00:00
Nick Hall
d30ade0488 6814: Fix gramplet positioning when using RTL locale
svn: r22557
2013-06-22 21:01:04 +00:00
Vassilii Khachaturov
d03fc19188 Fix minor ugliness due to precision loss.
Change an integer division into a floating one,
now the rendered text looks better.

svn: r22553
2013-06-22 15:23:06 +00:00
Vassilii Khachaturov
face94275c 4571: RTL support in fan chart
gramps/gui/utilscairo.py:
new file, currently holds just the warpPath() function,
taken from /usr/share/doc/python-cairo/examples/warpedtext.py,
with explanatory docs added.

gramps/gui/widgets/fanchart.py, class FanChartBaseWidget:
draw_text() method:
previous logic using cairo toy text API didn't support CTL text.
It has been removed, and replaced with a call to a new
method, draw_arc_text().

Flagged a subtle Unicode issue in the remaining old code,
for radial-oriented text, with a FIXME, I'll probably fix it
later as a separate issue.

create_map_rect_to_sector() static method:
create a transform to use with gui.utilscairo.warpPath(),
currently used in draw_arc_text().

Following Benny's code review I have annotated the algorithm
and made it hopefully clear, but I guess it could be reworked
into a better form if re-expressed with stacked transforms /
complex numbers / matrices for easier later maintenance.
Meanwhile I have used the same approach as the older code
in the file, good enough for a patch under this feature request.

The only issue remaining from the code review is whether
the create_map_rect_to_sector() function should be moved
to gui.utilscairo; see the bug thread.

svn: r22548
2013-06-21 14:13:40 +00:00
Benny Malengier
8b37ca4119 GTK3: convert deprecated code for the indicator in entryfield
svn: r22518
2013-06-19 06:56:06 +00:00
Paul Franklin
dc128110bc typos
svn: r22021
2013-04-19 16:58:24 +00:00
John Ralls
00aa00fbf5 GrampsLocale: Remove get_translation()
Only one base translation per locale. To set up a different locale
on any axis (locale, domain, directory, or languages) instantiate a
secondary locale by calling GrampsLocale() with the appropriate
arguments.

svn: r21968
2013-04-12 22:32:11 +00:00
Benny Malengier
dee6a9b829 6402: Error in ValidatedMaskedEntry widget
svn: r21768
2013-03-27 18:05:45 +00:00
Nick Hall
b4b9300f6d Fix literals. Use logging for warnings.
svn: r21739
2013-03-25 13:35:08 +00:00
Paul Franklin
8ed298daa0 another open=>io.open change, as John advised
svn: r21720
2013-03-23 15:25:53 +00:00
Jérôme Rapinat
9be852fe2c 4687: missing content migration...
svn: r21711
2013-03-20 14:06:59 +00:00
Jérôme Rapinat
f97c241af6 4687: global name 'warn' is not defined
svn: r21706
2013-03-20 13:55:18 +00:00
Nick Hall
68158b3859 6526: Check for invalid handle
svn: r21653
2013-03-15 16:17:58 +00:00
Paul Franklin
55e2863a0b sync a few files in gramps40 and trunk
svn: r21603
2013-03-10 21:51:52 +00:00
John Ralls
b87c663612 grampletpane: Fix typo, naked except.
Warn with the reason when Dashboard file can't be opened or parsed.

svn: r21492
2013-02-28 19:10:33 +00:00
John Ralls
cdf619cf62 grampletpane: Replace diagnostic prints with log warnings.
And improve warning when unable to save the Dashboard layout.

svn: r21449
2013-02-26 00:16:19 +00:00
John Ralls
624314e8bc grampletpane: Use __future__.unicode_literals instead of cuni()
And get rid of the silly NL = "\n"

svn: r21448
2013-02-26 00:16:07 +00:00
John Ralls
af0f98d3b7 Fix missed cuni() in save.
svn: r21435
2013-02-24 16:46:16 +00:00
John Ralls
4decf95b07 [r21424]Fix Py2 file encoding errors
svn: r21425
2013-02-24 02:20:09 +00:00
Paul Franklin
80e27a63c0 6379: Can not get ancestry or relationship tabs to work
svn: r21337
2013-02-10 21:11:57 +00:00
John Ralls
fd61b21a2d GrampsLocale: Replace locale.strcoll, locale.strxfrm, and conv*_tosrtkey
With GrampsLocale.sort_key (for strxfrm and conv*_tosrtkey) and
GrampsLocale.strcoll.

If ICU is available will use the correct ICU::Collator for the locale,
otherwise falls back to locale.strxfrm -- for which it temporarily
changes the LC_COLLATE locale.

svn: r21275
2013-02-01 22:49:14 +00:00
Jérôme Rapinat
ee96c874ba 6367: Update the Side/Bottombar text (patch by Patsyblefebre)
svn: r21260
2013-01-31 08:29:39 +00:00
Jérôme Rapinat
febd8842fd behavior has changed on gramplet bars, message needs an update too
svn: r21231
2013-01-27 16:52:09 +00:00
Nick Hall
ddff6f95d9 6353: Fix error when setting colours
svn: r21163
2013-01-18 18:24:13 +00:00
John Ralls
ef6892abbd GrampsLocale: Remove ggettext
svn: r21144
2013-01-17 19:46:55 +00:00
Nick Hall
7bb5c75d6a 6333: Display optional close button in gramplet bar tabs
svn: r21140
2013-01-16 23:59:48 +00:00
Nick Hall
ae65778d27 6331: Fix spelling mistakes
svn: r21137
2013-01-15 21:04:57 +00:00