Add Prefs for gtk153

This commit is contained in:
daleclack 2023-09-02 22:47:51 +08:00
parent 8a712c66d6
commit 9f6f2970e7
3 changed files with 20 additions and 1 deletions

View File

@ -26,7 +26,7 @@ link_directories (${GTK4_LIBRARY_DIRS})
# set(PO_DIR ${CMAKE_BINARY_DIR}/po/zh_CN/LC_MESSAGES)
#Source files
set(SOURCE_FILE src/main.cpp src/MyReminder.cpp src/timer.cpp)
set(SOURCE_FILE src/main.cpp src/MyReminder.cpp src/MyPrefs.cpp src/timer.cpp)
#Compile Resource

View File

@ -0,0 +1,14 @@
#include "MyPrefs.h"
struct _MyPrefs
{
GtkWindow parent_instance;
};
G_DEFINE_TYPE(MyPrefs, my_prefs, GTK_TYPE_WINDOW)
static void my_prefs_init(MyPrefs *self)
{}
static void my_prefs_class_init(MyPrefsClass *klass)
{}

View File

@ -0,0 +1,5 @@
#pragma once
#include <gtk/gtk.h>
G_DECLARE_FINAL_TYPE(MyPrefs, my_prefs, MY, PREFS, GtkWindow)