|
@@ -168,18 +168,28 @@ text_viewer_application_quit_action (GSimpleAction *action,
|
|
|
g_application_quit (G_APPLICATION (self));
|
|
g_application_quit (G_APPLICATION (self));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+/*static void
|
|
|
|
|
+text_viewer_application_shortcuts_action (GSimpleAction *action,
|
|
|
|
|
+ GVariant *parameter,
|
|
|
|
|
+ gpointer user_data)
|
|
|
|
|
+{
|
|
|
|
|
+ TextViewerApplication *self = user_data;
|
|
|
|
|
+
|
|
|
|
|
+}*/
|
|
|
|
|
+
|
|
|
static const GActionEntry app_actions[] = {
|
|
static const GActionEntry app_actions[] = {
|
|
|
- { "quit", text_viewer_application_quit_action },
|
|
|
|
|
- { "about", text_viewer_application_about_action },
|
|
|
|
|
|
|
+ { "quit", text_viewer_application_quit_action },
|
|
|
|
|
+ { "about", text_viewer_application_about_action },
|
|
|
|
|
+ /*{ "shortcuts", text_viewer_application_shortcuts_action },*/
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
static void
|
|
static void
|
|
|
text_viewer_application_init (TextViewerApplication *self)
|
|
text_viewer_application_init (TextViewerApplication *self)
|
|
|
{
|
|
{
|
|
|
- //gtk_init();
|
|
|
|
|
|
|
+ gboolean dark_mode;
|
|
|
self->settings = g_settings_new ("com.example.TextViewer");
|
|
self->settings = g_settings_new ("com.example.TextViewer");
|
|
|
|
|
|
|
|
- gboolean dark_mode = g_settings_get_boolean (self->settings, "dark-mode");
|
|
|
|
|
|
|
+ dark_mode = g_settings_get_boolean (self->settings, "dark-mode");
|
|
|
|
|
|
|
|
/*AdwStyleManager *style_manager = adw_style_manager_get_default ();
|
|
/*AdwStyleManager *style_manager = adw_style_manager_get_default ();
|
|
|
if (dark_mode)
|
|
if (dark_mode)
|