From e9b5b56ba61283901b8d04c0f84929664ee29bb3 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 17 Sep 2019 21:57:09 +0100 Subject: [PATCH] fixup the gtk2 ui builders --- frontends/gtk/res/netsurf.gtk2.ui | 145 +++------------------- frontends/gtk/res/tabcontents.gtk2.ui | 169 ++++++++++++++------------ frontends/gtk/res/toolbar.gtk2.ui | 18 ++- frontends/gtk/search.c | 2 +- 4 files changed, 122 insertions(+), 212 deletions(-) diff --git a/frontends/gtk/res/netsurf.gtk2.ui b/frontends/gtk/res/netsurf.gtk2.ui index 431eab41c..adca54001 100644 --- a/frontends/gtk/res/netsurf.gtk2.ui +++ b/frontends/gtk/res/netsurf.gtk2.ui @@ -1,156 +1,43 @@ - - + + + 100 - 0 - 10 - 26 - 10 0.5357142857142857 + 26 + 10 + 10 100 - 0 - 10 26 + 10 10 - 0 - - - - - + False NetSurf - GTK_WIN_POS_CENTER + center True + False - + True + False False False - - - - - GTK_TOOLBAR_BOTH - - - True - gtk-close - - - False - - - - - True - - - True - 4 - Match - - - - - False - False - - - - - True - - - True - True - - - - - False - False - - - - - True - Search _Back - True - gtk-go-back - - - False - - - - - True - Search _Forward - True - gtk-go-forward - - - False - - - - - True - - - True - True - show all matches - All - True - True - - - - - False - False - - - - - True - - - True - True - Match case when searching - Case - GTK_RELIEF_NONE - True - True - - - - - False - False - - - - - False - False - 1 + 0 True + False False False True @@ -192,7 +79,9 @@ - 2 + True + True + 1 diff --git a/frontends/gtk/res/tabcontents.gtk2.ui b/frontends/gtk/res/tabcontents.gtk2.ui index cbd775971..c47e6a2ef 100644 --- a/frontends/gtk/res/tabcontents.gtk2.ui +++ b/frontends/gtk/res/tabcontents.gtk2.ui @@ -1,13 +1,27 @@ - + + + 100 + 30 + 10 + 10 + + + 100 + 30 + 10 + 10 + True + False True - GTK_TOOLBAR_BOTH_HORIZ + False + both-horiz False @@ -16,79 +30,65 @@ - - GTK_TOOLBAR_BOTH + + False + both - - True - gtk-close - - - False - - - - + True + False - + True - 4 - Match + True + False + False + True + True - False - False + True - + True + False + gtkFindBack + True + go-up + + + False + True + + + + + True + False + gtkFindForward + True + go-down + + + False + True + + + + + True + False - + + gtkFindHighlightAll True True - - - - - False - False - - - - - True - Search _Back - True - gtk-go-back - - - False - - - - - True - Search _Forward - True - gtk-go-forward - - - False - - - - - True - - - True - True - show all matches - All + False + show all matches True True @@ -96,19 +96,20 @@ False - False - + True + False - + + gtkFindMatchCase True True - Match case when searching - Case - GTK_RELIEF_NONE + False + Match case when searching + none True True @@ -116,7 +117,18 @@ False - False + + + + + True + False + gtkFindClose + window-close + + + False + True @@ -129,12 +141,14 @@ True + False 2 2 True True + False GDK_EXPOSURE_MASK | GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK | GDK_LEAVE_NOTIFY_MASK | GDK_STRUCTURE_MASK | GDK_SCROLL_MASK layouthadjustment layoutvadjustment @@ -144,6 +158,7 @@ 1 True + False 2 @@ -163,6 +178,7 @@ 1 True + False 0 4 Status @@ -175,6 +191,7 @@ True + False layouthadjustment @@ -192,31 +209,21 @@ True - vertical + False layoutvadjustment 1 2 - + + True + True 3 - - 100 - 30 - 10 - 10 - - - 100 - 30 - 10 - 10 - diff --git a/frontends/gtk/res/toolbar.gtk2.ui b/frontends/gtk/res/toolbar.gtk2.ui index eb882f368..22889717f 100644 --- a/frontends/gtk/res/toolbar.gtk2.ui +++ b/frontends/gtk/res/toolbar.gtk2.ui @@ -16,6 +16,20 @@ 0 + + + True + False + 0 + 6 + gtkCustomizeToolbarInstructions + + + True + True + 1 + + True @@ -44,7 +58,7 @@ True True - 1 + 2 @@ -98,7 +112,7 @@ False False 6 - 2 + 3 diff --git a/frontends/gtk/search.c b/frontends/gtk/search.c index ead511fe5..a7e343e86 100644 --- a/frontends/gtk/search.c +++ b/frontends/gtk/search.c @@ -307,7 +307,7 @@ nsgtk_search_create(GtkBuilder *builder, search->close = GTK_TOOL_BUTTON(gtk_builder_get_object(builder, "FindClose")); search->checkAll = GTK_CHECK_BUTTON(gtk_builder_get_object(builder, - "FindHightlightAll")); + "FindHighlightAll")); search->caseSens = GTK_CHECK_BUTTON(gtk_builder_get_object(builder, "FindMatchCase"));