mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 10:36:00 +01:00
Disable fullscreen mode if no document has been opened
This commit is contained in:
parent
4144bcf5a0
commit
e73ca51d05
2 changed files with 11 additions and 4 deletions
9
po/de.po
9
po/de.po
|
@ -4,7 +4,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2012-03-06 21:54+0100\n"
|
"POT-Creation-Date: 2012-03-07 01:01+0100\n"
|
||||||
"PO-Revision-Date: 2012-03-05 17:26+0100\n"
|
"PO-Revision-Date: 2012-03-05 17:26+0100\n"
|
||||||
"Last-Translator: Sebastian Ramacher <s.ramacher@gmx.at>\n"
|
"Last-Translator: Sebastian Ramacher <s.ramacher@gmx.at>\n"
|
||||||
"Language-Team: pwmt.org <mail@pwmt.org>\n"
|
"Language-Team: pwmt.org <mail@pwmt.org>\n"
|
||||||
|
@ -123,22 +123,23 @@ msgstr "Speichere Dokument (und überschreibe bestehende)"
|
||||||
msgid "Save attachments"
|
msgid "Save attachments"
|
||||||
msgstr "Speichere Anhänge"
|
msgstr "Speichere Anhänge"
|
||||||
|
|
||||||
#: ../callbacks.c:149
|
#: ../callbacks.c:150
|
||||||
msgid "Failed to run xdg-open."
|
msgid "Failed to run xdg-open."
|
||||||
msgstr "Konnte xdg-open nicht ausführen."
|
msgstr "Konnte xdg-open nicht ausführen."
|
||||||
|
|
||||||
#: ../callbacks.c:175
|
#: ../callbacks.c:176
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Invalid input '%s' given."
|
msgid "Invalid input '%s' given."
|
||||||
msgstr "Ungültige Eingabe '%s' angegeben."
|
msgstr "Ungültige Eingabe '%s' angegeben."
|
||||||
|
|
||||||
#: ../callbacks.c:209
|
#: ../callbacks.c:210
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Invalid index '%s' given."
|
msgid "Invalid index '%s' given."
|
||||||
msgstr "Ungültiger Index '%s' angegeben."
|
msgstr "Ungültiger Index '%s' angegeben."
|
||||||
|
|
||||||
#: ../commands.c:28 ../commands.c:63 ../commands.c:90 ../commands.c:132
|
#: ../commands.c:28 ../commands.c:63 ../commands.c:90 ../commands.c:132
|
||||||
#: ../commands.c:220 ../commands.c:237 ../commands.c:263 ../commands.c:337
|
#: ../commands.c:220 ../commands.c:237 ../commands.c:263 ../commands.c:337
|
||||||
|
#: ../shortcuts.c:768
|
||||||
msgid "No document opened."
|
msgid "No document opened."
|
||||||
msgstr "Kein Dokument geöffnet."
|
msgstr "Kein Dokument geöffnet."
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
#include <girara/utils.h>
|
#include <girara/utils.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include <libgen.h>
|
#include <libgen.h>
|
||||||
|
#include <glib/gi18n.h>
|
||||||
|
|
||||||
#include "callbacks.h"
|
#include "callbacks.h"
|
||||||
#include "shortcuts.h"
|
#include "shortcuts.h"
|
||||||
|
@ -763,6 +764,11 @@ sc_toggle_fullscreen(girara_session_t* session, girara_argument_t*
|
||||||
g_return_val_if_fail(session->global.data != NULL, false);
|
g_return_val_if_fail(session->global.data != NULL, false);
|
||||||
zathura_t* zathura = session->global.data;
|
zathura_t* zathura = session->global.data;
|
||||||
|
|
||||||
|
if (zathura->document == NULL) {
|
||||||
|
girara_notify(session, GIRARA_WARNING, _("No document opened."));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
static bool fullscreen = false;
|
static bool fullscreen = false;
|
||||||
static int pages_per_row = 1;
|
static int pages_per_row = 1;
|
||||||
static double zoom = 1.0;
|
static double zoom = 1.0;
|
||||||
|
|
Loading…
Reference in a new issue