-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1,SHA512
Weitian Leung wrote:
I used to simply call gtk_widget_shape_combine_mask and
gdk_window_set_back_pixmap to create the irregularly-shaped window
with the png image with gtk+2.0.
I happened to know one working code snippet existed in
an
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1,SHA512
jwm wrote:
As far as I managed to work out, you must use cairo now which
means the user must have desktop compositing enabled.
Ah, and the good news, the code in gcin do work on all window managers,
even on those has no compositing
In at least gstdio.c, possibly other places (I am still looking) there is a
lot of code to use the wide versions of various functions like stat,
because it is assumed that the input argument is UTF-8 and the CRT doesn't
support UTF-8 directly but rather Microsoft's own multibyte character set
On Mon, 26 Sep 2011 08:59:29 +0200, Kean Johnston wrote:
So, for stat, we have to do a double conversion: first from the input UTF-8
to UTF-16, and then from UTF-16 to MBCS so that we can call stat instead of
wstat so that users don't get any nasty surprises when using g_stat() on a
Won't that fail on filenames that have characters outside of the active
codepage instead?
Sure but that will actually fail rather than silently succeeding with an
incorrect value.
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
2011/9/26 Jernej Simončič jernej|s-gm...@eternallybored.org:
Won't that fail on filenames that have characters outside of the active
codepage instead?
You can use g_win32_locale_filename_from_utf8() to obtain a short
filename (8.3) that will refer to the filename with unrepresentable
2011/9/26 Kean Johnston kean.johns...@gmail.com:
Despire the
coolness of Windows supporting time fields 64-bits wide for the least amount
of pain it would probably be best if the time fields were left at 32-bits
(although it would be really cool and forward thinking if we used 64-bits),
FWIW
On Mon, 26 Sep 2011 14:59:43 +0200, Kean Johnston wrote:
Won't that fail on filenames that have characters outside of the active
codepage instead?
Sure but that will actually fail rather than silently succeeding with an
incorrect value.
But which is more likely to happen - user having a
2011/9/26 Jernej Simončič jernej|s-gm...@eternallybored.org:
But which is more likely to happen - user having a filename with foreign
characters, or user having a symlink (which on Windows can only be created
by administrators)...
Based on the bugs reported against Inkscape that were caused by
I'm developing a simple wrapper library, with the objects defined using
gob2 and I want to export gi bindings for it. At first I didn't bother
making the object methods virtual but they didn't get exported into the
.gir file. When I made them virtual they did get exported. However, I
would also
But which is more likely to happen - user having a filename with foreign
characters, or user having a symlink (which on Windows can only be created
by administrators)...
You asked the question slightly incorrectly: which is more likely to
happen: a user have a file on their filesystem that
On lun, 2011-09-26 at 13:59 +0100, Tony Houghton wrote:
For example, I would like to export this function:
class Gsqlite:Database
from G:Object
{
// ...
From man g-ir-scanner:
The suffix determines whether a file be treated as a source file (.c)
or a header file (.h).
On Mon, 26 Sep 2011 15:25:06 +0200, Kean Johnston wrote:
You asked the question slightly incorrectly: which is more likely to
happen: a user have a file on their filesystem that their system codepage
cannot support or having a symlink. I'd say the latter is more frequent
because every
MBCS isn't able to represent all the characters (though depending on the
codepage, it does cover a fair amount), but that's not really relevant -
how do you represent тест in CP-1250?
Give that to me as a sequence of wchar_t's and I'll figure it out :)
On Mon, 26 Sep 2011 15:45:20 +0200, Kean Johnston wrote:
Give that to me as a sequence of wchar_t's and I'll figure it out :)
It's \u0442\u0435\u0441\u0442.
--
Jernej Simončič http://eternallybored.org/
___
gtk-devel-list mailing list
But which is more likely to happen - user having a filename with foreign
characters, or user having a symlink (which on Windows can only be created
by administrators)...
Are you sure about that (I havent had the time to create a quick
application that tests this) but
On 09/26/2011 02:59 PM, Tony Houghton wrote:
I'm developing a simple wrapper library, with the objects defined using
gob2 and I want to export gi bindings for it. At first I didn't bother
making the object methods virtual but they didn't get exported into the
.gir file. When I made them virtual
2011/9/26 Kean Johnston kean.johns...@gmail.com:
Plus I am
fairly sure (but not 100%) that MBCS can represent all of the characters
UTF-16 can (which is what the _wstat function uses).
MBCS is misleadingly named in Microsoft documentation. It is not
always a multibyte encoding. It is a
On Mon, 26 Sep 2011 15:33:07 +0200
Florian Müllner fmuell...@gnome.org wrote:
On lun, 2011-09-26 at 13:59 +0100, Tony Houghton wrote:
For example, I would like to export this function:
class Gsqlite:Database
from G:Object
{
// ...
From man g-ir-scanner:
The suffix
On Mon, 26 Sep 2011 15:55:20 +0200, Kean Johnston wrote:
Are you sure about that (I havent had the time to create a quick
application that tests this) but
http://msdn.microsoft.com/en-us/library/windows/desktop/aa363866%28v=vs.85%29.aspx
makes no mention of elevated priveliges. Are you
On Mon, 26 Sep 2011 15:57:15 +0200
Mikkel Kamstrup Erlandsen mikkel.kamst...@canonical.com wrote:
Sorry if this is not a direct solution to your problem at hand, but if
possible (and I guess it is, if it's a simple library wrapper) you
should reconsider writing your high level stuff in Vala,
user. The ordinary user is unlikely to create any symlinks, and I'm
not even sure that _wstat would be called when selecting the linked
file for opening in the file chooser.
Forget about a file chooser. I want to write a utility. I want to be able
to stat files and get their sizes to display how
I'm sure. Open an unelevated command prompt and use the mklink command.
That could be weirdness with the mklink command. I'll write a test using
the actual API's.
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
On Mon, 26 Sep 2011 16:11:11 +0200, Kean Johnston wrote:
Forget about a file chooser. I want to write a utility. I want to be able
to stat files and get their sizes to display how many bytes the files in a
directory uses. How do I do that with a broken _wstat? Or, I want to
*write* a file
On 09/26/2011 04:10 PM, Tony Houghton wrote:
On Mon, 26 Sep 2011 15:57:15 +0200
Mikkel Kamstrup Erlandsenmikkel.kamst...@canonical.com wrote:
Sorry if this is not a direct solution to your problem at hand, but if
possible (and I guess it is, if it's a simple library wrapper) you
should
Hello devs,
I've been browsing the GIO and glib-networking source code for a
while, and I'd like to get some clarification on the usage of the
GIOStream API with respect to threading. It was my understanding that
the API allows running a g_input_stream_read() in one thread while
doing a
On 09/26/2011 10:54 AM, Ayo wrote:
...at least, I thought the API supported that. Browsing through the
code of the gnutls implementation in glib-networking, I see a single
internal state being used for both the read and write functions, with
apparently no synchronisation whatsoever. Am I
On Mon, 2011-09-26 at 13:55 +0200, Jernej Simončič wrote:
On Mon, 26 Sep 2011 08:59:29 +0200, Kean Johnston wrote:
So, for stat, we have to do a double conversion: first from the input UTF-8
to UTF-16, and then from UTF-16 to MBCS so that we can call stat instead of
wstat so that users
Couldn't GLib directly use GetFileAttributesExW instead, or does this
Sadly the file attributes constants dont have anything like
FILE_ATTRIBUTE_SYMLINK etc, so we wouldn't be able to determine if the file
is a symbolic link or not. Which I guess would be OK because this is
g_stat() not
On Mon, 26 Sep 2011 16:12:25 +0200, Kean Johnston wrote:
That could be weirdness with the mklink command. I'll write a test using
the actual API's.
It's not - symlinks are intentionally restricted to administrators to
prevent the security issues they would introduce in applications predating
It's not - symlinks are intentionally restricted to administrators to
prevent the security issues they would introduce in applications predating
symlink support.
Ah ok cool, useful information, thank you!
___
gtk-devel-list mailing list
On Mon, 2011-09-26 at 19:11 +0200, Kean Johnston wrote:
Couldn't GLib directly use GetFileAttributesExW instead, or does this
Sadly the file attributes constants dont have anything like
FILE_ATTRIBUTE_SYMLINK etc, so we wouldn't be able to determine if the file
is a symbolic link or not.
FWIW I'm in favor of 64 bit time fields, as the event horizon for
32-bit fields is only 27 years away. Even if you think that it's very
unlikely that any present day programs will still be used in 27 years,
you can think of this as enabling Unix timestamp calculations with
dates much further into
I'm working on a custom container class using GTK+ 3.0 which has some
similarities with GtkPaned but supports more than two child widgets. I
can install a style property to specify the size of the grips used for
resizing child widgets, however it is not likely that any theme will
ever support the
On 26/09/2011 21:21, Matthew Bucknall wrote:
I'm working on a custom container class using GTK+ 3.0 which has some
similarities with GtkPaned but supports more than two child widgets.
Got something something similar working nicely some time ago, but
targeting GTK+ 2 through PyGTK:
hi,
dconf 0.10.0 was released with no changes at all. It should be packaged
only as a matter of completeness.
http://download.gnome.org/sources/dconf/0.10/
9f744ccfb3da20163a4bb27916c960f6bf56048b3ec1112862c85414fc064ee2
dconf-0.10.0.tar.xz
Cheers
36 matches
Mail list logo