Application.activate not emitted when opening files.

2016-06-15 Thread Victor Aurélio Santos
A Application with flags = GLib.ApplicationFlags.HANDLES_OPEN when
launched without any files it does the normal start, and `activate`
signal is emitted, but when opening files the `activate` signal didn't
gets emitted ? even when it's the first instance of application.

Is this the default behavior ? or am i doing something wrong?
If it's the default behavior, how and where should i do application's
basic things like creating windows, setting-up basic things etc...

-- 
Victor Aurélio Santos
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Developing a new text editor widget?

2016-06-15 Thread Sébastien Wilmet
On Wed, Jun 15, 2016 at 08:13:54AM -0400, Simon McVittie wrote:
> Monospace environments like terminals traditionally display æ, œ, … as
> a single character-cell: it isn't typographically correct, but neither
> is having m the same width as i, and we tolerate that in monospace.
> 
> The one use I'm aware of for characters that occupy more than one cell
> in monospace is that CJK writing systems have the concept of "fullwidth"
> character forms. which take up 2 adjacent cells.
> 
> 
> For instance, if you read this mail in monospace, these lines should
> line up exactly, even though in a proportional font they'd be very
> different lengths:
> 
> |Fullwidth|
> |halfwidthhalfwidth|
> |朅—∴mw朅—∴mw朅—|
> |ll|
> 
> (It works as described in gnome-terminal, xterm and gvim, but not in
> gedit, where the full-width letters are about 1.5 character cells.)

Ok, thanks for the information.

--
Sébastien
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list


Re: Developing a new text editor widget?

2016-06-15 Thread Simon McVittie
On Sat, 11 Jun 2016 at 11:47:25 +0200, Sébastien Wilmet wrote:
> On Sun, Jun 05, 2016 at 12:33:20PM -0700, Christian Hergert wrote:
> > Are there situations where the character is larger than a single cell?
> 
> Yes I think.
> 
> In French there is æ and œ, those should ideally be displayed as 1.5x
> the size of a char. Or there is also "…". But those are still entirely
> readable in monospace. But I think in other languages, there are
> characters that should take 2x the size of a cell.

Monospace environments like terminals traditionally display æ, œ, … as
a single character-cell: it isn't typographically correct, but neither
is having m the same width as i, and we tolerate that in monospace.

The one use I'm aware of for characters that occupy more than one cell
in monospace is that CJK writing systems have the concept of "fullwidth"
character forms. which take up 2 adjacent cells.


For instance, if you read this mail in monospace, these lines should
line up exactly, even though in a proportional font they'd be very
different lengths:

|Fullwidth|
|halfwidthhalfwidth|
|朅—∴mw朅—∴mw朅—|
|ll|

(It works as described in gnome-terminal, xterm and gvim, but not in
gedit, where the full-width letters are about 1.5 character cells.)

S
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list