Hello community, here is the log from the commit of package libyui-gtk for openSUSE:Factory checked in at 2014-02-25 07:33:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libyui-gtk (Old) and /work/SRC/openSUSE:Factory/.libyui-gtk.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "libyui-gtk" Changes: -------- --- /work/SRC/openSUSE:Factory/libyui-gtk/libyui-gtk.changes 2014-01-09 17:24:47.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.libyui-gtk.new/libyui-gtk.changes 2014-02-25 07:33:35.000000000 +0100 @@ -1,0 +2,10 @@ +Wed Feb 19 20:58:13 CET 2014 - anaselli@linux.it + +- Added seconds to YTimeField as for Qt +- Fixed BusyCursor +- Fixed YTree item selection during items population, + old implementation ignored selected items. +- Aligned dialog title behavior to QT +- 2.44.1 + +------------------------------------------------------------------- Old: ---- libyui-gtk-2.44.0.tar.bz2 New: ---- libyui-gtk-2.44.1.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libyui-gtk-doc.spec ++++++ --- /var/tmp/diff_new_pack.LaVbEO/_old 2014-02-25 07:33:35.000000000 +0100 +++ /var/tmp/diff_new_pack.LaVbEO/_new 2014-02-25 07:33:35.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package libyui-gtk-doc # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: libyui-gtk-doc -Version: 2.44.0 +Version: 2.44.1 Release: 0 Source: libyui-gtk-%{version}.tar.bz2 ++++++ libyui-gtk.spec ++++++ --- /var/tmp/diff_new_pack.LaVbEO/_old 2014-02-25 07:33:35.000000000 +0100 +++ /var/tmp/diff_new_pack.LaVbEO/_new 2014-02-25 07:33:35.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package libyui-gtk # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: libyui-gtk -Version: 2.44.0 +Version: 2.44.1 Release: 0 Source: libyui-gtk-%{version}.tar.bz2 ++++++ libyui-gtk-2.44.0.tar.bz2 -> libyui-gtk-2.44.1.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-gtk-2.44.0/CMakeLists.txt new/libyui-gtk-2.44.1/CMakeLists.txt --- old/libyui-gtk-2.44.0/CMakeLists.txt 2014-02-25 07:33:36.000000000 +0100 +++ new/libyui-gtk-2.44.1/CMakeLists.txt 2014-02-25 07:33:36.000000000 +0100 @@ -1 +1 @@ -symbolic link to /usr/share/libyui/buildtools/CMakeLists.common +symbolic link to ../libyui-master/buildtools/CMakeLists.common diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-gtk-2.44.0/ChangeLog new/libyui-gtk-2.44.1/ChangeLog --- old/libyui-gtk-2.44.0/ChangeLog 2013-12-05 18:54:08.000000000 +0100 +++ new/libyui-gtk-2.44.1/ChangeLog 2014-02-24 14:55:54.000000000 +0100 @@ -1,4 +1,14 @@ ------------------------------------------------------------------- +Wed Feb 19 20:58:13 CET 2014 - anaselli@linux.it + +- Added seconds to YTimeField as for Qt +- Fixed BusyCursor +- Fixed YTree item selection during items population, + old implementation ignored selected items. +- Aligned dialog title behavior to QT +- 2.44.1 + +------------------------------------------------------------------- Thu Dec 5 16:36:33 UTC 2013 - mvidner@suse.com - adjusted to libyui so version 6 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-gtk-2.44.0/VERSION.cmake new/libyui-gtk-2.44.1/VERSION.cmake --- old/libyui-gtk-2.44.0/VERSION.cmake 2013-12-05 18:54:08.000000000 +0100 +++ new/libyui-gtk-2.44.1/VERSION.cmake 2014-02-24 14:55:54.000000000 +0100 @@ -1,6 +1,6 @@ SET( VERSION_MAJOR "2" ) SET( VERSION_MINOR "44" ) -SET( VERSION_PATCH "0" ) +SET( VERSION_PATCH "1" ) SET( VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}${VERSION_SHA1}" ) ##### This is need for the libyui core, ONLY. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-gtk-2.44.0/libyui-gtk.spec.in new/libyui-gtk-2.44.1/libyui-gtk.spec.in --- old/libyui-gtk-2.44.0/libyui-gtk.spec.in 2013-12-05 18:54:08.000000000 +0100 +++ new/libyui-gtk-2.44.1/libyui-gtk.spec.in 2014-02-24 11:39:44.000000000 +0100 @@ -1,7 +1,7 @@ # -# spec file for package @PROJECTNAME@ (Version @VERSION@) +# spec file for package @PROJECTNAME@ # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -11,44 +11,42 @@ # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# + # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild -Name: @PROJECTNAME@ -Version: @VERSION@ -Release: 0 -License: LGPL-2.1 or LGPL-3.0 -Source: @PROJECTNAME@-%{version}.tar.bz2 -Group: System/Libraries + +Name: @PROJECTNAME@ +Version: @VERSION@ +Release: 0 +Source: @PROJECTNAME@-%{version}.tar.bz2 BuildRequires: boost-devel BuildRequires: cmake >= 2.8 BuildRequires: gcc-c++ -BuildRequires: pkg-config -BuildRequires: libyui-devel >= 3.0.4 BuildRequires: gtk3-devel -Provides: yui_backend = @SONAME_MAJOR@ - +BuildRequires: libyui-devel >= 3.0.4 +BuildRequires: pkg-config +Provides: yui_backend = @SONAME_MAJOR@ -URL: @URL@ -Summary: @SUMMARY@ +Url: @URL@ +Summary: @SUMMARY@ +License: LGPL-2.1 or LGPL-3.0 +Group: System/Libraries %description @DESCRIPTION@ %package -n @PROJECTNAME@@SONAME_MAJOR@ -Group: System/Libraries - -Requires: lib@BASELIB@@SONAME_MAJOR@ -Provides: lib@BASELIB@-gtk = %{version} -Provides: yast2-gtk = %{version} -Obsoletes: yast2-gtk < %{version} - -URL: @URL@ -Summary: @SUMMARY@ +Requires: lib@BASELIB@@SONAME_MAJOR@ +Provides: lib@BASELIB@-gtk = %{version} +Provides: yast2-gtk = %{version} +Obsoletes: yast2-gtk < %{version} + +Url: @URL@ +Summary: @SUMMARY@ +Group: System/Libraries %description -n @PROJECTNAME@@SONAME_MAJOR@ @DESCRIPTION@ @@ -56,15 +54,14 @@ %package devel -Group: Development/Languages/C and C++ - -Requires: @PROJECTNAME@@SONAME_MAJOR@ = %{version} -Requires: glibc-devel -Requires: libstdc++-devel -Requires: boost-devel - -URL: @URL@ -Summary: @PROJECTNAME_UC@ header files +Requires: boost-devel +Requires: glibc-devel +Requires: libstdc++-devel +Requires: @PROJECTNAME@@SONAME_MAJOR@ = %{version} + +Url: @URL@ +Summary: @PROJECTNAME_UC@ header files +Group: Development/Languages/C and C++ %description devel @DESCRIPTION@ @@ -76,7 +73,6 @@ %prep %setup -q -n @PROJECTNAME@-%{version} - %build export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG" @@ -103,7 +99,6 @@ make %{?jobs:-j%jobs} - %install cd build make install DESTDIR="$RPM_BUILD_ROOT" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-gtk-2.44.0/src/YGDialog.cc new/libyui-gtk-2.44.1/src/YGDialog.cc --- old/libyui-gtk-2.44.0/src/YGDialog.cc 2013-12-05 18:54:08.000000000 +0100 +++ new/libyui-gtk-2.44.1/src/YGDialog.cc 2014-02-24 14:55:54.000000000 +0100 @@ -81,10 +81,17 @@ parent = GTK_WINDOW (yglast->m_window->getWidget()); } GtkWindow *window = GTK_WINDOW (m_widget); + // to be back compatible + std::string dialogTitle = "YaSt"; +#ifdef LIBYUI_VERSION_NUM + #if LIBYUI_VERSION_AT_LEAST(2,42,3) + dialogTitle = YUI::app()->applicationTitle(); + #endif +#endif if (parent) { // if there is a parent, this would be a dialog - gtk_window_set_title (window, ""); + gtk_window_set_title (window, dialogTitle.c_str()); gtk_window_set_modal (window, TRUE); gtk_window_set_transient_for (window, parent); gtk_window_set_type_hint (window, GDK_WINDOW_TYPE_HINT_DIALOG); @@ -93,21 +100,15 @@ atk_object_set_role (peer, ATK_ROLE_DIALOG); } else { + gtk_window_set_title (window, dialogTitle.c_str()); #ifdef LIBYUI_VERSION_NUM #if LIBYUI_VERSION_AT_LEAST(2,42,3) - gtk_window_set_title (window, YUI::app()->applicationTitle().c_str()); GdkPixbuf *pixbuf = YGUtils::loadPixbuf (YUI::app()->applicationIcon()); if (pixbuf) { // default window icon gtk_window_set_default_icon (pixbuf); g_object_unref (G_OBJECT (pixbuf)); } - #else - // to be back compatible - gtk_window_set_title (window, "YaST"); #endif -#else - // to be back compatible - gtk_window_set_title (window, "YaST"); #endif if (YGUI::ui()->unsetBorder()) gtk_window_set_decorated (window, FALSE); @@ -181,8 +182,11 @@ m_busyCursor = gdk_cursor_new_for_display (display, GDK_WATCH); g_object_ref (G_OBJECT (m_busyCursor)); } - if (!m_isBusy) - gdk_window_set_cursor (gtk_widget_get_window(m_widget), m_busyCursor); + if (!m_isBusy) { + GdkDisplay *display = gtk_widget_get_display (m_widget); + gdk_window_set_cursor (gtk_widget_get_window(m_widget), m_busyCursor); + gdk_display_sync(display); + } m_isBusy = true; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-gtk-2.44.0/src/YGInputField.cc new/libyui-gtk-2.44.1/src/YGInputField.cc --- old/libyui-gtk-2.44.0/src/YGInputField.cc 2013-12-05 18:54:08.000000000 +0100 +++ new/libyui-gtk-2.44.1/src/YGInputField.cc 2014-02-24 14:55:54.000000000 +0100 @@ -98,8 +98,10 @@ YGtkFieldEntry *field = YGTK_FIELD_ENTRY (getWidget()); ygtk_field_entry_add_field (field, ':'); ygtk_field_entry_add_field (field, ':'); + ygtk_field_entry_add_field (field, ':'); ygtk_field_entry_setup_field (field, 0, 2, "0123456789"); ygtk_field_entry_setup_field (field, 1, 2, "0123456789"); + ygtk_field_entry_setup_field (field, 2, 2, "0123456789"); connect (getWidget(), "field-entry-changed", G_CALLBACK (value_changed_cb), this); } @@ -109,22 +111,24 @@ { BlockEvents block (this); if (time.empty()) return; - char hours[3], mins[3]; - sscanf (time.c_str(), "%2s:%2s", hours, mins); + char hours[3], mins[3], secs[3]; + sscanf (time.c_str(), "%2s:%2s:%2s", hours, mins, secs); YGtkFieldEntry *entry = YGTK_FIELD_ENTRY (getWidget()); ygtk_field_entry_set_field_text (entry, 0, hours); ygtk_field_entry_set_field_text (entry, 1, mins); + ygtk_field_entry_set_field_text (entry, 2, secs); } virtual std::string value() { - const gchar *hours, *mins; + const gchar *hours, *mins, *secs; YGtkFieldEntry *entry = YGTK_FIELD_ENTRY (getWidget()); hours = ygtk_field_entry_get_field_text (entry, 0); mins = ygtk_field_entry_get_field_text (entry, 1); + secs = ygtk_field_entry_get_field_text (entry, 2); - gchar *time = g_strdup_printf ("%02d:%02d:00", atoi (hours), atoi (mins)); + gchar *time = g_strdup_printf ("%02d:%02d:%02d", atoi (hours), atoi (mins), atoi (secs)); std::string str (time); g_free (time); return str; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-gtk-2.44.0/src/YGTreeView.cc new/libyui-gtk-2.44.1/src/YGTreeView.cc --- old/libyui-gtk-2.44.0/src/YGTreeView.cc 2013-12-05 18:54:08.000000000 +0100 +++ new/libyui-gtk-2.44.1/src/YGTreeView.cc 2014-02-24 14:55:54.000000000 +0100 @@ -695,7 +695,6 @@ GtkTreeIter iter; addRow (item, &iter, parent); setRowText (&iter, 0, item->iconName(), 1, item->label(), this); -#if 0 // yast2-qt ignores `selected flag if (item->selected()) { if (hasMultiSelection()) setRowMark (&iter, 2, item->selected()); @@ -704,20 +703,19 @@ } if (((YTreeItem *) item)->isOpen()) expand (&iter); -#endif for (YItemConstIterator it = item->childrenBegin(); it != item->childrenEnd(); it++) addNode (*it, &iter); } -#if 0 + void expand (GtkTreeIter *iter) { GtkTreePath *path = gtk_tree_model_get_path (getModel(), iter); gtk_tree_view_expand_row (getView(), path, FALSE); gtk_tree_path_free (path); } - +#if 0 bool isReallyOpen (YTreeItem *item) // are parents open as well? { for (YTreeItem *i = item; i; i = i->parent()) -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org