X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fev-application.c;h=caa943b855d78d8f2373c2ed008239e965df8659;hb=6a34ad367a49ad20710d3b575b5fa21182164fa9;hp=bf828a61d51887df2ffcc5c389b213ac658504a3;hpb=2faf7d9668abe843e8688fa928a4d52d7df92879;p=evince.git diff --git a/shell/ev-application.c b/shell/ev-application.c index bf828a61..caa943b8 100644 --- a/shell/ev-application.c +++ b/shell/ev-application.c @@ -778,7 +778,7 @@ method_call_cb (GDBusConnection *connection, while (g_variant_iter_loop (iter, "{&sv}", &key, &value)) { if (strcmp (key, "display") == 0 && g_variant_classify (value) == G_VARIANT_CLASS_STRING) { display = ev_display_open_if_needed (g_variant_get_string (value, NULL)); - } else if (strcmp (key, "screen") == 0 && g_variant_classify (value) == G_VARIANT_CLASS_STRING) { + } else if (strcmp (key, "screen") == 0 && g_variant_classify (value) == G_VARIANT_CLASS_INT32) { screen_number = g_variant_get_int32 (value); } else if (strcmp (key, "mode") == 0 && g_variant_classify (value) == G_VARIANT_CLASS_UINT32) { mode = g_variant_get_uint32 (value);