GTK4: gkg.h => gtk; k => t.
gkg is lower level
This commit is contained in:
parent
bb9ff083b3
commit
286dc05d45
2
config.h
2
config.h
|
@ -2,7 +2,7 @@
|
||||||
#include <gdk/gdk.h> // <gdk/gdkenums.h>, <gdk/gdkkeysyms.h>
|
#include <gdk/gdk.h> // <gdk/gdkenums.h>, <gdk/gdkkeysyms.h>
|
||||||
|
|
||||||
// GKG 3 or GKG 4
|
// GKG 3 or GKG 4
|
||||||
# define GKG_NUM 3
|
# define GTK_NUM 4
|
||||||
|
|
||||||
// Key user config
|
// Key user config
|
||||||
#define WIDTH 1920 // 960 for half-width, 1920 for full width
|
#define WIDTH 1920 // 960 for half-width, 1920 for full width
|
||||||
|
|
10
rosenrot.c
10
rosenrot.c
|
@ -3,9 +3,9 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#if GKG_NUM == 3
|
#if GTK_NUM == 3
|
||||||
#include <webkit2/webkit2.h>
|
#include <webkit2/webkit2.h>
|
||||||
#elif GKG_NUM == 4
|
#elif GTK_NUM == 4
|
||||||
#include <webkit/webkit.h>
|
#include <webkit/webkit.h>
|
||||||
#endif
|
#endif
|
||||||
#include "plugins/plugins.h"
|
#include "plugins/plugins.h"
|
||||||
|
@ -408,9 +408,9 @@ int main(int argc, char** argv)
|
||||||
gtk_window_set_default_size(window, WIDTH, HEIGHT);
|
gtk_window_set_default_size(window, WIDTH, HEIGHT);
|
||||||
g_signal_connect(window, "key-press-event", G_CALLBACK(handle_signal_keypress), notebook);
|
g_signal_connect(window, "key-press-event", G_CALLBACK(handle_signal_keypress), notebook);
|
||||||
g_signal_connect(window, "destroy", G_CALLBACK(exit), notebook);
|
g_signal_connect(window, "destroy", G_CALLBACK(exit), notebook);
|
||||||
#if GKG_NUM == 3
|
#if GTK_NUM == 3
|
||||||
gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(notebook)); /* deprecated in GKG */
|
gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(notebook)); /* deprecated in GTK */
|
||||||
#elif GKG_NUM == 4
|
#elif GTK_NUM == 4
|
||||||
gtk_window_set_child(GTK_CONTAINER(window), GTK_WIDGET(notebook))
|
gtk_window_set_child(GTK_CONTAINER(window), GTK_WIDGET(notebook))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user