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

Resolves: tdf#89885 use a readonly GtkEntry for location

Change-Id: I324d5e0776da942eae62984b96951d9947702b49
üst 39f306df
...@@ -185,7 +185,7 @@ private: ...@@ -185,7 +185,7 @@ private:
PushButton* m_pChangePassBtn; PushButton* m_pChangePassBtn;
SelectableFixedText* m_pShowTypeFT; SelectableFixedText* m_pShowTypeFT;
FixedText* m_pFileValFt; Edit* m_pFileValEd;
SelectableFixedText* m_pShowSizeFT; SelectableFixedText* m_pShowSizeFT;
SelectableFixedText* m_pCreateValFt; SelectableFixedText* m_pCreateValFt;
......
...@@ -754,7 +754,7 @@ SfxDocumentPage::SfxDocumentPage(vcl::Window* pParent, const SfxItemSet& rItemSe ...@@ -754,7 +754,7 @@ SfxDocumentPage::SfxDocumentPage(vcl::Window* pParent, const SfxItemSet& rItemSe
get(m_pChangePassBtn, "changepass"); get(m_pChangePassBtn, "changepass");
get(m_pShowTypeFT, "showtype"); get(m_pShowTypeFT, "showtype");
get(m_pFileValFt, "showlocation"); get(m_pFileValEd, "showlocation");
get(m_pShowSizeFT, "showsize"); get(m_pShowSizeFT, "showsize");
m_aUnknownSize = m_pShowSizeFT->GetText(); m_aUnknownSize = m_pShowSizeFT->GetText();
m_pShowSizeFT->SetText(OUString()); m_pShowSizeFT->SetText(OUString());
...@@ -1028,10 +1028,10 @@ void SfxDocumentPage::Reset( const SfxItemSet* rSet ) ...@@ -1028,10 +1028,10 @@ void SfxDocumentPage::Reset( const SfxItemSet* rSet )
// we know it's a folder -> don't need the final slash, but it's better for WB_PATHELLIPSIS // we know it's a folder -> don't need the final slash, but it's better for WB_PATHELLIPSIS
aPath.removeFinalSlash(); aPath.removeFinalSlash();
OUString aText( aPath.PathToFileName() ); //! (pb) MaxLen? OUString aText( aPath.PathToFileName() ); //! (pb) MaxLen?
m_pFileValFt->SetText( aText ); m_pFileValEd->SetText( aText );
} }
else if ( aURL.GetProtocol() != INetProtocol::PrivSoffice ) else if ( aURL.GetProtocol() != INetProtocol::PrivSoffice )
m_pFileValFt->SetText( aURL.GetPartBeforeLastName() ); m_pFileValEd->SetText( aURL.GetPartBeforeLastName() );
// handle access data // handle access data
bool m_bUseUserData = rInfoItem.IsUseUserData(); bool m_bUseUserData = rInfoItem.IsUseUserData();
......
...@@ -297,13 +297,10 @@ ...@@ -297,13 +297,10 @@
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="showlocation"> <object class="GtkEntry" id="showlocation">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">True</property>
<property name="hexpand">True</property> <property name="editable">False</property>
<property name="xalign">0</property>
<property name="wrap">True</property>
<property name="max_width_chars">56</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left_attach">1</property>
......
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