Kaydet (Commit) 7701b0cb authored tarafından Caolán McNamara's avatar Caolán McNamara

add has-focus .ui support

Change-Id: Ifd95d9fa74f6cbba989c05aae2a225a85b78c9f1
üst eb4c29f4
......@@ -124,7 +124,6 @@ ScInsertContentsDlg::ScInsertContentsDlg( vcl::Window* pParent,
mpBtnShortCutPasteValuesOnly->SetClickHdl( LINK( this, ScInsertContentsDlg, ShortCutHdl ) );;
mpBtnShortCutPasteValuesFormats->SetClickHdl( LINK( this, ScInsertContentsDlg, ShortCutHdl ) );;
mpBtnShortCutPasteTranspose->SetClickHdl( LINK( this, ScInsertContentsDlg, ShortCutHdl ) );
mpBtnInsAll->GrabFocus();
}
InsertDeleteFlags ScInsertContentsDlg::GetInsContentsCmdBits() const
......
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
<!-- Generated with glade 3.16.1 -->
<interface>
<requires lib="gtk+" version="3.0"/>
<object class="GtkImage" id="img_paste_transpose">
......@@ -175,6 +175,7 @@
<property name="label" translatable="yes">_Paste all</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="has_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
......@@ -316,6 +317,8 @@
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
......@@ -446,6 +449,8 @@
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
......@@ -537,6 +542,8 @@
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
......@@ -632,6 +639,8 @@
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
......
......@@ -237,6 +237,7 @@
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="has_focus">True</property>
<property name="receives_default">True</property>
<property name="valign">center</property>
<property name="use_underline">True</property>
......
......@@ -1666,6 +1666,11 @@ bool Window::set_property(const OString &rKey, const OString &rValue)
//https://live.gnome.org/GnomeGoals/RemoveMarkupInMessages
SAL_WARN_IF(toBool(rValue), "vcl.layout", "Use pango attributes instead of mark-up");
}
else if (rKey == "has-focus")
{
if (toBool(rValue))
GrabFocus();
}
else
{
SAL_INFO("vcl.layout", "unhandled property: " << rKey.getStr());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment