Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Archive
libglade
Commits
b4a5a4e4
Commit
b4a5a4e4
authored
May 29, 2009
by
Tor Lillqvist
Browse files
Drop Win9x code path from libglade, too.
parent
67d440bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
b4a5a4e4
2009-05-29 Tor Lillqvist <tml@novell.com>
* glade/glade-init.c (get_libdir): Drop Win9x codepath here, too.
2009-03-17 Vincent Untz <vuntz@gnome.org>
* configure.in: post-release bump to 2.6.5
...
...
glade/glade-init.c
View file @
b4a5a4e4
...
...
@@ -74,6 +74,7 @@ replace_prefix (const char *runtime_prefix,
static
const
char
*
get_libdir
(
void
)
{
wchar_t
wcbfr
[
1000
];
static
const
char
*
libdir
=
NULL
;
char
*
prefix
=
NULL
;
...
...
@@ -84,18 +85,9 @@ get_libdir (void)
}
if
(
GetVersion
()
<
0x80000000
)
{
wchar_t
wcbfr
[
1000
];
if
(
GetModuleFileNameW
(
hmodule
,
wcbfr
,
G_N_ELEMENTS
(
wcbfr
)))
{
prefix
=
g_utf16_to_utf8
(
wcbfr
,
-
1
,
NULL
,
NULL
,
NULL
);
}
}
else
{
char
cpbfr
[
1000
];
if
(
GetModuleFileNameA
(
hmodule
,
cpbfr
,
G_N_ELEMENTS
(
cpbfr
)))
prefix
=
g_locale_to_utf8
(
cpbfr
,
-
1
,
NULL
,
NULL
,
NULL
);
}
if
(
GetModuleFileNameW
(
hmodule
,
wcbfr
,
G_N_ELEMENTS
(
wcbfr
)))
prefix
=
g_utf16_to_utf8
(
wcbfr
,
-
1
,
NULL
,
NULL
,
NULL
);
if
(
prefix
!=
NULL
)
{
char
*
p
=
strrchr
(
prefix
,
'\\'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment