mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-21 03:32:35 +03:00
5d3cc513a3
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.
205 lines
9.9 KiB
XML
205 lines
9.9 KiB
XML
<?xml version="1.0"?>
|
|
<interface>
|
|
<!-- interface-requires gtk+ 2.12 -->
|
|
<!-- interface-naming-policy toplevel-contextual -->
|
|
<object class="GtkWindow" id="ViewDataWindow">
|
|
<property name="default_width">640</property>
|
|
<property name="default_height">480</property>
|
|
<child>
|
|
<object class="GtkVBox" id="vbox1">
|
|
<property name="visible">True</property>
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkMenuBar" id="menubar1">
|
|
<property name="visible">True</property>
|
|
<child>
|
|
<object class="GtkMenuItem" id="menuitem1">
|
|
<property name="visible">True</property>
|
|
<property name="label" translatable="yes">_File</property>
|
|
<property name="use_underline">True</property>
|
|
<child type="submenu">
|
|
<object class="GtkMenu" id="menu1">
|
|
<property name="visible">True</property>
|
|
<child>
|
|
<object class="GtkImageMenuItem" id="viewdata_save_as">
|
|
<property name="label">gtk-save-as</property>
|
|
<property name="visible">True</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="use_stock">True</property>
|
|
<accelerator key="S" signal="activate" modifiers="GDK_CONTROL_MASK"/>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkImageMenuItem" id="viewdata_print">
|
|
<property name="label">gtk-print</property>
|
|
<property name="visible">True</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="use_stock">True</property>
|
|
<accelerator key="P" signal="activate" modifiers="GDK_CONTROL_MASK"/>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkSeparatorMenuItem" id="separatormenuitem1">
|
|
<property name="visible">True</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkImageMenuItem" id="viewdata_close">
|
|
<property name="label">gtk-close</property>
|
|
<property name="visible">True</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="use_stock">True</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkMenuItem" id="menuitem2">
|
|
<property name="visible">True</property>
|
|
<property name="label" translatable="yes">_Edit</property>
|
|
<property name="use_underline">True</property>
|
|
<child type="submenu">
|
|
<object class="GtkMenu" id="menu2">
|
|
<property name="visible">True</property>
|
|
<child>
|
|
<object class="GtkImageMenuItem" id="viewdata_select_all">
|
|
<property name="label">gtk-select-all</property>
|
|
<property name="visible">True</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="use_stock">True</property>
|
|
<accelerator key="A" signal="activate" modifiers="GDK_CONTROL_MASK"/>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkImageMenuItem" id="viewdata_cut">
|
|
<property name="label">gtk-cut</property>
|
|
<property name="visible">True</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="use_stock">True</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkImageMenuItem" id="viewdata_copy">
|
|
<property name="label">gtk-copy</property>
|
|
<property name="visible">True</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="use_stock">True</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkImageMenuItem" id="viewdata_paste">
|
|
<property name="label">gtk-paste</property>
|
|
<property name="visible">True</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="use_stock">True</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkImageMenuItem" id="viewdata_delete">
|
|
<property name="label">gtk-delete</property>
|
|
<property name="visible">True</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="use_stock">True</property>
|
|
<accelerator key="Delete" signal="activate"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkMenuItem" id="menuitem3">
|
|
<property name="visible">True</property>
|
|
<property name="label" translatable="yes">_View</property>
|
|
<property name="use_underline">True</property>
|
|
<child type="submenu">
|
|
<object class="GtkMenu" id="menu4">
|
|
<property name="visible">True</property>
|
|
<child>
|
|
<object class="GtkImageMenuItem" id="viewdata_zoom_in">
|
|
<property name="label">gtk-zoom-in</property>
|
|
<property name="visible">True</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="use_stock">True</property>
|
|
<accelerator key="plus" signal="activate" modifiers="GDK_CONTROL_MASK"/>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkImageMenuItem" id="viewdata_zoom_out">
|
|
<property name="label">gtk-zoom-out</property>
|
|
<property name="visible">True</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="use_stock">True</property>
|
|
<accelerator key="minus" signal="activate" modifiers="GDK_CONTROL_MASK"/>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkImageMenuItem" id="viewdata_zoom_normal">
|
|
<property name="label">gtk-zoom-100</property>
|
|
<property name="visible">True</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="use_stock">True</property>
|
|
<accelerator key="0" signal="activate" modifiers="GDK_CONTROL_MASK"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkMenuItem" id="menuitem4">
|
|
<property name="visible">True</property>
|
|
<property name="label" translatable="yes">_Help</property>
|
|
<property name="use_underline">True</property>
|
|
<child type="submenu">
|
|
<object class="GtkMenu" id="menu3">
|
|
<property name="visible">True</property>
|
|
<child>
|
|
<object class="GtkImageMenuItem" id="viewdata_about">
|
|
<property name="label">gtk-about</property>
|
|
<property name="visible">True</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="use_stock">True</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="position">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkScrolledWindow" id="sourcescrolled">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="hscrollbar_policy">automatic</property>
|
|
<property name="vscrollbar_policy">automatic</property>
|
|
<child>
|
|
<object class="GtkTextView" id="viewdata_view">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="pixels_above_lines">1</property>
|
|
<property name="pixels_below_lines">1</property>
|
|
<property name="editable">False</property>
|
|
<property name="wrap_mode">word</property>
|
|
<property name="left_margin">3</property>
|
|
<property name="right_margin">3</property>
|
|
<property name="accepts_tab">False</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="position">1</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</interface>
|