diff options
author | mbkma <[email protected]> | 2021-03-06 20:48:13 +0100 |
---|---|---|
committer | Robert Antoni Buj Gelonch <[email protected]> | 2021-03-07 09:53:11 +0100 |
commit | 6384cc5c9b68a6252b7f6e8417c2ef234f85b940 (patch) | |
tree | f3a8235f126fe00d90bac374e0791c34351136c2 /plugins/sort/sort.ui | |
parent | 4437fd4c919d8b66f7852c79b5edfa2ae927ea60 (diff) | |
download | pluma-6384cc5c9b68a6252b7f6e8417c2ef234f85b940.tar.bz2 pluma-6384cc5c9b68a6252b7f6e8417c2ef234f85b940.tar.xz |
sort plugin: Port sort plugin to the new GtkSourceView api.
This allows the user to undo a sorting operation.
Further this commit simplifies the code and updates the ui file.
Diffstat (limited to 'plugins/sort/sort.ui')
-rw-r--r-- | plugins/sort/sort.ui | 240 |
1 files changed, 95 insertions, 145 deletions
diff --git a/plugins/sort/sort.ui b/plugins/sort/sort.ui index 98ac2e0e..748ad274 100644 --- a/plugins/sort/sort.ui +++ b/plugins/sort/sort.ui @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- Generated with glade 3.20.4 --> +<!-- Generated with glade 3.38.2 --> <!--*- mode: xml -*--> <interface> <requires lib="gtk+" version="3.22"/> @@ -7,48 +7,49 @@ <property name="lower">1</property> <property name="upper">100</property> <property name="value">1</property> - <property name="step_increment">1</property> - <property name="page_increment">10</property> + <property name="step-increment">1</property> + <property name="page-increment">10</property> </object> <object class="GtkImage" id="image1"> <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="icon_name">process-stop</property> + <property name="can-focus">False</property> + <property name="icon-name">process-stop</property> </object> <object class="GtkImage" id="image2"> <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="icon_name">help-browser</property> + <property name="can-focus">False</property> + <property name="icon-name">help-browser</property> </object> <object class="GtkImage" id="sort_image"> - <property name="can_focus">False</property> - <property name="icon_name">view-sort-ascending</property> + <property name="can-focus">False</property> + <property name="icon-name">view-sort-ascending</property> </object> <object class="GtkDialog" id="sort_dialog"> - <property name="can_focus">False</property> + <property name="can-focus">False</property> <property name="title" translatable="yes">Sort</property> <property name="resizable">False</property> - <property name="destroy_with_parent">True</property> - <property name="type_hint">dialog</property> + <property name="destroy-with-parent">True</property> + <property name="type-hint">dialog</property> <child internal-child="vbox"> <object class="GtkBox" id="dialog-vbox1"> <property name="visible">True</property> - <property name="can_focus">False</property> + <property name="can-focus">False</property> <property name="orientation">vertical</property> + <property name="spacing">6</property> <child internal-child="action_area"> <object class="GtkButtonBox" id="dialog_action_area1"> <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="layout_style">end</property> + <property name="can-focus">False</property> + <property name="layout-style">end</property> <child> <object class="GtkButton" id="button1"> <property name="label" translatable="yes">_Cancel</property> <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="can_default">True</property> - <property name="receives_default">False</property> + <property name="can-focus">True</property> + <property name="can-default">True</property> + <property name="receives-default">False</property> <property name="image">image1</property> - <property name="use_underline">True</property> + <property name="use-underline">True</property> </object> <packing> <property name="expand">True</property> @@ -60,11 +61,12 @@ <object class="GtkButton" id="button2"> <property name="label" translatable="yes">_Sort</property> <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="can_default">True</property> - <property name="receives_default">False</property> + <property name="can-focus">True</property> + <property name="can-default">True</property> + <property name="has-default">True</property> + <property name="receives-default">False</property> <property name="image">sort_image</property> - <property name="use_underline">True</property> + <property name="use-underline">True</property> </object> <packing> <property name="expand">True</property> @@ -76,11 +78,11 @@ <object class="GtkButton" id="button3"> <property name="label" translatable="yes">_Help</property> <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="can_default">True</property> - <property name="receives_default">False</property> + <property name="can-focus">True</property> + <property name="can-default">True</property> + <property name="receives-default">False</property> <property name="image">image2</property> - <property name="use_underline">True</property> + <property name="use-underline">True</property> </object> <packing> <property name="expand">True</property> @@ -92,147 +94,97 @@ <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="pack_type">end</property> + <property name="pack-type">end</property> <property name="position">0</property> </packing> </child> <child> - <object class="GtkBox" id="vbox1"> + <object class="GtkBox" id="vbox5"> <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="border_width">10</property> + <property name="can-focus">False</property> + <property name="border-width">12</property> <property name="orientation">vertical</property> - <property name="spacing">18</property> + <property name="spacing">12</property> <child> - <object class="GtkBox" id="vbox5"> + <object class="GtkCheckButton" id="reverse_order_checkbutton"> + <property name="label" translatable="yes">_Reverse order</property> <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="orientation">vertical</property> - <property name="spacing">12</property> - <child> - <object class="GtkCheckButton" id="reverse_order_checkbutton"> - <property name="label" translatable="yes">_Reverse order</property> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="receives_default">False</property> - <property name="use_underline">True</property> - <property name="draw_indicator">True</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">False</property> - <property name="position">0</property> - </packing> - </child> - <child> - <object class="GtkCheckButton" id="remove_dups_checkbutton"> - <property name="label" translatable="yes">R_emove duplicates</property> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="receives_default">False</property> - <property name="use_underline">True</property> - <property name="draw_indicator">True</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">False</property> - <property name="position">1</property> - </packing> - </child> - <child> - <object class="GtkCheckButton" id="ignore_case_checkbutton"> - <property name="label" translatable="yes">_Ignore case</property> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="receives_default">False</property> - <property name="use_underline">True</property> - <property name="active">True</property> - <property name="draw_indicator">True</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">False</property> - <property name="position">2</property> - </packing> - </child> - <child> - <object class="GtkBox" id="hbox13"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="spacing">6</property> - <child> - <object class="GtkLabel" id="label18"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes">S_tart at column:</property> - <property name="use_underline">True</property> - <property name="mnemonic_widget">col_num_spinbutton</property> - <property name="xalign">0.5</property> - <property name="yalign">0.5</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">False</property> - <property name="position">0</property> - </packing> - </child> - <child> - <object class="GtkSpinButton" id="col_num_spinbutton"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="adjustment">adjustment1</property> - <property name="climb_rate">1</property> - <property name="numeric">True</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">1</property> - </packing> - </child> - </object> - <packing> - <property name="expand">True</property> - <property name="fill">True</property> - <property name="position">3</property> - </packing> - </child> + <property name="can-focus">True</property> + <property name="receives-default">False</property> + <property name="halign">start</property> + <property name="use-underline">True</property> + <property name="draw-indicator">True</property> </object> <packing> - <property name="expand">True</property> - <property name="fill">True</property> + <property name="expand">False</property> + <property name="fill">False</property> <property name="position">0</property> </packing> </child> <child> - <object class="GtkBox" id="hbox14"> + <object class="GtkCheckButton" id="remove_dups_checkbutton"> + <property name="label" translatable="yes">R_emove duplicates</property> + <property name="visible">True</property> + <property name="can-focus">True</property> + <property name="receives-default">False</property> + <property name="halign">start</property> + <property name="use-underline">True</property> + <property name="draw-indicator">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + <child> + <object class="GtkCheckButton" id="ignore_case_checkbutton"> + <property name="label" translatable="yes">_Ignore case</property> <property name="visible">True</property> - <property name="can_focus">False</property> + <property name="can-focus">True</property> + <property name="receives-default">False</property> + <property name="halign">start</property> + <property name="use-underline">True</property> + <property name="active">True</property> + <property name="draw-indicator">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">2</property> + </packing> + </child> + <child> + <object class="GtkBox" id="hbox13"> + <property name="visible">True</property> + <property name="can-focus">False</property> <property name="spacing">6</property> <child> - <object class="GtkImage" id="image7"> + <object class="GtkLabel" id="label18"> <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="icon_name">dialog-warning</property> + <property name="can-focus">False</property> + <property name="halign">start</property> + <property name="label" translatable="yes">S_tart at column:</property> + <property name="use-underline">True</property> + <property name="mnemonic-widget">col_num_spinbutton</property> </object> <packing> <property name="expand">False</property> - <property name="fill">True</property> + <property name="fill">False</property> <property name="position">0</property> </packing> </child> <child> - <object class="GtkLabel" id="label17"> + <object class="GtkSpinButton" id="col_num_spinbutton"> <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes">You cannot undo a sort operation</property> - <property name="use_markup">True</property> - <property name="wrap">True</property> - <property name="xalign">0</property> - <property name="yalign">0.5</property> + <property name="can-focus">True</property> + <property name="halign">start</property> + <property name="adjustment">adjustment1</property> + <property name="climb-rate">1</property> + <property name="numeric">True</property> </object> <packing> - <property name="expand">True</property> + <property name="expand">False</property> <property name="fill">True</property> <property name="position">1</property> </packing> @@ -241,13 +193,14 @@ <packing> <property name="expand">True</property> <property name="fill">True</property> - <property name="position">1</property> + <property name="position">3</property> </packing> </child> </object> <packing> - <property name="expand">True</property> + <property name="expand">False</property> <property name="fill">True</property> + <property name="padding">6</property> <property name="position">1</property> </packing> </child> @@ -258,8 +211,5 @@ <action-widget response="-5">button2</action-widget> <action-widget response="-11">button3</action-widget> </action-widgets> - <child> - <placeholder/> - </child> </object> </interface> |