summaryrefslogtreecommitdiff
path: root/client/gtk.c
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@slbdata.se>2010-02-20 00:48:50 +0100
committerSamuel Lidén Borell <samuel@slbdata.se>2010-02-20 00:48:50 +0100
commit3e95ab256185edd4b05e1325a3422102b0067a08 (patch)
tree6b1bee56f1a6c1b212de686693ff0bf95e649a0e /client/gtk.c
parent044097f7d6857b8bc91e216ab8a3503a93c89e1d (diff)
downloadfribid-3e95ab256185edd4b05e1325a3422102b0067a08.tar.gz
fribid-3e95ab256185edd4b05e1325a3422102b0067a08.tar.bz2
fribid-3e95ab256185edd4b05e1325a3422102b0067a08.zip
Fixed a few more window id problems on 64-bit platforms
This commit fixes the code outside of the plugin to work properly with 64-bit windows ids. I also simplified the plugin code a bit by using the None value instead of having a separate parameter and a boolean return value.
Diffstat (limited to 'client/gtk.c')
-rw-r--r--client/gtk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/gtk.c b/client/gtk.c
index 138b5a9..8c08eee 100644
--- a/client/gtk.c
+++ b/client/gtk.c
@@ -176,7 +176,7 @@ static void selectDefaultSignature() {
}
void platform_startSign(const char *url, const char *hostname, const char *ip,
- const char *subjectFilter, int parentWindowId) {
+ const char *subjectFilter, unsigned long parentWindowId) {
currentSubjectFilter = (subjectFilter != NULL ?
strdup(subjectFilter) : NULL);
@@ -237,7 +237,7 @@ void platform_startSign(const char *url, const char *hostname, const char *ip,
signDialog = GTK_DIALOG(gtk_builder_get_object(builder, "dialog_sign"));
bool transientOk = false;
- if (parentWindowId != -1) {
+ if (parentWindowId != PLATFORM_NO_WINDOW) {
GdkWindow *parent = gdk_window_foreign_new((GdkNativeWindow)parentWindowId);
if (parent != NULL) {
gtk_widget_realize(GTK_WIDGET(signDialog));