Mailinglist Archive: opensuse-commit (1774 mails)

< Previous Next >
commit yast2-gtk for openSUSE:Factory

Hello community,

here is the log from the commit of package yast2-gtk for openSUSE:Factory
checked in at Fri Feb 11 01:38:08 CET 2011.



--------
--- yast2-gtk/yast2-gtk.changes 2011-02-01 23:48:33.000000000 +0100
+++ /mounts/work_src_done/STABLE/yast2-gtk/yast2-gtk.changes 2011-02-08
19:30:43.000000000 +0100
@@ -1,0 +2,6 @@
+Tue Feb 08 18:28:00 WET 2011 - rpmcruz@xxxxxxxxxxxxxxxxxxx
+
+- 2.21.91
+- fixed compatibility with upcoming yast2-libyui 2.20.1.
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


Old:
----
yast2-gtk-2.21.90.tar.bz2

New:
----
yast2-gtk-2.21.91.tar.bz2

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

Other differences:
------------------
++++++ yast2-gtk.spec ++++++
--- /var/tmp/diff_new_pack.UyxyV7/_old 2011-02-11 01:37:50.000000000 +0100
+++ /var/tmp/diff_new_pack.UyxyV7/_new 2011-02-11 01:37:50.000000000 +0100
@@ -18,11 +18,11 @@


Name: yast2-gtk
-Version: 2.21.90
+Version: 2.21.91
Release: 1

BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-gtk-2.21.90.tar.bz2
+Source0: yast2-gtk-2.21.91.tar.bz2
Url: http://en.opensuse.org/YaST2-GTK
Summary: YaST2 - GTK+ Graphical User Interface
Group: System/YaST

++++++ yast2-gtk-2.21.90.tar.bz2 -> yast2-gtk-2.21.91.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-gtk-2.21.90/VERSION
new/yast2-gtk-2.21.91/VERSION
--- old/yast2-gtk-2.21.90/VERSION 2011-02-02 00:03:13.000000000 +0100
+++ new/yast2-gtk-2.21.91/VERSION 2011-02-08 19:29:57.000000000 +0100
@@ -1 +1 @@
-2.21.90
+2.21.91
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-gtk-2.21.90/VERSION.cmake
new/yast2-gtk-2.21.91/VERSION.cmake
--- old/yast2-gtk-2.21.90/VERSION.cmake 2011-02-02 00:03:13.000000000 +0100
+++ new/yast2-gtk-2.21.91/VERSION.cmake 2011-02-08 19:29:57.000000000 +0100
@@ -1,3 +1,3 @@
SET(VERSION_MAJOR "2")
SET(VERSION_MINOR "21")
-SET(VERSION_PATCH "90")
+SET(VERSION_PATCH "91")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-gtk-2.21.90/package/yast2-gtk.changes
new/yast2-gtk-2.21.91/package/yast2-gtk.changes
--- old/yast2-gtk-2.21.90/package/yast2-gtk.changes 2011-02-02
00:03:13.000000000 +0100
+++ new/yast2-gtk-2.21.91/package/yast2-gtk.changes 2011-02-08
19:29:57.000000000 +0100
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Tue Feb 08 18:28:00 WET 2011 - rpmcruz@xxxxxxxxxxxxxxxxxxx
+
+- 2.21.91
+- fixed compatibility with upcoming yast2-libyui 2.20.1.
+
+-------------------------------------------------------------------
Tue Feb 01 22:43:00 WET 2011 - rpmcruz@xxxxxxxxxxxxxxxxxxx

- 2.21.90
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-gtk-2.21.90/package/yast2-gtk.spec
new/yast2-gtk-2.21.91/package/yast2-gtk.spec
--- old/yast2-gtk-2.21.90/package/yast2-gtk.spec 2011-02-02
00:03:13.000000000 +0100
+++ new/yast2-gtk-2.21.91/package/yast2-gtk.spec 2011-02-08
19:29:57.000000000 +0100
@@ -1,16 +1,16 @@
#
-# spec file for package yast2-gtk (Version 2.21.89)
+# spec file for package yast2-gtk (Version 2.21.90)
#
# norootforbuild;,


Name: yast2-gtk
-Version: 2.21.89
+Version: 2.21.90
Release: 0


BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-gtk-2.21.89.tar.bz2
+Source0: yast2-gtk-2.21.90.tar.bz2
Url: http://en.opensuse.org/YaST2-GTK
Summary: YaST2 - GTK+ Graphical User Interface
Group: System/YaST
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-gtk-2.21.90/src/YGTreeView.cc
new/yast2-gtk-2.21.91/src/YGTreeView.cc
--- old/yast2-gtk-2.21.90/src/YGTreeView.cc 2011-02-02 00:03:13.000000000
+0100
+++ new/yast2-gtk-2.21.91/src/YGTreeView.cc 2011-02-08 19:29:57.000000000
+0100
@@ -43,6 +43,7 @@

m_blockTimeout = 0; // GtkTreeSelection idiotically fires when
showing widget
markColumn = -1; m_count = NULL;
+ blockSelected();
g_signal_connect (getWidget(), "map", G_CALLBACK
(block_init_cb), this);
}

@@ -198,6 +199,14 @@
gtk_tree_model_foreach (getModel(), inner::foreach_unmark,
this);
}

+ YItem *getFocusItem()
+ {
+ GtkTreeIter iter;
+ if (gtk_tree_selection_get_selected (getSelection(), NULL,
&iter))
+ return getYItem (&iter);
+ return NULL;
+ }
+
virtual bool _immediateMode() { return true; }
virtual bool _shrinkable() { return false; }

@@ -618,12 +627,7 @@
// YMultiSelectionBox

virtual YItem *currentItem()
- {
- GtkTreeIter iter;
- if (gtk_tree_selection_get_selected (getSelection(), NULL,
&iter))
- return getYItem (&iter);
- return NULL;
- }
+ { return getFocusItem(); }

virtual void setCurrentItem (YItem *item)
{ focusItem (item, true); }
@@ -747,6 +751,9 @@
syncCount();
}

+ virtual YTreeItem *currentItem()
+ { return (YTreeItem *) getFocusItem(); }
+
// YGSelectionStore

void doAddItem (YItem *item) {} // rebuild will be called anyway
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-gtk-2.21.90/tests/Tree-rebuild.ycp
new/yast2-gtk-2.21.91/tests/Tree-rebuild.ycp
--- old/yast2-gtk-2.21.90/tests/Tree-rebuild.ycp 2011-02-02
00:03:13.000000000 +0100
+++ new/yast2-gtk-2.21.91/tests/Tree-rebuild.ycp 2011-02-08
19:29:57.000000000 +0100
@@ -20,6 +20,7 @@
]
)
] ),
+ `PushButton (`id (`sel), "Select Value
1"),
`Label (`id (`label), "Selected:
(none)")
)
);
@@ -30,19 +31,23 @@
{
id = UI::UserInput();

- any item = UI::QueryWidget (`tree, `CurrentItem);
+ if (id == `sel)
+ UI::ChangeWidget( `id( `tree ), `CurrentItem, "Value 1"
);

- UI::ChangeWidget( `id( `label ), `Value, sformat( "%1", item )
);
+ else {
+ any item = UI::QueryWidget (`tree, `CurrentItem);

+ UI::ChangeWidget( `id( `label ), `Value, sformat( "%1",
item ) );

- UI::ChangeWidget (`tree, `Items, ( [
- `item( "Option 1:" , true,
+
+ UI::ChangeWidget (`tree, `Items, ( [
+ `item( "Option 1:" , false,
[
`item( "Value 1" , true ),
`item( "Value 2" , true )
] )
]));
-
+ }

} until ( id == `cancel );
UI::CloseDialog();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-gtk-2.21.90/tests/Tree3.ycp
new/yast2-gtk-2.21.91/tests/Tree3.ycp
--- old/yast2-gtk-2.21.90/tests/Tree3.ycp 1970-01-01 01:00:00.000000000
+0100
+++ new/yast2-gtk-2.21.91/tests/Tree3.ycp 2011-02-08 19:29:57.000000000
+0100
@@ -0,0 +1,123 @@
+{
+ // Build a dialog with a tree for directory selection, three
+ // buttons with common values and a label that directly echoes any
+ // selected directory.
+ //
+ // The tree in this example uses the `notify option that makes
+ // UI::UserInput() return immediately as soon as the user selects a
+ // tree item rather than the default behaviour which waits for the
+ // user to activate a button.
+
+ UI::OpenDialog(
+ `MinWidth( 50,
+ `VBox(
+ `Tree(`id(`dest_dir),
+ `opt(`notify),
+ "Select destination directory:",
+ [
+ `item( "/" , true,
+ [
+ `item( "etc",
+ [
+ `item("opt"),
+ `item("SuSEconfig"),
+ `item("X11")
+ ]
+ ),
+ `item( "usr", false,
+ [
+ "bin",
+ "lib",
+ `item("share",
+ [
+ "man",
+ "info",
+ "emacs"
+ ]
+ ),
+ `item(
`id(`usr_local), "local" ),
+ `item("X11R6",
+ [
+ "bin",
+ "lib",
+ "share",
+ "man",
+ "etc"
+ ]
+ )
+ ]
+ ),
+ `item( `id(`opt), "opt",
true,
+ [
+ "kde",
+ "netscape",
+ "Office51"
+ ]
+ ),
+ `item("home"),
+ "work",
+ `item( "<other>")
+ ]
+ )
+ ] ),
+ `HBox(
+ `PushButton(`id(`sel_opt),
`opt(`hstretch), "/&opt" ),
+ `PushButton(`id(`sel_usr),
`opt(`hstretch), "/&usr" ),
+ `PushButton(`id(`sel_usr_local),
`opt(`hstretch), "/usr/&local" )
+ ),
+ `HBox(
+ `HWeight( 2, `Label("Current Item:")
),
+ `HWeight( 5, `Label(`id(`echoItem),
`opt(`outputField, `hstretch), "") )
+ ),
+ `HBox(
+ `HWeight( 2, `Label("Current
Branch:") ),
+ `HWeight( 5, `Label(`id(`echoBranch),
`opt(`outputField, `hstretch), "") )
+ ),
+ `HBox(
+ `HWeight( 2, `Label("Current Path:")
),
+ `HWeight( 5, `Label(`id(`echoPath),
`opt(`outputField, `hstretch), "") )
+ ),
+ `PushButton(`id(`ok), `opt(`default, `icon
("ok")), "&OK")
+ )
+ )
+ );
+
+ any id = nil;
+
+ repeat
+ {
+ id = UI::UserInput();
+
+ if ( id == `sel_usr) UI::ChangeWidget( `id(
`dest_dir ), `CurrentItem, "usr" );
+ else if ( id == `sel_usr_local) UI::ChangeWidget( `id(
`dest_dir ), `CurrentItem, `usr_local );
+ else if ( id == `sel_opt) UI::ChangeWidget( `id(
`dest_dir ), `CurrentItem, `opt );
+ else if ( id == `dest_dir)
+ {
+ any current_dir = UI::QueryWidget(`dest_dir, `CurrentItem );
+
+ if ( current_dir != nil )
+ UI::ChangeWidget( `id( `echoItem ), `Value, sformat( "%1",
current_dir ) );
+
+ list<string> current_branch = (list<string>)
UI::QueryWidget(`dest_dir, `CurrentBranch );
+
+ if ( current_branch != nil )
+ {
+ UI::ChangeWidget(`echoBranch, `Value, sformat( "%1",
current_branch) );
+
+ string current_path = mergestring( current_branch, "/" );
+ if ( size( current_path ) > 2 )
+ // Remove duplicate "/" at start
+ current_path = substring( current_path, 1, size(
current_path )-1 );
+
+ UI::ChangeWidget(`echoPath, `Value, sformat( "%1",
current_path ) );
+ }
+ }
+
+ } until ( id == `ok );
+
+
+ // Close the dialog.
+ // Remember to read values from the dialog's widgets BEFORE closing it!
+ UI::CloseDialog();
+
+}


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



Remember to have fun...

--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread