Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F12272649
application.vala
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
776 B
Subscribers
None
application.vala
View Options
public
class
WriteAs
.
Application
:
Gtk
.
Application
{
construct
{
this
.
flags
|=
ApplicationFlags
.
HANDLES_OPEN
;
Intl
.
setlocale
(
LocaleCategory
.
ALL
,
""
);
Intl
.
textdomain
(
"write.as"
);
application_id
=
"write-as-gtk.desktop"
;
}
public
override
void
activate
()
{
if
(
get_windows
().
length
()
==
0
)
new
WriteAs
.
MainWindow
(
this
).
show_all
();
}
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
)
{
return
new
WriteAs
.
Application
().
run
(
args
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Thu, Nov 6, 5:11 AM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3469795
Attached To
rWAGTK writeas-gtk
Event Timeline
Log In to Comment