Add Prefs for gtk153
This commit is contained in:
parent
8a712c66d6
commit
9f6f2970e7
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
{}
|
|
@ -0,0 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
G_DECLARE_FINAL_TYPE(MyPrefs, my_prefs, MY, PREFS, GtkWindow)
|
Loading…
Reference in New Issue