diff --git a/src/paperplaneapp.gresource.xml b/src/paperplaneapp.gresource.xml index 1c82062..340a33e 100644 --- a/src/paperplaneapp.gresource.xml +++ b/src/paperplaneapp.gresource.xml @@ -2,5 +2,6 @@ window.ui + settings.ui diff --git a/src/paperplaneappwin.c b/src/paperplaneappwin.c index 69fcc55..f869a9d 100644 --- a/src/paperplaneappwin.c +++ b/src/paperplaneappwin.c @@ -14,6 +14,16 @@ G_DEFINE_TYPE(PaperplaneAppWindow, paperplane_app_window, GTK_TYPE_APPLICATION_W paperplane_app_window_init (PaperplaneAppWindow *win) { gtk_widget_init_template (GTK_WIDGET (win)); + GtkBuilder *builder; + GMenuModel *menu; + GAction *action; + + gtk_widget_init_template (GTK_WIDGET (win)); + + builder = gtk_builder_new_from_resource ("/org/gtk/paperplaneapp/settings.ui"); + menu = G_MENU_MODEL (gtk_builder_get_object (builder, "menu")); + g_object_unref (builder); + } static void diff --git a/src/settings.ui b/src/settings.ui new file mode 100644 index 0000000..fb0e929 --- /dev/null +++ b/src/settings.ui @@ -0,0 +1,16 @@ + + + + +
+ + _Words + win.show-words + + + _Lines + win.show-lines + +
+
+
diff --git a/src/window.ui b/src/window.ui index 226be4f..bee0f53 100644 --- a/src/window.ui +++ b/src/window.ui @@ -6,111 +6,734 @@ 600 400 - + + -1 + 1 + + + -1 + 1 + + + 100 + 1000 + 400 + 100 + 100 + + True - False - 30 - 100 - 100 + True + none + never - + True False + center + 12 + 12 vertical - + True False - 30 - vertical - - + in + 12 + 12 + 0.45 + none + + True False - start + 0 This device - + - - False - False - 0 - - + True False - vertical + 6 + 6 + in - + True - False - start - Tobi's Laptop - - - + True + none + + + True + True + false + + + True + False + 0 + 16 + 12 + 6 + 6 + 6 + + + True + False + True + 0 + Angela's Thinkpad + True + primary-button-chooser-grid + + + 0 + 0 + 1 + 1 + + + + + True + False + 0 + 20 + True + word + Sets the order of physical buttons on mice and touchpads. + + + + + + + 0 + 1 + 1 + 1 + + + + + True + False + center + True + + + + True + True + True + 35 + + + True + False + emblem-system-symbolic + + + + + + + + 1 + 0 + 1 + 2 + + + + + + - - False - True - 0 - - - - - - False - True - 1 - - - False - True - 0 - - - True + + False False - vertical - - + 12 + 12 + none + 0.45 + + True False - start - Devices on this network + 0 + Mouse + + + - - False - True - 0 - - + + True + False + 6 + 6 + in + + + True + True + none + + + True + True + false + + + True + False + 0 + 32 + 12 + 6 + 8 + 8 + center + + + True + False + 0 + end + Mouse Speed + True + primary-button-chooser-grid + + + 0 + 0 + 1 + 1 + + + + + True + True + adjustment1 + False + 300 + end + True + + + Double-click timeout + + + + + 1 + 0 + 1 + 2 + + + + + + + + + True + True + false + + + True + False + 0 + 16 + 12 + 6 + 6 + 6 + center + + + True + False + True + 0 + Natural Scrolling + True + mouse-natural-scrolling-switch + + + 0 + 0 + 1 + 1 + + + + + True + False + 0 + Scrolling moves the content, not the view. + + + + + + + 0 + 1 + 1 + 1 + + + + + True + True + end + center + + + 1 + 0 + 1 + 2 + + + + + + + + + + + + + + + True + False + 12 + 12 + none + 0.45 + + + True + False + 0 + Touchpad + + + + + + + + True + False + 6 + 12 + in + + + True + False + vertical + + + True + True + none + + + True + True + false + + + True + False + 0 + 32 + 12 + 6 + 6 + 6 + center + + + True + False + True + 0 + end + Touchpad + True + touchpad-toggle-switch + + + 0 + 0 + 1 + 1 + + + + + True + True + end + center + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + 1 + 0 + 1 + 2 + + + + + + + + + + + true + horizontal + + + + + True + True + none + + + True + True + false + + + True + False + 0 + 16 + 12 + 6 + 6 + 6 + center + + + True + False + True + 0 + Natural Scrolling + True + touchpad-natural-scrolling-switch + + + 0 + 0 + 1 + 1 + + + + + True + False + 0 + Scrolling moves the content, not the view. + + + + + + + 0 + 1 + 1 + 1 + + + + + True + True + end + center + + + 1 + 0 + 1 + 2 + + + + + + + + + True + True + false + + + True + False + 0 + 16 + 12 + 6 + 8 + 8 + center + + + True + False + 0 + end + Touchpad Speed + True + touchpad-speed-scale + + + 0 + 0 + 1 + 1 + + + + + True + True + adjustment11 + False + True + end + + + Double-click timeout + + + + + 1 + 0 + 1 + 2 + + + + + + + + + False + True + false + + + True + False + 0 + 32 + 12 + 6 + 6 + 6 + center + + + True + False + True + 0 + end + Tap to Click + True + tap-to-click-switch + + + 0 + 0 + 1 + 1 + + + + + True + True + end + center + + + 1 + 0 + 1 + 2 + + + + + + + + + False + True + True + false + + + True + False + 0 + 32 + 12 + 6 + 6 + 6 + center + + + True + False + True + 0 + end + Two-finger Scrolling + True + two-finger-scrolling-switch + + + 0 + 0 + 1 + 1 + + + + + True + True + end + center + + + 1 + 0 + 1 + 2 + + + + + + + + + False + True + True + false + + + True + False + 0 + 32 + 12 + 6 + 6 + 6 + center + + + True + False + True + 0 + end + Edge Scrolling + True + edge-scrolling-switch + + + 0 + 0 + 1 + 1 + + + + + True + True + end + center + + + 1 + 0 + 1 + 2 + + + + + + + + + + + - - - False - True - 1 - + @@ -139,6 +762,20 @@ 2 + + + True + none + True + + + + end + 0 + +