From 5d3cc513a3ecadb98ed8f6e34c4521db634e09cf Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 1 Mar 2015 17:41:09 +0000 Subject: Fixup gtk viewdata window to open at appropriate size The size hints given were insufficient for gtk to open the window at a sensible size or position. This fixes it to open with a default 640x480 size which is a reasonable compromise. The gtk3 ui builder file was completely reconstructed from fresh as it was broken and was not working. --- gtk/res/viewdata.gtk2.ui | 4 +- gtk/res/viewdata.gtk3.ui | 346 +++++++++++++++++++++++++++-------------------- 2 files changed, 205 insertions(+), 145 deletions(-) diff --git a/gtk/res/viewdata.gtk2.ui b/gtk/res/viewdata.gtk2.ui index c54545415..7589022ca 100644 --- a/gtk/res/viewdata.gtk2.ui +++ b/gtk/res/viewdata.gtk2.ui @@ -3,6 +3,8 @@ + 640 + 480 True @@ -180,8 +182,6 @@ automatic - 600 - 400 True True 1 diff --git a/gtk/res/viewdata.gtk3.ui b/gtk/res/viewdata.gtk3.ui index e06aaf373..b742d5f6b 100644 --- a/gtk/res/viewdata.gtk3.ui +++ b/gtk/res/viewdata.gtk3.ui @@ -1,168 +1,226 @@ - - + - - - - - - menuitem1 - _File - - - - - gtk-save-as - source_save_as - - - - - - gtk-print - source_print - - - - - - gtk-close - source_close - - - - - menuitem2 - _Edit - - - - - gtk-select-all - viewdata_select_all - - - - - - gtk-cut - viewdata_cut - - - - - gtk-copy - viewdata_copy - - - - - gtk-paste - viewdata_paste - - - - - gtk-delete - viewdata_delete - - - - - - menuitem3 - _View - - - - - gtk-zoom-in - viewdata_zoom_in - - - - - - gtk-zoom-out - viewdata_zoom_out - - - - - - gtk-zoom-100 - viewdata_zoom_normal - - - - - - menuitem4 - _Help - - - - - gtk-about - viewdata_about - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + False + 640 + 480 - + True + False + vertical - + True + False + + + False + True + False + _File + True + + + True + False + + + gtk-save-as + False + True + False + True + True + + + + + gtk-print + False + True + False + True + True + + + + + False + True + False + + + + + gtk-close + False + True + False + True + True + + + + + + + + + False + True + False + _Edit + True + + + True + False + + + gtk-select-all + False + True + False + True + True + + + + + gtk-cut + False + True + False + True + True + + + + + gtk-copy + False + True + False + True + True + + + + + gtk-paste + False + True + False + True + True + + + + + gtk-delete + False + True + False + True + True + + + + + + + + + False + True + False + _View + True + + + True + False + + + gtk-zoom-in + False + True + False + True + True + + + + + gtk-zoom-out + False + True + False + True + True + + + + + gtk-zoom-100 + False + True + False + True + True + + + + + + + + + False + True + False + _Help + True + + + True + False + + + gtk-about + False + True + False + True + True + + + + + + False + True + 0 True True - GTK_POLICY_AUTOMATIC - GTK_POLICY_AUTOMATIC + bottom-right - 600 - 400 True True 1 1 False - GTK_WRAP_WORD + word 3 3 False @@ -170,6 +228,8 @@ + True + True 1 -- cgit v1.2.3