Kaydet (Commit) 7af4592c authored tarafından Adolfo Jayme Barrientos's avatar Adolfo Jayme Barrientos Kaydeden (comit) Miklos Vajna

onedrive: Improve fallback dialog and instructions

Reviewed on:
	https://gerrit.libreoffice.org/13500

Change-Id: I95df1d1b5589f89bfaa48c0833d92e3225b497a6
üst bc4bbf80
...@@ -70,9 +70,9 @@ namespace cmis ...@@ -70,9 +70,9 @@ namespace cmis
const char* /*username*/, const char* /*username*/,
const char* /*password*/ ) const char* /*password*/ )
{ {
OUString instructions = "Please open the following link in your browser and\n" OUString instructions = "Open the following link in your browser and "
"paste the code from the URL you have been redirected to\n" "paste the code from the URL you have been redirected to in the "
"in the box bellow. For example:\n" "box below. For example:\n"
"https://login.live.com/oauth20_desktop.srf?code=YOUR_CODE&lc=1033"; "https://login.live.com/oauth20_desktop.srf?code=YOUR_CODE&lc=1033";
OUString url_oustr( url, strlen( url ), RTL_TEXTENCODING_UTF8 ); OUString url_oustr( url, strlen( url ), RTL_TEXTENCODING_UTF8 );
const com::sun::star::uno::Reference< const com::sun::star::uno::Reference<
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
<interface> <interface>
<!-- interface-requires gtk+ 3.0 --> <requires lib="gtk+" version="3.0"/>
<object class="GtkDialog" id="AuthFallbackDlg"> <object class="GtkDialog" id="AuthFallbackDlg">
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="title" translatable="yes">OneDrive authentication code</property> <property name="border_width">6</property>
<property name="title" translatable="yes">OneDrive Authentication Code</property>
<property name="default_width">400</property> <property name="default_width">400</property>
<property name="default_height">270</property> <property name="default_height">270</property>
<child> <property name="type_hint">dialog</property>
<object class="GtkBox" id="box"> <property name="skip_taskbar_hint">True</property>
<property name="visible">True</property> <child internal-child="vbox">
<object class="GtkBox" id="messagedialog-vbox">
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<child> <property name="spacing">12</property>
<object class="GtkTextView" id="instructions"> <child internal-child="action_area">
<property name="visible">True</property> <object class="GtkButtonBox" id="messagedialog-action_area">
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="pixels_below_lines">4</property> <property name="layout_style">end</property>
<property name="editable">False</property> <child>
<property name="cursor_visible">False</property> <object class="GtkButton" id="ok">
<property name="label">gtk-ok</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
<property name="has_default">True</property>
<property name="receives_default">True</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="cancel">
<property name="label">gtk-cancel</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
<property name="fill">True</property> <property name="fill">True</property>
<property name="pack_type">end</property>
<property name="position">0</property> <property name="position">0</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkEntry" id="url"> <object class="GtkBox" id="box">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="invisible_char"></property>
<property name="editable">False</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="code">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="invisible_char"></property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkButtonBox" id="buttonbox">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="spacing">46</property> <property name="orientation">vertical</property>
<property name="layout_style">start</property> <property name="spacing">6</property>
<child> <child>
<object class="GtkButton" id="ok"> <object class="GtkTextView" id="instructions">
<property name="label" translatable="yes">Ok</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="receives_default">True</property> <property name="pixels_below_lines">4</property>
<property name="editable">False</property>
<property name="wrap_mode">word</property>
<property name="cursor_visible">False</property>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
<property name="fill">True</property> <property name="fill">True</property>
<property name="position">1</property> <property name="position">0</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkButton" id="cancel"> <object class="GtkEntry" id="url">
<property name="label" translatable="yes">Cancel</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="receives_default">True</property> <property name="editable">False</property>
<property name="invisible_char"></property>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
...@@ -82,15 +91,30 @@ ...@@ -82,15 +91,30 @@
<property name="position">1</property> <property name="position">1</property>
</packing> </packing>
</child> </child>
<child>
<object class="GtkEntry" id="code">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="invisible_char"></property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
</object> </object>
<packing> <packing>
<property name="expand">True</property> <property name="expand">False</property>
<property name="fill">True</property> <property name="fill">True</property>
<property name="padding">6</property> <property name="position">4</property>
<property name="position">3</property>
</packing> </packing>
</child> </child>
</object> </object>
</child> </child>
<action-widgets>
<action-widget response="0">ok</action-widget>
<action-widget response="0">cancel</action-widget>
</action-widgets>
</object> </object>
</interface> </interface>
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