1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <glib/gi18n.h>
#include "dialog.h"
/* Strings */
static const gchar * title_strings[LOGOUT_DIALOG_TYPE_CNT] = {
/* LOGOUT_DIALOG_LOGOUT, */ NC_("title", "Log Out"),
/* LOGOUT_DIALOG_RESTART, */ NC_("title", "Restart"),
/* LOGOUT_DIALOG_SHUTDOWN, */ NC_("title", "Switch Off")
};
static const gchar * body_strings[LOGOUT_DIALOG_TYPE_CNT] = {
/* LOGOUT_DIALOG_LOGOUT, */ N_("Are you sure you want to close all programs and log out?"),
/* LOGOUT_DIALOG_RESTART, */ N_("Are you sure you want to close all programs and restart the computer?"),
/* LOGOUT_DIALOG_SHUTDOWN, */ N_("Are you sure you want to close all programs and shut down the computer?")
};
static const gchar * button_strings[LOGOUT_DIALOG_TYPE_CNT] = {
/* LOGOUT_DIALOG_LOGOUT, */ NC_("button", "Log Out"),
/* LOGOUT_DIALOG_RESTART, */ NC_("button", "Restart"),
/* LOGOUT_DIALOG_SHUTDOWN, */ NC_("button", "Switch Off")
};
static const gchar * restart_updates = N_("Restart Instead");
static const gchar * restart_auth = N_("Restart...");
static const gchar * body_logout_update = N_("Some software updates won't apply until the computer next restarts.");
static const gchar * icon_strings[LOGOUT_DIALOG_TYPE_CNT] = {
/* LOGOUT_DIALOG_LOGOUT, */ "system-log-out",
/* LOGOUT_DIALOG_RESTART, */ "system-restart",
/* LOGOUT_DIALOG_SHUTDOWN, */ "system-shutdown"
};
typedef struct _LogoutDialogPrivate LogoutDialogPrivate;
struct _LogoutDialogPrivate {
guint type;
};
#define LOGOUT_DIALOG_GET_PRIVATE(o) \
(G_TYPE_INSTANCE_GET_PRIVATE ((o), LOGOUT_DIALOG_TYPE, LogoutDialogPrivate))
static void logout_dialog_class_init (LogoutDialogClass *klass);
static void logout_dialog_init (LogoutDialog *self);
static void logout_dialog_dispose (GObject *object);
static void logout_dialog_finalize (GObject *object);
G_DEFINE_TYPE (LogoutDialog, logout_dialog, GTK_TYPE_DIALOG);
static void
logout_dialog_class_init (LogoutDialogClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
g_type_class_add_private (klass, sizeof (LogoutDialogPrivate));
object_class->dispose = logout_dialog_dispose;
object_class->finalize = logout_dialog_finalize;
return;
}
static void
logout_dialog_init (LogoutDialog *self)
{
return;
}
static void
logout_dialog_dispose (GObject *object)
{
G_OBJECT_CLASS (logout_dialog_parent_class)->dispose (object);
return;
}
static void
logout_dialog_finalize (GObject *object)
{
G_OBJECT_CLASS (logout_dialog_parent_class)->finalize (object);
return;
}
LogoutDialog *
logout_dialog_new (LogoutDialogType type)
{
return NULL;
}
|