Hello community,

here is the log from the commit of package yast2-ycp-ui-bindings for 
openSUSE:Factory checked in at 2020-11-23 15:34:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-ycp-ui-bindings (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-ycp-ui-bindings.new.5913 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-ycp-ui-bindings"

Mon Nov 23 15:34:06 2020 rev:84 rq:849081 version:4.3.7

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/yast2-ycp-ui-bindings/yast2-ycp-ui-bindings.changes  
    2020-11-13 18:56:55.645968369 +0100
+++ 
/work/SRC/openSUSE:Factory/.yast2-ycp-ui-bindings.new.5913/yast2-ycp-ui-bindings.changes
    2020-11-23 16:28:22.632736824 +0100
@@ -1,0 +2,7 @@
+Mon Nov 16 16:19:49 UTC 2020 - Stefan Hundhammer <shundham...@suse.com>
+
+- Extended MenuBar-shortcut-test example to test shortcut priority
+  (bsc#1175489)
+- 4.3.7
+
+-------------------------------------------------------------------

Old:
----
  yast2-ycp-ui-bindings-4.3.6.tar.bz2

New:
----
  yast2-ycp-ui-bindings-4.3.7.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ yast2-ycp-ui-bindings.spec ++++++
--- /var/tmp/diff_new_pack.bd8CU2/_old  2020-11-23 16:28:23.212737902 +0100
+++ /var/tmp/diff_new_pack.bd8CU2/_new  2020-11-23 16:28:23.216737910 +0100
@@ -21,7 +21,7 @@
 %define yui_so         14
 
 Name:           yast2-ycp-ui-bindings
-Version:        4.3.6
+Version:        4.3.7
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build

++++++ yast2-ycp-ui-bindings-4.3.6.tar.bz2 -> 
yast2-ycp-ui-bindings-4.3.7.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-ycp-ui-bindings-4.3.6/examples/MenuBar-shortcuts-test.rb 
new/yast2-ycp-ui-bindings-4.3.7/examples/MenuBar-shortcuts-test.rb
--- old/yast2-ycp-ui-bindings-4.3.6/examples/MenuBar-shortcuts-test.rb  
2020-11-04 10:25:40.000000000 +0100
+++ new/yast2-ycp-ui-bindings-4.3.7/examples/MenuBar-shortcuts-test.rb  
2020-11-17 13:07:21.000000000 +0100
@@ -1,5 +1,10 @@
 # encoding: utf-8
 
+# Example for a menu bar and its shortcuts vs. button shortcuts
+#
+# This is also used in the NCurses UI test suite.
+# When changing this example, make sure that test suite does not fail!
+
 module Yast
   class MenuBarShortcutsClient < Client
     Yast.import "UI"
@@ -22,21 +27,21 @@
               HVSquash(
                 VBox(
                   ReplacePoint(Id(:rp_extra_buttons), Empty()),
-                  VSpacing( 0.2 ),
+                  VSpacing( 1 ),
                   Left(CheckBox(Id(:cb_extra_buttons), Opt(:notify), "Extra 
&Buttons", false)),
                   VSpacing( 1 ),
-                  Left(Label("Last Event:")),
-                  VSpacing( 0.2 ),
-                  MinWidth( 20,
-                    Label(Id(:last_event), Opt(:outputField), "<none>")
-                  ),
-                  VSpacing( 2 ),
-                  Left(CheckBox(Id(:read_only), Opt(:notify), "Read &Only", 
true))
+                  Left(CheckBox(Id(:read_only), Opt(:notify), "Read &Only", 
true)),
+                  VSpacing( 3 ),
+                  HBox(
+                    # Putting both in one line to enable grepping for NCurses 
UI tests
+                    HSquash(Label("Last Event: ")),
+                    MinWidth(20, Label(Id(:last_event), Opt(:outputField, 
:hstretch), "<none>"))
+                  )
                 )
               )
             )
           ),
-          Right(PushButton(Id(:cancel), "&Quit"))
+          Right(PushButton(Id(:quit), "&Quit"))
         )
       )
     end
@@ -57,7 +62,7 @@
         Item(Id(:save), "&Save"),
         Item(Id(:save_as), "Save &As..."),
         Item("---"),
-        Item(Id(:quit), "&Quit"),
+        Item(Id(:quit), "&Quit")
       ].freeze
     end
 
@@ -75,7 +80,7 @@
         Item(Id(:view_compact), "&Compact"),
         Item(Id(:view_detailed), "&Detailed"),
         Item("---"),
-        term(:menu, "&Zoom", zoom_menu),
+        term(:menu, "&Zoom", zoom_menu)
       ].freeze
     end
 
@@ -83,13 +88,13 @@
       [
         Item(Id(:zoom_in), "Zoom &In" ),
         Item(Id(:zoom_out), "Zoom &Out" ),
-        Item(Id(:zoom_default), "Zoom &Default" ),
+        Item(Id(:zoom_default), "Zoom &Default" )
       ].freeze
     end
 
     def options_menu
       [
-        Item(Id(:settings), "&Settings..."),
+        Item(Id(:settings), "&Settings...")
       ].freeze
     end
 
@@ -127,11 +132,11 @@
       # so their shortcuts get priority over menus / menu items
       HSquash(
         HBox(Id(:extra_button_box),
-          PushButton("&Fi"),
-          PushButton("&Ed"),
-          PushButton("&Vi"),
-          PushButton("&Opt"),
-          PushButton("&Cp")
+          PushButton(Id(:b_file), "&File"),
+          PushButton(Id(:b_edit), "&Edit"),
+          PushButton(Id(:b_view), "&View"),
+          PushButton(Id(:b_opt), "&Opt"),
+          PushButton(Id(:b_cp), "&Cp")
         )
       )
     end
@@ -156,6 +161,9 @@
 
     def show_event(id)
       UI.ChangeWidget(:last_event, :Value, id.to_s)
+      # Changing the content of a label does not trigger a re-layout by 
default;
+      # we need to do that manually
+      UI.RecalcLayout
     end
 
     # Enable or disable menu items depending on the current content of the
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-ycp-ui-bindings-4.3.6/package/yast2-ycp-ui-bindings.changes 
new/yast2-ycp-ui-bindings-4.3.7/package/yast2-ycp-ui-bindings.changes
--- old/yast2-ycp-ui-bindings-4.3.6/package/yast2-ycp-ui-bindings.changes       
2020-11-04 10:25:40.000000000 +0100
+++ new/yast2-ycp-ui-bindings-4.3.7/package/yast2-ycp-ui-bindings.changes       
2020-11-17 13:07:21.000000000 +0100
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Mon Nov 16 16:19:49 UTC 2020 - Stefan Hundhammer <shundham...@suse.com>
+
+- Extended MenuBar-shortcut-test example to test shortcut priority
+  (bsc#1175489)
+- 4.3.7
+
+-------------------------------------------------------------------
 Tue Nov  3 12:30:19 UTC 2020 - Stefan Hundhammer <shundham...@suse.com>
 
 - Added test case for boo#1178394
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-ycp-ui-bindings-4.3.6/package/yast2-ycp-ui-bindings.spec 
new/yast2-ycp-ui-bindings-4.3.7/package/yast2-ycp-ui-bindings.spec
--- old/yast2-ycp-ui-bindings-4.3.6/package/yast2-ycp-ui-bindings.spec  
2020-11-04 10:25:40.000000000 +0100
+++ new/yast2-ycp-ui-bindings-4.3.7/package/yast2-ycp-ui-bindings.spec  
2020-11-17 13:07:21.000000000 +0100
@@ -20,7 +20,7 @@
 %define yui_so         14
 
 Name:           yast2-ycp-ui-bindings
-Version:        4.3.6
+Version:        4.3.7
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
_______________________________________________
openSUSE Commits mailing list -- commit@lists.opensuse.org
To unsubscribe, email commit-le...@lists.opensuse.org
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives: 
https://lists.opensuse.org/archives/list/commit@lists.opensuse.org

Reply via email to