Deze website werkt beter met JavaScript.
Beginscherm
Verkennen
Help
Inloggen
writeas
/
writeas-gtk
Volgen
1
Ster
0
Vork
0
Code
Kwesties
1
Pull-aanvragen
0
Publicaties
3
Wiki
Activiteit
Bladeren bron
Prevent opening text files
Opening a text file would overwrite the current draft, so for now we'll disable this.
tags/v1.0.0
Matt Baer
5 jaren geleden
bovenliggende
d19c8aef40
commit
d9972636a7
2 gewijzigde bestanden
met
toevoegingen van 2
en
7 verwijderingen
Zij-aan-zij weergave
Diff opties
Statistieken weergeven
Download Patch-bestand
Download Diff-bestand
+2
-2
data/writeas-gtk.desktop
+0
-5
src/application.vala
+ 2
- 2
data/writeas-gtk.desktop
Bestand weergeven
@@ -2,10 +2,10 @@
Type=Application
Name=Write.as
Comment=Publish a thought in seconds.
Exec=writeas-gtk
%f
Exec=writeas-gtk
Icon=write-as
Terminal=false
MimeType=
text/plain;
MimeType=
Categories=GTK;Office;Publishing;
Keywords=blog;text;editor;publish;
StartupNotify=true
+ 0
- 5
src/application.vala
Bestand weergeven
@@ -32,11 +32,6 @@ public class WriteAs.Application : Gtk.Application {
public override void open(File[] files, string hint) {
activate(); // ensure we have a window open.
try {
(get_windows().data as MainWindow).open_file(files[0]);
} catch (Error e) {
error(e.message);
}
}
public static int main(string[] args) {
Schrijf
Voorbeeld
Laden…
Annuleren
Opslaan