openSUSE Commits
Threads by month
- ----- 2024 -----
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
November 2010
- 1 participants
- 1023 discussions
Hello community,
here is the log from the commit of package gnome-shell for openSUSE:Factory
checked in at Sat Nov 20 12:30:48 CET 2010.
--------
--- GNOME/gnome-shell/gnome-shell.changes 2010-10-06 16:08:22.000000000 +0200
+++ /mounts/work_src_done/STABLE/gnome-shell/gnome-shell.changes 2010-11-18 10:38:28.000000000 +0100
@@ -1,0 +2,60 @@
+Thu Nov 18 10:35:51 CET 2010 - vuntz(a)opensuse.org
+
+- Update to version 2.91.2:
+ + Use GNOME 3 WM theme by default
+ + Add general keyboard focus support to the Shell Toolkit
+ + Support new notification spec 'action-icons' to turn on icon
+ buttons.
+ + Pay attention to the distance the mouse has moved from the
+ message tray when deciding how quickly to hide the tray
+ + Change magnifier defaults to be full screen
+ + Fix creating many one-shot Clutter materials and compiling many
+ shader programs per frame
+ + Visual tweaks
+ + Bug fixes, including: bgo#593844, bgo#621671, bgo#621880,
+ bgo#625545, bgo#629884, bgo#630546, bgo#630767, bgo#633340,
+ bgo#633418, bgo#633490, bgo#633591, bgo#633668, bgo#633853,
+ bgo#634103.
+ + Build fixes
+ + Updated translations.
+
+-------------------------------------------------------------------
+Thu Oct 28 16:43:17 CEST 2010 - vuntz(a)opensuse.org
+
+- Update to version 2.91.1:
+ + Add native volume-control status icon:
+ - Import gnome-volume-control pulse-audio wrapper code
+ - Add mousewheel support
+ + Message tray:
+ - Fix wobbling during mouse-over animation
+ - Don't show the tray when a status is added then immediately
+ removed
+ - Advertise a 'persistence' notification server capability to
+ allow applications to act different if their notifications
+ won't be lost
+ - Use a "box pointer" when displaying notifications
+ - Bug fixes
+ + Shell Toolkit:
+ - Simplify the API for custom style properties
+ - Support different border radii for different corners
+ + Update cut-and-paste GDM user manager code to newer version
+ that talks to the account service
+ + Find desktop files in /usr/local/share/applications
+ + Visual improvements to menus to match mockups
+ + Add animation when showing menus and status notifications
+ + Fix problem where StDrawingArea was constantly redrawing
+ + Only show starting applications on the current workspace
+ + Misc bug fixes
+ + Build fixes
+ + Bugs fixed: bgo#582653, bgo#583348, bgo#591406, bgo#593887,
+ bgo#598347, bgo#603838, bgo#603992, bgo#611647, bgo#614879,
+ bgo#617917, bgo#620389, bgo#623688, bgo#628169, bgo#629455,
+ bgo#630546, bgo#630866, bgo#630939, bgo#631042, bgo#631193,
+ bgo#631510, bgo#631566, bgo#631722, bgo#631888, bgo#632147,
+ bgo#632151, bgo#632197, bgo#632477, bgo#632500, bgo#632733,
+ bgo#632743, bgo#632868.
+ + Updated translations.
+- Add pkgconfig(libcanberra), pkgconfig(libpulse-mainloop-glib)
+ BuildRequires.
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
gnome-shell-2.91.0.tar.bz2
New:
----
gnome-shell-2.91.2.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ gnome-shell.spec ++++++
--- /var/tmp/diff_new_pack.IeFLFd/_old 2010-11-20 12:30:39.000000000 +0100
+++ /var/tmp/diff_new_pack.IeFLFd/_new 2010-11-20 12:30:39.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package gnome-shell (Version 2.91.0)
+# spec file for package gnome-shell (Version 2.91.2)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -18,7 +18,7 @@
Name: gnome-shell
-Version: 2.91.0
+Version: 2.91.2
Release: 1
License: GPLv2+
Summary: GNOME Shell
@@ -40,8 +40,10 @@
BuildRequires: pkgconfig(gstreamer-0.10)
BuildRequires: pkgconfig(gstreamer-base-0.10)
BuildRequires: pkgconfig(gtk+-3.0)
+BuildRequires: pkgconfig(libcanberra)
BuildRequires: pkgconfig(libcroco-0.6)
BuildRequires: pkgconfig(libgnome-menu)
+BuildRequires: pkgconfig(libpulse-mainloop-glib)
BuildRequires: pkgconfig(libstartup-notification-1.0)
BuildRequires: pkgconfig(mutter-plugins)
BuildRequires: pkgconfig(xfixes)
++++++ gnome-shell-2.91.0.tar.bz2 -> gnome-shell-2.91.2.tar.bz2 ++++++
++++ 27733 lines of diff (skipped)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package polkit-qt-1 for openSUSE:Factory
checked in at Sat Nov 20 12:30:42 CET 2010.
--------
--- KDE/polkit-qt-1/polkit-qt-1.changes 2010-07-17 11:03:04.000000000 +0200
+++ /mounts/work_src_done/STABLE/polkit-qt-1/polkit-qt-1.changes 2010-10-26 18:54:34.000000000 +0200
@@ -1,0 +2,5 @@
+Tue Oct 26 16:54:19 UTC 2010 - tittiatcoke(a)gmail.com
+
+- update to 0.98.1
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
polkit-qt-1-0.96.1.tar.bz2
r1150958.diff
New:
----
polkit-qt-1-0.98.1.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ polkit-qt-1.spec ++++++
--- /var/tmp/diff_new_pack.YLOpaT/_old 2010-11-20 12:30:31.000000000 +0100
+++ /var/tmp/diff_new_pack.YLOpaT/_new 2010-11-20 12:30:31.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package polkit-qt-1 (Version 0.96.1)
+# spec file for package polkit-qt-1 (Version 0.98.1)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -24,14 +24,13 @@
License: LGPLv2.1+
Group: Development/Libraries/KDE
Summary: PolicyKit Library Qt Bindings
-Version: 0.96.1
+Version: 0.98.1
Release: 1
Url: http://api.kde.org/kdesupport-api/kdesupport-apidocs/polkit-qt/html/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/
Source0: %{name}-%{version}.tar.bz2
Source99: baselibs.conf
-Patch0: r1150958.diff
%description
Polkit-qt-1 aims to make it easy for Qt developers to take advantage of
@@ -91,7 +90,6 @@
%prep
%setup
-%patch0
%build
%cmake_kde4 -d build
++++++ polkit-qt-1-0.96.1.tar.bz2 -> polkit-qt-1-0.98.1.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-qt-1-0.96.1/.gitignore new/polkit-qt-1-0.98.1/.gitignore
--- old/polkit-qt-1-0.96.1/.gitignore 1970-01-01 01:00:00.000000000 +0100
+++ new/polkit-qt-1-0.98.1/.gitignore 2010-10-26 18:52:00.000000000 +0200
@@ -0,0 +1,22 @@
+.*
+*~
+build/
+apidocs/
+Doxyfile
+*.patch
+
+# CMake
+CMakeCache.txt
+CMakeFiles
+cmake_install.cmake
+CMakeLists.txt.user
+CMakeLists.txt.user.*
+
+# QtCreator
+qtcreator-build
+
+# Misc
+*.moc
+moc_*
+ui_*
+Makefile
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-qt-1-0.96.1/CMakeLists.txt new/polkit-qt-1-0.98.1/CMakeLists.txt
--- old/polkit-qt-1-0.96.1/CMakeLists.txt 2010-07-03 12:17:13.000000000 +0200
+++ new/polkit-qt-1-0.98.1/CMakeLists.txt 2010-10-26 18:52:00.000000000 +0200
@@ -33,7 +33,7 @@
)
set(CMAKE_MAJOR_POLKITQT-1_VERSION 0 CACHE INT "PolkitQt-1's major version number" FORCE)
- set(CMAKE_MINOR_POLKITQT-1_VERSION 96 CACHE INT "PolkitQt-1's minor version number" FORCE)
+ set(CMAKE_MINOR_POLKITQT-1_VERSION 98 CACHE INT "PolkitQt-1's minor version number" FORCE)
set(CMAKE_RELEASE_POLKITQT-1_VERSION 1 CACHE INT "PolkitQt-1's release version number" FORCE)
set(CMAKE_POLKITQT-1_VERSION_STRING
"${CMAKE_MAJOR_POLKITQT-1_VERSION}.${CMAKE_MINOR_POLKITQT-1_VERSION}.${CMAKE_RELEASE_POLKITQT-1_VERSION}")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-qt-1-0.96.1/agent/listeneradapter.cpp new/polkit-qt-1-0.98.1/agent/listeneradapter.cpp
--- old/polkit-qt-1-0.96.1/agent/listeneradapter.cpp 2010-07-03 12:17:13.000000000 +0200
+++ new/polkit-qt-1-0.98.1/agent/listeneradapter.cpp 2010-10-26 18:52:00.000000000 +0200
@@ -84,15 +84,13 @@
{
qDebug() << "polkit_qt_listener_initiate_authentication callback for " << listener;
- QList<PolkitQt1::Identity *> idents;
- PolkitQt1::Details *dets;
+ PolkitQt1::Identity::List idents;
+ PolkitQt1::Details dets(details);
Listener *list = findListener(listener);
for (GList *identity = g_list_first(identities); identity != NULL; identity = g_list_next(identity))
- idents.append(new PolkitQt1::Identity((PolkitIdentity *)identity->data));
-
- dets = new PolkitQt1::Details(details);
+ idents.append(PolkitQt1::Identity((PolkitIdentity *)identity->data));
list->initiateAuthentication(QString::fromUtf8(action_id),
QString::fromUtf8(message),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-qt-1-0.96.1/agent/polkitqt1-agent-listener.cpp new/polkit-qt-1-0.98.1/agent/polkitqt1-agent-listener.cpp
--- old/polkit-qt-1-0.96.1/agent/polkitqt1-agent-listener.cpp 2010-07-03 12:17:13.000000000 +0200
+++ new/polkit-qt-1-0.98.1/agent/polkitqt1-agent-listener.cpp 2010-10-26 18:52:00.000000000 +0200
@@ -39,6 +39,7 @@
{
public:
PolkitAgentListener *listener;
+ void *registeredHandle;
};
Listener::Listener(QObject *parent)
@@ -66,23 +67,34 @@
qDebug("Destroying listener");
ListenerAdapter::instance()->removeListener(this);
- g_object_unref(d->listener);
+ if (d->registeredHandle)
+ polkit_agent_listener_unregister(d->registeredHandle);
+ if (d->listener != NULL)
+ g_object_unref(d->listener);
}
-bool Listener::registerListener(PolkitQt1::Subject *subject, const QString &objectPath)
+bool Listener::registerListener(const PolkitQt1::Subject &subject, const QString &objectPath)
{
GError *error = NULL;
- bool r = polkit_agent_register_listener(d->listener,
- subject->subject(),
+ d->registeredHandle = polkit_agent_listener_register(d->listener,
+ POLKIT_AGENT_REGISTER_FLAGS_NONE,
+ subject.subject(),
objectPath.toAscii().data(),
+ NULL,
&error);
+
if (error != NULL) {
qWarning() << QString("Cannot register authentication agent: %1").arg(error->message);
g_error_free(error);
return false;
}
- return r;
+ if (d->registeredHandle == NULL)
+ {
+ qWarning() << QString("Cannot register authentication agent!");
+ return false;
+ }
+ return true;
}
const PolkitAgentListener *Listener::listener()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-qt-1-0.96.1/agent/polkitqt1-agent-listener.h new/polkit-qt-1-0.98.1/agent/polkitqt1-agent-listener.h
--- old/polkit-qt-1-0.96.1/agent/polkitqt1-agent-listener.h 2010-07-03 12:17:13.000000000 +0200
+++ new/polkit-qt-1-0.98.1/agent/polkitqt1-agent-listener.h 2010-10-26 18:52:00.000000000 +0200
@@ -93,7 +93,7 @@
* \param objectPath DBus object path
* \return \c True if the polkitqt1-agent-listener.has been registered, \c False otherwise
*/
- bool registerListener(PolkitQt1::Subject *subject, const QString &objectPath);
+ bool registerListener(const PolkitQt1::Subject &subject, const QString &objectPath);
/**
* \brief Returns pointer to the PolkitAgentListener.
@@ -126,9 +126,9 @@
virtual void initiateAuthentication(const QString &actionId,
const QString &message,
const QString &iconName,
- PolkitQt1::Details *details,
+ const PolkitQt1::Details &details,
const QString &cookie,
- QList<PolkitQt1::Identity *> identities,
+ const PolkitQt1::Identity::List &identities,
AsyncResult *result) = 0;
/**
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-qt-1-0.96.1/agent/polkitqt1-agent-session.cpp new/polkit-qt-1-0.98.1/agent/polkitqt1-agent-session.cpp
--- old/polkit-qt-1-0.96.1/agent/polkitqt1-agent-session.cpp 2010-07-03 12:17:13.000000000 +0200
+++ new/polkit-qt-1-0.98.1/agent/polkitqt1-agent-session.cpp 2010-10-26 18:52:00.000000000 +0200
@@ -49,12 +49,12 @@
g_object_unref(polkitAgentSession);
}
-Session::Session(PolkitQt1::Identity *identity, const QString &cookie, AsyncResult *result, QObject *parent)
+Session::Session(const PolkitQt1::Identity &identity, const QString &cookie, AsyncResult *result, QObject *parent)
: QObject(parent)
, d(new Private)
{
d->result = result;
- d->polkitAgentSession = polkit_agent_session_new(identity->identity(), cookie.toUtf8().data());
+ d->polkitAgentSession = polkit_agent_session_new(identity.identity(), cookie.toUtf8().data());
g_signal_connect(G_OBJECT(d->polkitAgentSession), "completed", G_CALLBACK(Private::completed), this);
g_signal_connect(G_OBJECT(d->polkitAgentSession), "request", G_CALLBACK(Private::request), this);
g_signal_connect(G_OBJECT(d->polkitAgentSession), "show-error", G_CALLBACK(Private::showError), this);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-qt-1-0.96.1/agent/polkitqt1-agent-session.h new/polkit-qt-1-0.98.1/agent/polkitqt1-agent-session.h
--- old/polkit-qt-1-0.96.1/agent/polkitqt1-agent-session.h 2010-07-03 12:17:13.000000000 +0200
+++ new/polkit-qt-1-0.98.1/agent/polkitqt1-agent-session.h 2010-10-26 18:52:00.000000000 +0200
@@ -90,7 +90,7 @@
* \param result Result of the authentication action. Must be finished using complete() method.
* \param parent
*/
- Session(PolkitQt1::Identity *identity, const QString &cookie, AsyncResult *result = 0, QObject *parent = 0);
+ Session(const PolkitQt1::Identity& identity, const QString &cookie, AsyncResult *result = 0, QObject *parent = 0);
/**
* Create a new authentication session from PolkitAgentSession object
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-qt-1-0.96.1/core/polkitqt1-actiondescription.cpp new/polkit-qt-1-0.98.1/core/polkitqt1-actiondescription.cpp
--- old/polkit-qt-1-0.96.1/core/polkitqt1-actiondescription.cpp 2010-07-03 12:17:13.000000000 +0200
+++ new/polkit-qt-1-0.98.1/core/polkitqt1-actiondescription.cpp 2010-10-26 18:52:00.000000000 +0200
@@ -1,6 +1,7 @@
/*
* This file is part of the Polkit-qt project
* Copyright (C) 2009 Jaroslav Reznik <jreznik(a)redhat.com>
+ * Copyright (C) 2010 Dario Freddi <drf(a)kde.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -27,10 +28,24 @@
namespace PolkitQt1
{
-class ActionDescription::Private
+class ActionDescription::Data : public QSharedData
{
public:
- Private() {}
+ Data() {}
+ Data(const Data& other)
+ : QSharedData(other)
+ , actionId(other.actionId)
+ , description(other.description)
+ , message(other.message)
+ , vendorName(other.vendorName)
+ , vendorUrl(other.vendorUrl)
+ , iconName(other.iconName)
+ , implicitAny(other.implicitAny)
+ , implicitInactive(other.implicitInactive)
+ , implicitActive(other.implicitActive)
+ {
+ }
+ virtual ~Data() {}
QString actionId;
QString description;
@@ -44,8 +59,14 @@
ActionDescription::ImplicitAuthorization implicitActive;
};
+ActionDescription::ActionDescription()
+ : d(new Data)
+{
+
+}
+
ActionDescription::ActionDescription(PolkitActionDescription *polkitActionDescription)
- : d(new Private)
+ : d(new Data)
{
g_type_init();
@@ -64,9 +85,19 @@
polkitActionDescription));
}
+ActionDescription::ActionDescription(const PolkitQt1::ActionDescription& other)
+ : d(other.d)
+{
+}
+
+ActionDescription& ActionDescription::operator=(const PolkitQt1::ActionDescription& other)
+{
+ d = other.d;
+ return *this;
+}
+
ActionDescription::~ActionDescription()
{
- delete d;
}
QString ActionDescription::actionId() const
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-qt-1-0.96.1/core/polkitqt1-actiondescription.h new/polkit-qt-1-0.98.1/core/polkitqt1-actiondescription.h
--- old/polkit-qt-1-0.96.1/core/polkitqt1-actiondescription.h 2010-07-03 12:17:13.000000000 +0200
+++ new/polkit-qt-1-0.98.1/core/polkitqt1-actiondescription.h 2010-10-26 18:52:00.000000000 +0200
@@ -1,6 +1,7 @@
/*
* This file is part of the Polkit-qt project
* Copyright (C) 2009 Jaroslav Reznik <jreznik(a)redhat.com>
+ * Copyright (C) 2010 Dario Freddi <drf(a)kde.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -25,6 +26,7 @@
#include <QtCore/QList>
#include <QtCore/QMetaType>
+#include <QtCore/QSharedData>
typedef struct _PolkitActionDescription PolkitActionDescription;
@@ -33,6 +35,7 @@
/**
* \class ActionDescription polkitqt1-actiondescription.h ActionDescription
* \author Jaroslav Reznik <jreznik(a)redhat.com>
+ * \author Dario Freddi <drf(a)kde.org>
*
* \brief Class used to encapsulate a registered action.
*/
@@ -56,8 +59,9 @@
Authorized = 5
};
- typedef QList<ActionDescription *> List;
+ typedef QList< ActionDescription > List;
+ ActionDescription();
/**
* \brief Constructor of ActionDescription object from PolkitActionDescription
*
@@ -65,9 +69,12 @@
*
* \param actionDesciption PolkitActionDescription
*/
- ActionDescription(PolkitActionDescription *actionDescription);
+ explicit ActionDescription(PolkitActionDescription *actionDescription);
+ ActionDescription(const ActionDescription &other);
~ActionDescription();
+ ActionDescription &operator=(const ActionDescription &other);
+
/**
* \brief Gets the action id for ActionDescription
*
@@ -132,8 +139,8 @@
ActionDescription::ImplicitAuthorization implicitActive() const;
private:
- class Private;
- Private * const d;
+ class Data;
+ QSharedDataPointer< Data > d;
};
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-qt-1-0.96.1/core/polkitqt1-authority.cpp new/polkit-qt-1-0.98.1/core/polkitqt1-authority.cpp
--- old/polkit-qt-1-0.96.1/core/polkitqt1-authority.cpp 2010-07-03 12:17:13.000000000 +0200
+++ new/polkit-qt-1-0.98.1/core/polkitqt1-authority.cpp 2010-10-26 18:52:00.000000000 +0200
@@ -67,7 +67,7 @@
ActionDescription::List result;
for (GList *glist2 = glist; glist2; glist2 = g_list_next(glist2)) {
gpointer i = glist2->data;
- result.append(new ActionDescription(static_cast<PolkitActionDescription *>(i)));
+ result.append(ActionDescription(static_cast<PolkitActionDescription *>(i)));
g_object_unref(i);
}
@@ -177,12 +177,17 @@
m_revokeTemporaryAuthorizationsCancellable = g_cancellable_new();
m_revokeTemporaryAuthorizationCancellable = g_cancellable_new();
+ GError *gerror = NULL;
if (pkAuthority == NULL) {
- pkAuthority = polkit_authority_get();
+ pkAuthority = polkit_authority_get_sync(NULL, &gerror);
+ if (gerror != NULL) {
+ setError(E_GetAuthority, gerror->message);
+ g_error_free(gerror);
+ return;
+ }
}
if (pkAuthority == NULL) {
- (E_GetAuthority);
return;
}
@@ -286,7 +291,7 @@
return d->pkAuthority;
}
-Authority::Result Authority::checkAuthorizationSync(const QString &actionId, Subject *subject, AuthorizationFlags flags)
+Authority::Result Authority::checkAuthorizationSync(const QString &actionId, const Subject &subject, AuthorizationFlags flags)
{
PolkitAuthorizationResult *pk_result;
GError *error = NULL;
@@ -295,13 +300,13 @@
return Unknown;
}
- if (subject == NULL) {
+ if (!subject.isValid()) {
d->setError(E_WrongSubject);
return Unknown;
}
pk_result = polkit_authority_check_authorization_sync(d->pkAuthority,
- subject->subject(),
+ subject.subject(),
actionId.toAscii().data(),
NULL,
(PolkitCheckAuthorizationFlags)(int)flags,
@@ -324,19 +329,19 @@
}
}
-void Authority::checkAuthorization(const QString &actionId, Subject *subject, AuthorizationFlags flags)
+void Authority::checkAuthorization(const QString &actionId, const Subject &subject, AuthorizationFlags flags)
{
if (Authority::instance()->hasError()) {
return;
}
- if (subject == NULL) {
+ if (!subject.isValid()) {
d->setError(E_WrongSubject);
return;
}
polkit_authority_check_authorization(d->pkAuthority,
- subject->subject(),
+ subject.subject(),
actionId.toAscii().data(),
NULL,
(PolkitCheckAuthorizationFlags)(int)flags,
@@ -430,7 +435,7 @@
g_cancellable_cancel(d->m_enumerateActionsCancellable);
}
-bool Authority::registerAuthenticationAgentSync(Subject *subject, const QString &locale, const QString &objectPath)
+bool Authority::registerAuthenticationAgentSync(const Subject &subject, const QString &locale, const QString &objectPath)
{
if (Authority::instance()->hasError()) {
return false;
@@ -439,13 +444,13 @@
gboolean result;
GError *error = NULL;
- if (!subject) {
+ if (!subject.isValid()) {
d->setError(E_WrongSubject);
return false;
}
result = polkit_authority_register_authentication_agent_sync(d->pkAuthority,
- subject->subject(), locale.toAscii().data(),
+ subject.subject(), locale.toAscii().data(),
objectPath.toAscii().data(), NULL, &error);
if (error) {
@@ -457,19 +462,19 @@
return result;
}
-void Authority::registerAuthenticationAgent(Subject *subject, const QString &locale, const QString &objectPath)
+void Authority::registerAuthenticationAgent(const Subject &subject, const QString &locale, const QString &objectPath)
{
if (Authority::instance()->hasError()) {
return;
}
- if (!subject) {
+ if (!subject.isValid()) {
d->setError(E_WrongSubject);
return;
}
polkit_authority_register_authentication_agent(d->pkAuthority,
- subject->subject(),
+ subject.subject(),
locale.toAscii().data(),
objectPath.toAscii().data(),
d->m_registerAuthenticationAgentCancellable,
@@ -500,12 +505,12 @@
g_cancellable_cancel(d->m_registerAuthenticationAgentCancellable);
}
-bool Authority::unregisterAuthenticationAgentSync(Subject *subject, const QString &objectPath)
+bool Authority::unregisterAuthenticationAgentSync(const Subject &subject, const QString &objectPath)
{
if (d->pkAuthority)
return false;
- if (!subject) {
+ if (!subject.isValid()) {
d->setError(E_WrongSubject);
return false;
}
@@ -513,7 +518,7 @@
GError *error = NULL;
bool result = polkit_authority_unregister_authentication_agent_sync(d->pkAuthority,
- subject->subject(),
+ subject.subject(),
objectPath.toUtf8().data(),
NULL,
&error);
@@ -527,18 +532,18 @@
return result;
}
-void Authority::unregisterAuthenticationAgent(Subject *subject, const QString &objectPath)
+void Authority::unregisterAuthenticationAgent(const Subject &subject, const QString &objectPath)
{
if (Authority::instance()->hasError())
return;
- if (!subject) {
+ if (!subject.isValid()) {
d->setError(E_WrongSubject);
return;
}
polkit_authority_unregister_authentication_agent(d->pkAuthority,
- subject->subject(),
+ subject.subject(),
objectPath.toUtf8().data(),
d->m_unregisterAuthenticationAgentCancellable,
d->unregisterAuthenticationAgentCallback,
@@ -568,12 +573,12 @@
g_cancellable_cancel(d->m_unregisterAuthenticationAgentCancellable);
}
-bool Authority::authenticationAgentResponseSync(const QString &cookie, Identity *identity)
+bool Authority::authenticationAgentResponseSync(const QString &cookie, const Identity &identity)
{
if (Authority::instance()->hasError())
return false;
- if (cookie.isEmpty() || !identity) {
+ if (cookie.isEmpty() || !identity.isValid()) {
d->setError(E_CookieOrIdentityEmpty);
return false;
}
@@ -582,7 +587,7 @@
bool result = polkit_authority_authentication_agent_response_sync(d->pkAuthority,
cookie.toUtf8().data(),
- identity->identity(),
+ identity.identity(),
NULL,
&error);
if (error != NULL) {
@@ -594,19 +599,19 @@
return result;
}
-void Authority::authenticationAgentResponse(const QString &cookie, Identity *identity)
+void Authority::authenticationAgentResponse(const QString &cookie, const Identity &identity)
{
if (Authority::instance()->hasError())
return;
- if (cookie.isEmpty() || !identity) {
+ if (cookie.isEmpty() || !identity.isValid()) {
d->setError(E_CookieOrIdentityEmpty);
return;
}
polkit_authority_authentication_agent_response(d->pkAuthority,
cookie.toUtf8().data(),
- identity->identity(),
+ identity.identity(),
d->m_authenticationAgentResponseCancellable,
d->authenticationAgentResponseCallback,
this);
@@ -635,13 +640,13 @@
g_cancellable_cancel(d->m_authenticationAgentResponseCancellable);
}
-QList<TemporaryAuthorization *> Authority::enumerateTemporaryAuthorizationsSync(Subject *subject)
+TemporaryAuthorization::List Authority::enumerateTemporaryAuthorizationsSync(const Subject &subject)
{
- QList<TemporaryAuthorization *> result;
+ TemporaryAuthorization::List result;
GError *error = NULL;
GList *glist = polkit_authority_enumerate_temporary_authorizations_sync(d->pkAuthority,
- subject->subject(),
+ subject.subject(),
NULL,
&error);
if (error != NULL) {
@@ -652,7 +657,7 @@
GList *glist2;
for (glist2 = glist; glist2 != NULL; glist2 = g_list_next(glist2)) {
- result.append(new TemporaryAuthorization((PolkitTemporaryAuthorization *) glist2->data));
+ result.append(TemporaryAuthorization((PolkitTemporaryAuthorization *) glist2->data));
g_object_unref(glist2->data);
}
@@ -676,10 +681,10 @@
g_error_free(error);
return;
}
- QList<TemporaryAuthorization *> res;
+ TemporaryAuthorization::List res;
GList *glist2;
for (glist2 = glist; glist2 != NULL; glist2 = g_list_next(glist2)) {
- res.append(new TemporaryAuthorization((PolkitTemporaryAuthorization *) glist2->data));
+ res.append(TemporaryAuthorization((PolkitTemporaryAuthorization *) glist2->data));
g_object_unref(glist2->data);
}
@@ -694,7 +699,7 @@
g_cancellable_cancel(d->m_enumerateTemporaryAuthorizationsCancellable);
}
-bool Authority::revokeTemporaryAuthorizationsSync(Subject *subject)
+bool Authority::revokeTemporaryAuthorizationsSync(const Subject &subject)
{
bool result;
if (Authority::instance()->hasError())
@@ -702,7 +707,7 @@
GError *error = NULL;
result = polkit_authority_revoke_temporary_authorizations_sync(d->pkAuthority,
- subject->subject(),
+ subject.subject(),
NULL,
&error);
if (error != NULL) {
@@ -713,13 +718,13 @@
return result;
}
-void Authority::revokeTemporaryAuthorizations(Subject *subject)
+void Authority::revokeTemporaryAuthorizations(const Subject &subject)
{
if (Authority::instance()->hasError())
return;
polkit_authority_revoke_temporary_authorizations(d->pkAuthority,
- subject->subject(),
+ subject.subject(),
d->m_revokeTemporaryAuthorizationsCancellable,
d->revokeTemporaryAuthorizationsCallback,
this);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-qt-1-0.96.1/core/polkitqt1-authority.h new/polkit-qt-1-0.98.1/core/polkitqt1-authority.h
--- old/polkit-qt-1-0.96.1/core/polkitqt1-authority.h 2010-07-03 12:17:13.000000000 +0200
+++ new/polkit-qt-1-0.98.1/core/polkitqt1-authority.h 2010-10-26 18:52:00.000000000 +0200
@@ -207,7 +207,7 @@
* or an error has occurred
*
*/
- void checkAuthorization(const QString &actionId, Subject *subject,
+ void checkAuthorization(const QString &actionId, const Subject &subject,
AuthorizationFlags flags);
/**
@@ -219,7 +219,7 @@
*
* \see checkAuthorization Asynchronous version of this method.
*/
- Result checkAuthorizationSync(const QString &actionId, Subject *subject,
+ Result checkAuthorizationSync(const QString &actionId, const Subject &subject,
AuthorizationFlags flags);
/**
@@ -264,7 +264,7 @@
* \param locale the locale of the authentication agent
* \param objectPath the object path for the authentication agent
*/
- void registerAuthenticationAgent(Subject *subject, const QString &locale,
+ void registerAuthenticationAgent(const Subject &subject, const QString &locale,
const QString &objectPath);
/**
@@ -279,7 +279,7 @@
* \return \c true if the Authentication agent has been successfully registered
* \c false if the Authentication agent registration failed
*/
- bool registerAuthenticationAgentSync(Subject *subject, const QString &locale,
+ bool registerAuthenticationAgentSync(const Subject &subject, const QString &locale,
const QString &objectPath);
/**
@@ -300,7 +300,7 @@
* \return \c true if the Authentication agent has been successfully unregistered
* \c false if the Authentication agent unregistration failed
*/
- void unregisterAuthenticationAgent(Subject *subject, const QString &objectPath);
+ void unregisterAuthenticationAgent(const Subject &subject, const QString &objectPath);
/**
* Unregisters an Authentication agent.
@@ -313,7 +313,7 @@
* \return \c true if the Authentication agent has been successfully unregistered
* \c false if the Authentication agent unregistration failed
*/
- bool unregisterAuthenticationAgentSync(Subject *subject, const QString &objectPath);
+ bool unregisterAuthenticationAgentSync(const Subject &subject, const QString &objectPath);
/**
* This method can be used to cancel the unregistration of the authentication agent.
@@ -330,7 +330,7 @@
* \param cookie The cookie passed to the authentication agent from the authority.
* \param identity The identity that was authenticated.
*/
- void authenticationAgentResponse(const QString &cookie, Identity *identity);
+ void authenticationAgentResponse(const QString &cookie, const Identity &identity);
/**
* Provide response that \p identity successfully authenticated for the authentication request identified by \p cookie.
@@ -343,7 +343,7 @@
* \return \c true if authority acknowledged the call, \c false if error is set.
*
*/
- bool authenticationAgentResponseSync(const QString &cookie, Identity *identity);
+ bool authenticationAgentResponseSync(const QString& cookie, const PolkitQt1::Identity& identity);
/**
* This method can be used to cancel the authenticationAgentResponseAsync method.
@@ -360,7 +360,7 @@
* \param subject the subject to get temporary authorizations for
*
*/
- void enumerateTemporaryAuthorizations(Subject *subject);
+ void enumerateTemporaryAuthorizations(const Subject &subject);
/**
* Retrieves all temporary action that applies to \p subject
@@ -373,7 +373,7 @@
*
* \return List of all temporary authorizations
*/
- QList<TemporaryAuthorization *> enumerateTemporaryAuthorizationsSync(Subject *subject);
+ TemporaryAuthorization::List enumerateTemporaryAuthorizationsSync(const Subject &subject);
/**
* This method can be used to cancel the enumerateTemporaryAuthorizationsAsync method.
@@ -389,7 +389,7 @@
* \param subject the subject to revoke temporary authorizations from
*/
- void revokeTemporaryAuthorizations(Subject *subject);
+ void revokeTemporaryAuthorizations(const Subject &subject);
/**
* Revokes all temporary authorizations that applies to \p subject
@@ -401,7 +401,7 @@
* \return \c true if all temporary authorization were revoked
* \c false if the revoking failed
*/
- bool revokeTemporaryAuthorizationsSync(Subject *subject);
+ bool revokeTemporaryAuthorizationsSync(const Subject &subject);
/**
* This method can be used to cancel the method revokeTemporaryAuthorizationsAsync.
@@ -504,7 +504,7 @@
*
* \note Free all TemporaryAuthorization objects using \p delete operator.
*/
- void enumerateTemporaryAuthorizationsFinished(QList<PolkitQt1::TemporaryAuthorization *>);
+ void enumerateTemporaryAuthorizationsFinished(PolkitQt1::TemporaryAuthorization::List);
/**
* This signal is emmited when asynchronous method revokeTemporaryAuthorizations finishes.
@@ -534,6 +534,6 @@
}
Q_DECLARE_OPERATORS_FOR_FLAGS(PolkitQt1::Authority::AuthorizationFlags)
-Q_DECLARE_METATYPE(PolkitQt1::Authority::Result);
+Q_DECLARE_METATYPE(PolkitQt1::Authority::Result)
#endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-qt-1-0.96.1/core/polkitqt1-details.cpp new/polkit-qt-1-0.98.1/core/polkitqt1-details.cpp
--- old/polkit-qt-1-0.96.1/core/polkitqt1-details.cpp 2010-07-03 12:17:13.000000000 +0200
+++ new/polkit-qt-1-0.98.1/core/polkitqt1-details.cpp 2010-10-26 18:52:00.000000000 +0200
@@ -27,25 +27,33 @@
namespace PolkitQt1
{
-class Details::Private
+class Details::Data : public QSharedData
{
public:
- Private() {}
+ Data() {}
+ Data(const Data &other)
+ : QSharedData(other)
+ , polkitDetails(other.polkitDetails)
+ {
+ g_object_ref(polkitDetails);
+ }
+ ~Data()
+ {
+ g_object_unref(polkitDetails);
+ }
PolkitDetails *polkitDetails;
};
-Details::Details(QObject *parent)
- : QObject(parent)
- , d(new Private)
+Details::Details()
+ : d(new Data)
{
g_type_init();
d->polkitDetails = polkit_details_new();
}
-Details::Details(PolkitDetails *pkDetails, QObject *parent)
- : QObject(parent)
- , d(new Private)
+Details::Details(PolkitDetails *pkDetails)
+ : d(new Data)
{
g_type_init();
d->polkitDetails = pkDetails;
@@ -53,8 +61,12 @@
Details::~Details()
{
- g_object_unref(d->polkitDetails);
- delete d;
+}
+
+Details& Details::operator=(const PolkitQt1::Details& other)
+{
+ d = other.d;
+ return *this;
}
QString Details::lookup(const QString &key) const
@@ -84,5 +96,3 @@
}
}
-
-#include "polkitqt1-details.moc"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-qt-1-0.96.1/core/polkitqt1-details.h new/polkit-qt-1-0.98.1/core/polkitqt1-details.h
--- old/polkit-qt-1-0.96.1/core/polkitqt1-details.h 2010-07-03 12:17:13.000000000 +0200
+++ new/polkit-qt-1-0.98.1/core/polkitqt1-details.h 2010-10-26 18:52:00.000000000 +0200
@@ -24,6 +24,7 @@
#include "polkitqt1-export.h"
#include <QtCore/QObject>
+#include <QtCore/QSharedData>
typedef struct _PolkitDetails PolkitDetails;
@@ -43,15 +44,13 @@
*
* \brief Class used for passing details around.
*/
-class POLKITQT1_EXPORT Details : public QObject
+class POLKITQT1_EXPORT Details
{
- Q_OBJECT
public:
/**
* Creates a new Details object
- * \param parent
*/
- Details(QObject *parent = 0);
+ Details();
/**
* Creates Details object from PolkitDetails
@@ -59,12 +58,13 @@
* \warning Use this only if you are completely aware of what are you doing!
*
* \param pkDetails PolkitDetails object
- * \param parent
*/
- explicit Details(PolkitDetails *pkDetails, QObject *parent = 0);
+ explicit Details(PolkitDetails *pkDetails);
~Details();
+ Details &operator=(const Details &other);
+
/**
* Get the value for \p key
*
@@ -88,8 +88,8 @@
*/
QStringList keys() const;
private:
- class Private;
- Private * const d;
+ class Data;
+ QExplicitlySharedDataPointer< Data > d;
};
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-qt-1-0.96.1/core/polkitqt1-identity.cpp new/polkit-qt-1-0.98.1/core/polkitqt1-identity.cpp
--- old/polkit-qt-1-0.96.1/core/polkitqt1-identity.cpp 2010-07-03 12:17:13.000000000 +0200
+++ new/polkit-qt-1-0.98.1/core/polkitqt1-identity.cpp 2010-10-26 18:52:00.000000000 +0200
@@ -27,30 +27,56 @@
namespace PolkitQt1
{
-class Identity::Private
+class Identity::Data : public QSharedData
{
public:
- Private(PolkitIdentity *i) : identity(i) {}
+ Data() : identity(0) {}
+ Data(const Data& other)
+ : QSharedData(other)
+ , identity(other.identity)
+ {
+ g_object_ref(identity);
+ }
+ ~Data()
+ {
+ g_object_unref(identity);
+ }
PolkitIdentity *identity;
};
Identity::Identity()
- : d(new Private(0))
+ : d(new Data)
{
g_type_init();
}
Identity::Identity(PolkitIdentity *polkitIdentity)
- : d(new Private(polkitIdentity))
+ : d(new Data)
{
g_type_init();
+ d->identity = polkitIdentity;
+}
+
+Identity::Identity(const PolkitQt1::Identity& other)
+ : d(other.d)
+{
+
}
Identity::~Identity()
{
- g_object_unref(d->identity);
- delete d;
+}
+
+Identity& Identity::operator=(const PolkitQt1::Identity& other)
+{
+ d = other.d;
+ return *this;
+}
+
+bool Identity::isValid() const
+{
+ return d->identity != NULL;
}
PolkitIdentity *Identity::identity() const
@@ -69,15 +95,35 @@
return QString::fromUtf8(polkit_identity_to_string(d->identity));
}
-Identity *Identity::fromString(const QString &string)
+Identity Identity::fromString(const QString &string)
{
GError *error = NULL;
PolkitIdentity *pkIdentity = polkit_identity_from_string(string.toUtf8().data(), &error);
if (error != NULL) {
qWarning() << QString("Cannot create Identity from string: %1").arg(error->message);
- return NULL;
+ return Identity();
+ }
+ return Identity(pkIdentity);
+}
+
+UnixGroupIdentity Identity::toUnixGroupIdentity()
+{
+ UnixGroupIdentity *ugid = static_cast< UnixGroupIdentity* >(this);
+ if (!ugid) {
+ return UnixGroupIdentity();
}
- return new Identity(pkIdentity);
+
+ return *ugid;
+}
+
+UnixUserIdentity Identity::toUnixUserIdentity()
+{
+ UnixUserIdentity *uuid = static_cast< UnixUserIdentity* >(this);
+ if (!uuid) {
+ return UnixUserIdentity();
+ }
+
+ return *uuid;
}
UnixUserIdentity::UnixUserIdentity(const QString &name)
@@ -103,6 +149,12 @@
}
+UnixUserIdentity::UnixUserIdentity()
+ : Identity()
+{
+
+}
+
uid_t UnixUserIdentity::uid() const
{
return polkit_unix_user_get_uid((PolkitUnixUser *) identity());
@@ -135,6 +187,12 @@
{
}
+
+UnixGroupIdentity::UnixGroupIdentity()
+ : Identity()
+{
+
+}
gid_t UnixGroupIdentity::gid() const
{
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-qt-1-0.96.1/core/polkitqt1-identity.h new/polkit-qt-1-0.98.1/core/polkitqt1-identity.h
--- old/polkit-qt-1-0.96.1/core/polkitqt1-identity.h 2010-07-03 12:17:13.000000000 +0200
+++ new/polkit-qt-1-0.98.1/core/polkitqt1-identity.h 2010-10-26 18:52:00.000000000 +0200
@@ -26,6 +26,7 @@
#include <unistd.h>
#include <QtCore/QObject>
+#include <QtCore/QSharedData>
typedef struct _PolkitIdentity PolkitIdentity;
typedef struct _PolkitUnixUser PolkitUnixUser;
@@ -41,6 +42,9 @@
namespace PolkitQt1
{
+class UnixUserIdentity;
+class UnixGroupIdentity;
+
/**
* \class Identity polkitqt1-identity.h Identity
* \author Lukas Tinkl <ltinkl(a)redhat.com>
@@ -55,16 +59,18 @@
class POLKITQT1_EXPORT Identity
{
public:
- /**
- * Creates Identity object from PolkitIdentity
- *
- * \warning Use this only if you are completely aware of what are you doing!
- *
- * \param polkitIdentity PolkitIdentity object
- */
+ typedef QList< Identity > List;
+
+ Identity();
explicit Identity(PolkitIdentity *polkitIdentity);
+ Identity(const Identity &other);
+
~Identity();
+ Identity &operator=(const Identity &other);
+
+ bool isValid() const;
+
/**
* Serialization of object to the string
*
@@ -79,7 +85,10 @@
*
* \return Pointer to new Identity instance
*/
- static Identity *fromString(const QString &string);
+ static Identity fromString(const QString &string);
+
+ UnixUserIdentity toUnixUserIdentity();
+ UnixGroupIdentity toUnixGroupIdentity();
/**
* Gets PolkitIdentity object.
@@ -90,13 +99,11 @@
*/
PolkitIdentity *identity() const;
protected:
- Identity();
-
void setIdentity(PolkitIdentity *identity);
private:
- class Private;
- Private * const d;
+ class Data;
+ QExplicitlySharedDataPointer< Data > d;
};
/**
@@ -110,6 +117,7 @@
class POLKITQT1_EXPORT UnixUserIdentity : public Identity
{
public:
+ UnixUserIdentity();
/**
* Creates UnixUser object by UID of the user
*
@@ -159,6 +167,7 @@
class POLKITQT1_EXPORT UnixGroupIdentity : public Identity
{
public:
+ UnixGroupIdentity();
/**
* Creates UnixGroup object by GID of the group
*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-qt-1-0.96.1/core/polkitqt1-subject.cpp new/polkit-qt-1-0.98.1/core/polkitqt1-subject.cpp
--- old/polkit-qt-1-0.96.1/core/polkitqt1-subject.cpp 2010-07-03 12:17:13.000000000 +0200
+++ new/polkit-qt-1-0.98.1/core/polkitqt1-subject.cpp 2010-10-26 18:52:00.000000000 +0200
@@ -26,30 +26,59 @@
namespace PolkitQt1
{
-class Subject::Private
+class Subject::Data : public QSharedData
{
public:
- Private(PolkitSubject *s) : subject(s) {}
+ Data()
+ : QSharedData()
+ , subject(0)
+ {}
+ Data(const Data& other)
+ : QSharedData(other)
+ , subject(other.subject)
+ {
+ g_object_ref(subject);
+ }
+ ~Data()
+ {
+ g_object_unref(subject);
+ }
PolkitSubject *subject;
};
Subject::Subject()
- : d(new Private(0))
+ : d(new Data)
{
g_type_init();
}
Subject::Subject(PolkitSubject *subject)
- : d(new Private(subject))
+ : d(new Data)
{
g_type_init();
+ d->subject = subject;
+}
+
+Subject::Subject(const PolkitQt1::Subject& other)
+ : d(other.d)
+{
+
+}
+
+Subject& Subject::operator=(const PolkitQt1::Subject& other)
+{
+ d = other.d;
+ return *this;
}
Subject::~Subject()
{
- g_object_unref(d->subject);
- delete d;
+}
+
+bool Subject::isValid() const
+{
+ return d->subject != NULL;
}
PolkitSubject *Subject::subject() const
@@ -68,14 +97,14 @@
return QString::fromUtf8(polkit_subject_to_string(d->subject));
}
-Subject *Subject::fromString(const QString &string)
+Subject Subject::fromString(const QString &string)
{
// should be in polkit library!!! but for strange reason it's necessary to have it here
g_type_init();
- Subject *subject = new Subject();
+ Subject subject;
GError *error = NULL;
- subject->d->subject = polkit_subject_from_string(string.toUtf8().data(), &error);
+ subject.d->subject = polkit_subject_from_string(string.toUtf8().data(), &error);
if (error != NULL) {
qWarning() << QString("Cannot create Subject from string: %1").arg(error->message);
return NULL;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-qt-1-0.96.1/core/polkitqt1-subject.h new/polkit-qt-1-0.98.1/core/polkitqt1-subject.h
--- old/polkit-qt-1-0.96.1/core/polkitqt1-subject.h 2010-07-03 12:17:13.000000000 +0200
+++ new/polkit-qt-1-0.98.1/core/polkitqt1-subject.h 2010-10-26 18:52:00.000000000 +0200
@@ -24,6 +24,7 @@
#include "polkitqt1-export.h"
#include <QtCore/QObject>
+#include <QtCore/QSharedData>
typedef struct _PolkitSubject PolkitSubject;
typedef struct _PolkitUnixProcess PolkitUnixProcess;
@@ -54,8 +55,14 @@
class POLKITQT1_EXPORT Subject
{
public:
+ Subject();
+ Subject(const Subject &other);
~Subject();
+ Subject &operator=(const Subject &other);
+
+ bool isValid() const;
+
/**
* Serialization of object to the string
*
@@ -70,7 +77,7 @@
*
* \return Pointer to new Subject instance
*/
- static Subject *fromString(const QString &string);
+ static Subject fromString(const QString &string);
/**
* Gets PolkitSubject object.
@@ -82,14 +89,13 @@
PolkitSubject *subject() const;
protected:
- Subject();
Subject(PolkitSubject *subject);
void setSubject(PolkitSubject *subject);
private:
- class Private;
- Private * const d;
+ class Data;
+ QExplicitlySharedDataPointer< Data > d;
};
/**
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-qt-1-0.96.1/core/polkitqt1-temporaryauthorization.cpp new/polkit-qt-1-0.98.1/core/polkitqt1-temporaryauthorization.cpp
--- old/polkit-qt-1-0.96.1/core/polkitqt1-temporaryauthorization.cpp 2010-07-03 12:17:13.000000000 +0200
+++ new/polkit-qt-1-0.98.1/core/polkitqt1-temporaryauthorization.cpp 2010-10-26 18:52:00.000000000 +0200
@@ -26,22 +26,30 @@
namespace PolkitQt1
{
-class TemporaryAuthorization::Private
+class TemporaryAuthorization::Data : public QSharedData
{
public:
- Private() {}
+ Data() {}
+ Data(const Data& other)
+ : QSharedData(other)
+ , id(other.id)
+ , actionId(other.actionId)
+ , subject(other.subject)
+ , timeObtained(other.timeObtained)
+ , timeExpires(other.timeExpires)
+ {
+ }
+ ~Data() {}
- PolkitTemporaryAuthorization *temporaryAuthorization;
QString id;
QString actionId;
- Subject *subject;
+ Subject subject;
QDateTime timeObtained;
QDateTime timeExpires;
};
-TemporaryAuthorization::TemporaryAuthorization(PolkitTemporaryAuthorization *pkTemporaryAuthorization, QObject *parent)
- : QObject(parent)
- , d(new Private)
+TemporaryAuthorization::TemporaryAuthorization(PolkitTemporaryAuthorization *pkTemporaryAuthorization)
+ : d(new Data)
{
g_type_init();
d->id = QString::fromUtf8(polkit_temporary_authorization_get_id(pkTemporaryAuthorization));
@@ -52,10 +60,26 @@
g_object_unref(pkTemporaryAuthorization);
}
+TemporaryAuthorization::TemporaryAuthorization(const PolkitQt1::TemporaryAuthorization& other)
+ : d(other.d)
+{
+
+}
+
+TemporaryAuthorization::TemporaryAuthorization()
+ : d(new Data)
+{
+
+}
+
+TemporaryAuthorization& TemporaryAuthorization::operator=(const PolkitQt1::TemporaryAuthorization& other)
+{
+ d = other.d;
+ return *this;
+}
+
TemporaryAuthorization::~TemporaryAuthorization()
{
- delete d->subject;
- delete d;
}
QString TemporaryAuthorization::id() const
@@ -68,7 +92,7 @@
return d->actionId;
}
-Subject *TemporaryAuthorization::subject()
+Subject TemporaryAuthorization::subject() const
{
//qFatal(polkit_subject_to_string(polkit_temporary_authorization_get_subject(d->temporaryAuthorization)));
return d->subject;//Subject::fromString(polkit_subject_to_string(d->subject));
@@ -91,5 +115,3 @@
}
}
-
-#include "polkitqt1-temporaryauthorization.moc"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-qt-1-0.96.1/core/polkitqt1-temporaryauthorization.h new/polkit-qt-1-0.98.1/core/polkitqt1-temporaryauthorization.h
--- old/polkit-qt-1-0.96.1/core/polkitqt1-temporaryauthorization.h 2010-07-03 12:17:13.000000000 +0200
+++ new/polkit-qt-1-0.98.1/core/polkitqt1-temporaryauthorization.h 2010-10-26 18:52:00.000000000 +0200
@@ -25,6 +25,8 @@
#include <QtCore/QObject>
#include <QtCore/QDateTime>
+#include <QtCore/QMetaType>
+#include <QtCore/QSharedData>
typedef struct _PolkitTemporaryAuthorization PolkitTemporaryAuthorization;
@@ -46,10 +48,11 @@
*
* This class encapsulates the PolkitTemporaryAuthorization interface.
*/
-class POLKITQT1_EXPORT TemporaryAuthorization : public QObject
+class POLKITQT1_EXPORT TemporaryAuthorization
{
- Q_OBJECT
public:
+ typedef QList< TemporaryAuthorization > List;
+ TemporaryAuthorization();
/**
* Creates TemporaryAuthorization object from PolkitTemporaryAuthorization
*
@@ -58,10 +61,13 @@
* \param pkTemporaryAuthorization PolkitTemporaryAuthorization object
* \param parent
*/
- explicit TemporaryAuthorization(PolkitTemporaryAuthorization *pkTemporaryAuthorization, QObject *parent = 0);
+ explicit TemporaryAuthorization(PolkitTemporaryAuthorization *pkTemporaryAuthorization);
+ TemporaryAuthorization(const TemporaryAuthorization &other);
~TemporaryAuthorization();
+ TemporaryAuthorization &operator=(const TemporaryAuthorization &other);
+
/**
* \brief Gets the identifier for the authorization.
*
@@ -83,7 +89,7 @@
*
* \return A Subject.
*/
- Subject *subject();
+ Subject subject() const;
/**
* \brief Gets the time when authorization was obtained
@@ -108,9 +114,11 @@
bool revoke();
private:
- class Private;
- Private * const d;
+ class Data;
+ QSharedDataPointer< Data > d;
};
}
+Q_DECLARE_METATYPE(PolkitQt1::TemporaryAuthorization::List)
+
#endif // TEMPORARYAUTHORIZATION_H
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-qt-1-0.96.1/examples/PkExample.cpp new/polkit-qt-1-0.98.1/examples/PkExample.cpp
--- old/polkit-qt-1-0.96.1/examples/PkExample.cpp 2010-07-03 12:17:13.000000000 +0200
+++ new/polkit-qt-1-0.98.1/examples/PkExample.cpp 2010-10-26 18:52:00.000000000 +0200
@@ -222,9 +222,7 @@
qDebug() << "pretending to be the mechanism for action:" << action->actionId();
Authority::Result result;
- UnixProcessSubject *subject;
-
- subject = new UnixProcessSubject(static_cast<uint>(QCoreApplication::applicationPid()));
+ UnixProcessSubject subject(static_cast<uint>(QCoreApplication::applicationPid()));
result = Authority::instance()->checkAuthorizationSync(action->actionId(), subject,
Authority::AllowUserInteraction);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-qt-1-0.96.1/examples/PkExampleHelper.cpp new/polkit-qt-1-0.98.1/examples/PkExampleHelper.cpp
--- old/polkit-qt-1-0.96.1/examples/PkExampleHelper.cpp 2010-07-03 12:17:13.000000000 +0200
+++ new/polkit-qt-1-0.98.1/examples/PkExampleHelper.cpp 2010-10-26 18:52:00.000000000 +0200
@@ -66,9 +66,7 @@
// message().service() is the service name of the caller
// We can check if the caller is authorized to the following action
Authority::Result result;
- SystemBusNameSubject *subject;
-
- subject = new SystemBusNameSubject(message().service());
+ SystemBusNameSubject subject(message().service());
result = Authority::instance()->checkAuthorizationSync("org.qt.policykit.examples.set",
subject , Authority::AllowUserInteraction);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-qt-1-0.96.1/examples/agent/klistener.cpp new/polkit-qt-1-0.98.1/examples/agent/klistener.cpp
--- old/polkit-qt-1-0.96.1/examples/agent/klistener.cpp 2010-07-03 12:17:13.000000000 +0200
+++ new/polkit-qt-1-0.98.1/examples/agent/klistener.cpp 2010-10-26 18:52:00.000000000 +0200
@@ -37,18 +37,18 @@
void KListener::initiateAuthentication(const QString &actionId,
const QString &message,
const QString &iconName,
- PolkitQt1::Details *details,
+ const PolkitQt1::Details &details,
const QString &cookie,
- QList<PolkitQt1::Identity *> identities,
+ const PolkitQt1::Identity::List &identities,
AsyncResult *result)
{
qDebug() << "initiateAuthentication for " << actionId << " with message " << message;
qDebug() << "iconName " << iconName;
- qDebug() << details->keys();
+ qDebug() << details.keys();
qDebug() << "cookie" << cookie;
- Q_FOREACH (PolkitQt1::Identity *identity, identities) {
- qDebug() << identity->toString();
+ Q_FOREACH (const PolkitQt1::Identity &identity, identities) {
+ qDebug() << identity.toString();
Session *session;
session = new Session(identity, cookie, result);
connect(session, SIGNAL(request(QString, bool)), this, SLOT(request(QString, bool)));
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-qt-1-0.96.1/examples/agent/klistener.h new/polkit-qt-1-0.98.1/examples/agent/klistener.h
--- old/polkit-qt-1-0.96.1/examples/agent/klistener.h 2010-07-03 12:17:13.000000000 +0200
+++ new/polkit-qt-1-0.98.1/examples/agent/klistener.h 2010-10-26 18:52:00.000000000 +0200
@@ -40,9 +40,9 @@
void initiateAuthentication(const QString &actionId,
const QString &message,
const QString &iconName,
- PolkitQt1::Details *details,
+ const PolkitQt1::Details &details,
const QString &cookie,
- QList<PolkitQt1::Identity *> identities,
+ const PolkitQt1::Identity::List &identities,
PolkitQt1::Agent::AsyncResult *result);
bool initiateAuthenticationFinish();
void cancelAuthentication();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-qt-1-0.96.1/examples/agent/pkagentexample.cpp new/polkit-qt-1-0.98.1/examples/agent/pkagentexample.cpp
--- old/polkit-qt-1-0.96.1/examples/agent/pkagentexample.cpp 2010-07-03 12:17:13.000000000 +0200
+++ new/polkit-qt-1-0.98.1/examples/agent/pkagentexample.cpp 2010-10-26 18:52:00.000000000 +0200
@@ -11,8 +11,7 @@
{
g_type_init();
- PolkitQt1::UnixSessionSubject *session;
- session = new PolkitQt1::UnixSessionSubject(getpid());
+ PolkitQt1::UnixSessionSubject session(getpid());
m_listener.registerListener(session, "/org/kde/PolicyKit1/AuthenticationAgent");
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-qt-1-0.96.1/gui/polkitqt1-gui-action.cpp new/polkit-qt-1-0.98.1/gui/polkitqt1-gui-action.cpp
--- old/polkit-qt-1-0.96.1/gui/polkitqt1-gui-action.cpp 2010-07-03 12:17:13.000000000 +0200
+++ new/polkit-qt-1-0.98.1/gui/polkitqt1-gui-action.cpp 2010-10-26 18:52:00.000000000 +0200
@@ -222,16 +222,13 @@
bool Action::Private::computePkResult()
{
Authority::Result old_result;
- UnixProcessSubject *subject;
-
- subject = new UnixProcessSubject(parent->targetPID());
+ UnixProcessSubject subject(parent->targetPID());
old_result = pkResult;
pkResult = Authority::Unknown;
pkResult = Authority::instance()->checkAuthorizationSync(actionId, subject, Authority::None);
- delete subject;
return old_result != pkResult;
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-qt-1-0.96.1/test/CMakeLists.txt new/polkit-qt-1-0.98.1/test/CMakeLists.txt
--- old/polkit-qt-1-0.96.1/test/CMakeLists.txt 2010-07-03 12:17:12.000000000 +0200
+++ new/polkit-qt-1-0.98.1/test/CMakeLists.txt 2010-10-26 18:52:00.000000000 +0200
@@ -1,32 +1,20 @@
-#install(FILES org.qt.policykit.examples.policy DESTINATION ${SHARE_INSTALL_PREFIX}/polkit-1/actions/)
-
-FIND_PACKAGE(Qt4 REQUIRED)
-include (${QT_USE_FILE})
+enable_testing()
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/agent
- ${QT_QTTEST_INCLUDE_DIR}
- ${POLKIT_INCLUDE_DIRS}
)
-set(polkit_qt_test_SRCS
+automoc4_add_executable(polkit-qt-test
test.cpp
)
-QT4_WRAP_CPP(polkit_qt_test_MOC_SRCS
- test.h
-)
-
-add_executable(polkit-qt-test
- ${polkit_qt_test_SRCS}
- ${polkit_qt_test_MOC_SRCS}
-)
-
target_link_libraries(polkit-qt-test
${QT_QTCORE_LIBRARY}
${QT_QTTEST_LIBRARY}
${QT_QTGUI_LIBRARY}
polkit-qt-core-1
)
+
+add_test(BaseTest ${CMAKE_CURRENT_BINARY_DIR}/polkit-qt-test)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-qt-1-0.96.1/test/test.cpp new/polkit-qt-1-0.98.1/test/test.cpp
--- old/polkit-qt-1-0.96.1/test/test.cpp 2010-07-03 12:17:12.000000000 +0200
+++ new/polkit-qt-1-0.98.1/test/test.cpp 2010-10-26 18:52:00.000000000 +0200
@@ -23,7 +23,7 @@
void TestAuth::test_Auth_checkAuthorization()
{
// This needs the file org.qt.policykit.examples.policy from examples to be installed
- UnixProcessSubject *process = new UnixProcessSubject(QCoreApplication::applicationPid());
+ UnixProcessSubject process(QCoreApplication::applicationPid());
Authority::Result result;
// Check if this method returns good authorization results
Authority *authority = Authority::instance();
@@ -76,10 +76,10 @@
QVERIFY(!Authority::instance()->hasError());
// Check whether enumerateAction returns at least example actions
int count = 0;
- Q_FOREACH(ActionDescription *ad, list) {
- if ((ad->actionId() == "org.qt.policykit.examples.kick") ||
- (ad->actionId() == "org.qt.policykit.examples.cry") ||
- (ad->actionId() == "org.qt.policykit.examples.bleed"))
+ Q_FOREACH(const ActionDescription &ad, list) {
+ if ((ad.actionId() == "org.qt.policykit.examples.kick") ||
+ (ad.actionId() == "org.qt.policykit.examples.cry") ||
+ (ad.actionId() == "org.qt.policykit.examples.bleed"))
count++;
}
QCOMPARE(count, 3);
@@ -94,10 +94,10 @@
QCOMPARE(spy.count(), 1);
list = qVariantValue<PolkitQt1::ActionDescription::List> (spy.takeFirst()[0]);
QVERIFY(!Authority::instance()->hasError());
- Q_FOREACH(ActionDescription *ad, list) {
- if ((ad->actionId() == "org.qt.policykit.examples.kick") ||
- (ad->actionId() == "org.qt.policykit.examples.cry") ||
- (ad->actionId() == "org.qt.policykit.examples.bleed"))
+ Q_FOREACH(const ActionDescription &ad, list) {
+ if ((ad.actionId() == "org.qt.policykit.examples.kick") ||
+ (ad.actionId() == "org.qt.policykit.examples.cry") ||
+ (ad.actionId() == "org.qt.policykit.examples.bleed"))
count++;
}
QCOMPARE(count, 3);
@@ -124,23 +124,20 @@
QVERIFY(user.identity());
// Create generic Identity from UnixUser via string representation
- Identity *id = Identity::fromString(user.toString());
+ Identity id = Identity::fromString(user.toString());
// Compare obtained uid with real uid
- QCOMPARE(((UnixUserIdentity *)id)->uid(), userId);
- delete id;
+ QCOMPARE(id.toUnixUserIdentity().uid(), userId);
// Create generic Identity from UnixGroup via string representation
UnixGroupIdentity group(groupId);
QVERIFY(group.identity());
id = Identity::fromString(group.toString());
- QCOMPARE(((UnixGroupIdentity *) id)->gid(), groupId);
- delete id;
+ QCOMPARE(id.toUnixGroupIdentity().gid(), groupId);
// Test setting gid to another value
group.setGid(9999U);
id = Identity::fromString(group.toString());
- QCOMPARE(((UnixGroupIdentity *) id)->gid(), 9999U);
- delete id;
+ QCOMPARE(id.toUnixGroupIdentity().gid(), 9999U);
}
void TestAuth::test_Authority()
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package goobox for openSUSE:Factory
checked in at Sat Nov 20 12:30:27 CET 2010.
--------
--- GNOME/goobox/goobox.changes 2010-08-04 17:00:10.000000000 +0200
+++ /mounts/work_src_done/STABLE/goobox/goobox.changes 2010-11-19 10:35:41.000000000 +0100
@@ -1,0 +2,10 @@
+Wed Nov 17 18:00:45 CET 2010 - badshah400(a)gmail.com
+
+- Update to version 2.2.0:
+ + Bug fixes:
+ - Fixed translation of some strings on the command line help
+ - Removed the use of glib/gtk+ deprecated functions
+ - Updated the README file
+ + Updated translations.
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
goobox-2.1.2.tar.bz2
New:
----
goobox-2.2.0.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ goobox.spec ++++++
--- /var/tmp/diff_new_pack.2njVZb/_old 2010-11-20 12:30:20.000000000 +0100
+++ /var/tmp/diff_new_pack.2njVZb/_new 2010-11-20 12:30:20.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package goobox (Version 2.1.2)
+# spec file for package goobox (Version 2.2.0)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -18,7 +18,7 @@
Name: goobox
-Version: 2.1.2
+Version: 2.2.0
Release: 1
License: GPLv2+
Summary: CD Player and Ripper for GNOME
++++++ goobox-2.1.2.tar.bz2 -> goobox-2.2.0.tar.bz2 ++++++
++++ 50065 lines of diff (skipped)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package gthumb for openSUSE:Factory
checked in at Sat Nov 20 12:30:25 CET 2010.
--------
--- GNOME/gthumb/gthumb.changes 2010-09-28 00:45:21.000000000 +0200
+++ /mounts/work_src_done/STABLE/gthumb/gthumb.changes 2010-11-17 12:05:42.000000000 +0100
@@ -1,0 +2,19 @@
+Tue Nov 16 18:22:50 CET 2010 - dimstar(a)opensuse.org
+
+- Update to version 2.12.1:
+ + bgo#634615: When moving files do not delete the source if an
+ error occurs.
+ + bgo#631816: Thumbnails not shown when changing file sorting.
+ + bgo#631205: Don't change image on mouse-wheel when editing an
+ image.
+ + bgo#631997: Respect the PREF_SAVE_THUMBNAILS and
+ PREF_THUMBNAIL_LIMIT preference settings.
+ + bgo#634050: Fixed crash when a file is renamed.
+ + bgo#634052: PicasaWeb importer/exporter: let it work with non
+ google email addresses as well.
+ + bgo#632498: Facebook uploader: allow to upload to existing
+ albums as well.
+ + bgo#630836, bgo#630837: Fixed build on BSD systems.
+ + Updated translations.
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
gthumb-2.12.0.tar.bz2
New:
----
gthumb-2.12.1.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ gthumb.spec ++++++
--- /var/tmp/diff_new_pack.XTLbEF/_old 2010-11-20 12:30:16.000000000 +0100
+++ /var/tmp/diff_new_pack.XTLbEF/_new 2010-11-20 12:30:16.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package gthumb (Version 2.12.0)
+# spec file for package gthumb (Version 2.12.1)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -19,7 +19,7 @@
Name: gthumb
-Version: 2.12.0
+Version: 2.12.1
Release: 1
License: GPLv2+
Summary: An Image Viewer and Browser for GNOME
++++++ gthumb-2.12.0.tar.bz2 -> gthumb-2.12.1.tar.bz2 ++++++
++++ 556592 lines of diff (skipped)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package strigi for openSUSE:Factory
checked in at Sat Nov 20 12:30:20 CET 2010.
--------
--- strigi/strigi.changes 2010-02-11 11:55:28.000000000 +0100
+++ /mounts/work_src_done/STABLE/strigi/strigi.changes 2010-11-05 08:43:38.000000000 +0100
@@ -1,0 +2,18 @@
+Fri Nov 5 07:41:11 UTC 2010 - tittiatcoke(a)gmail.com
+
+- update to version 0.7.3
+ * Always read the image size of the JPEG from the header (bko#246854)
+ * Add support for parsing XESAM xml-language
+
+-------------------------------------------------------------------
+Thu Aug 26 13:35:49 UTC 2010 - tittiatcoke(a)gmail.com
+
+- Update to a newer snapshot. This snapshot is able to work with
+ the new clucene version.
+
+-------------------------------------------------------------------
+Fri Jul 30 22:58:51 UTC 2010 - tittiatcoke(a)gmail.com
+
+- Update to a newer snapshot
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
strigi-0.7.2.tar.bz2
New:
----
strigi-0.7.3.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ strigi.spec ++++++
--- /var/tmp/diff_new_pack.CsUvbF/_old 2010-11-20 12:30:06.000000000 +0100
+++ /var/tmp/diff_new_pack.CsUvbF/_new 2010-11-20 12:30:06.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package strigi (Version 0.7.2)
+# spec file for package strigi (Version 0.7.3)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -21,6 +21,7 @@
Name: strigi
BuildRequires: c++_compiler clucene-core-devel cmake libqt4-devel openssl-devel
BuildRequires: bison file-devel kde4-filesystem libexiv2-devel libxml2-devel
+BuildRequires: boost-devel
%if %suse_version > 1020
BuildRequires: libcppunit-devel
%else
@@ -31,7 +32,7 @@
Summary: Lightweight and fast desktop search engine
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://www.vandenoever.info/software/strigi/
-Version: 0.7.2
+Version: 0.7.3
Release: 1
Source: strigi-%{version}.tar.bz2
Source2: baselibs.conf
@@ -103,7 +104,6 @@
%files
%defattr(-,root,root)
-%doc README
/usr/bin/deepfind
/usr/bin/deepgrep
/usr/bin/xmlindexer
@@ -113,6 +113,9 @@
/usr/bin/strigiclient
/usr/bin/rdfindexer
%dir %_libdir/strigi
+%dir %_libdir/libsearchclient
+%dir %_libdir/libstreamanalyzer
+%dir %_libdir/libstreams
%_libdir/strigi/strigila_deb.so
%_libdir/strigi/strigila_xpm.so
%_libdir/strigi/strigita_xbm.so
@@ -129,6 +132,7 @@
%_libdir/strigi/strigita_sid.so
%_libdir/strigi/strigita_wav.so
%_libdir/strigi/strigiea_jpeg.so
+%_libdir/strigi/strigiea_riff.so
/usr/share/strigi
%_libdir/strigi/strigiindex_clucene.so
%if %suse_version > 1010
@@ -146,13 +150,15 @@
%files devel
%defattr(-,root,root)
-%doc TODO
/usr/include/strigi
%_libdir/libsearchclient.so
%_libdir/libstrigihtmlgui.so
%_libdir/libstrigiqtdbusclient.so
%_libdir/libstreams.so
%_libdir/libstreamanalyzer.so
+%_libdir/libsearchclient/LibSearchClientConfig.cmake
+%_libdir/libstreamanalyzer/LibStreamAnalyzerConfig.cmake
+%_libdir/libstreams/LibStreamsConfig.cmake
%_libdir/pkgconfig/libstreamanalyzer.pc
%_libdir/pkgconfig/libstreams.pc
%_libdir/strigi/StrigiConfig.cmake
++++++ strigi-0.7.2.tar.bz2 -> strigi-0.7.3.tar.bz2 ++++++
++++ 193912 lines of diff (skipped)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package hamster-applet for openSUSE:Factory
checked in at Sat Nov 20 12:30:08 CET 2010.
--------
--- hamster-applet/hamster-applet.changes 2010-09-27 13:50:10.000000000 +0200
+++ /mounts/work_src_done/STABLE/hamster-applet/hamster-applet.changes 2010-11-17 16:23:09.000000000 +0100
@@ -1,0 +2,10 @@
+Tue Nov 16 09:36:20 CET 2010 - dimstar(a)opensuse.org
+
+- Update to version 2.32.1:
+ + Totals are returned to HTML report
+ + Fixed problems with the stop button and python 2.7
+ + Ampersand now is safe to use again
+ + Updated translations.
+- Add python-xdg Requires. Fix bnc#653578.
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
hamster-applet-2.32.0.tar.bz2
New:
----
hamster-applet-2.32.1.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ hamster-applet.spec ++++++
--- /var/tmp/diff_new_pack.nXuyNX/_old 2010-11-20 12:29:41.000000000 +0100
+++ /var/tmp/diff_new_pack.nXuyNX/_new 2010-11-20 12:29:41.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package hamster-applet (Version 2.32.0)
+# spec file for package hamster-applet (Version 2.32.1)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -18,7 +18,7 @@
Name: hamster-applet
-Version: 2.32.0
+Version: 2.32.1
Release: 1
License: GPLv3+
Summary: A GNOME panel applet to track where you spend your time
@@ -38,6 +38,7 @@
Requires: gnome-python-desktop
Requires: python-gnome
Requires: python-gtk
+Requires: python-xdg
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%{py_requires}
++++++ hamster-applet-2.32.0.tar.bz2 -> hamster-applet-2.32.1.tar.bz2 ++++++
++++ 8517 lines of diff (skipped)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package gtkmm-documentation for openSUSE:Factory
checked in at Sat Nov 20 12:30:04 CET 2010.
--------
--- GNOME/gtkmm-documentation/gtkmm-documentation.changes 2010-09-21 23:27:31.000000000 +0200
+++ /mounts/work_src_done/STABLE/gtkmm-documentation/gtkmm-documentation.changes 2010-10-29 23:19:09.000000000 +0200
@@ -1,0 +2,11 @@
+Fri Oct 29 17:18:06 EDT 2010 - vuntz(a)opensuse.org
+
+- Update to version 2.22.0:
+ + Make the API reference links go to /stable instead of
+ /unstable, to avoid sending people to the (different) gtkmm 3
+ API.
+ + Example code links: Use the gtkmm-2-22 branch instead of
+ master, to avoid sending people to the examples for the gtkmm 3
+ API.
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
gtkmm-documentation-2.21.8.1.tar.bz2
New:
----
gtkmm-documentation-2.22.0.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ gtkmm-documentation.spec ++++++
--- /var/tmp/diff_new_pack.JQ9aJh/_old 2010-11-20 12:29:53.000000000 +0100
+++ /var/tmp/diff_new_pack.JQ9aJh/_new 2010-11-20 12:29:53.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package gtkmm-documentation (Version 2.21.8.1)
+# spec file for package gtkmm-documentation (Version 2.22.0)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -18,7 +18,7 @@
Name: gtkmm-documentation
-Version: 2.21.8.1
+Version: 2.22.0
Release: 1
License: GFDL 1.2 ; GPLv2+
Summary: C++ Bindings for GTK+ -- Documentation
++++++ gtkmm-documentation-2.21.8.1.tar.bz2 -> gtkmm-documentation-2.22.0.tar.bz2 ++++++
++++ 12880 lines of diff (skipped)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package kiwi for openSUSE:Factory
checked in at Sat Nov 20 12:29:42 CET 2010.
--------
--- kiwi/kiwi.changes 2010-11-05 16:50:16.000000000 +0100
+++ /mounts/work_src_done/STABLE/kiwi/kiwi.changes 2010-11-19 16:31:07.000000000 +0100
@@ -1,0 +2,216 @@
+Fri Nov 19 16:01:26 CET 2010 - ms(a)suse.de
+
+- v4.65 released
+* rebuild documentation
+* rebuild schema documentation
+
+-------------------------------------------------------------------
+Fri Nov 19 15:15:31 CET 2010 - ms(a)suse.de
+
+- added an oem hook named: preCallInit which runs right before
+ init is called or in case of a reboot/halt request right before
+ that reboot (bnc #654404)
+
+-------------------------------------------------------------------
+Fri Nov 19 10:04:04 CET 2010 - ms(a)suse.de
+
+- make sure /dev is bind mounted when installing the very
+ first bootstrap packages.
+
+-------------------------------------------------------------------
+Thu Nov 18 09:24:16 CET 2010 - ms(a)suse.de
+
+- DB: update documentation
+
+-------------------------------------------------------------------
+Wed Nov 17 16:07:39 CET 2010 - ms(a)suse.de
+
+- put package manager into solver list when calling
+ kiwi --select ... --info packages
+
+- fixed clicfs mount in cache mount code:
+* we don't want reserved blocks
+* we don't want automatic filesystem check
+* we don't want to use --ignore-cow-errors
+
+- deactivate automatic cache creation and introduce a new
+ operation mode called kiwi --init-cache. Caches needs to
+ be created in a separate call. This has turned out to be
+ more flexible and prevent customer confusion
+
+- add default cache image location: /var/cache/kiwi/image
+ which can be overwritten by the --cache option. If one want
+ to use caches in prepare or create mode it's required to
+ select the cache location with this option.
+
+- removed baseroot attribute and defaultbaseroot element
+ from XML description. baseroot has been replaced by the
+ clicfs based caching process
+
+- don't leave .broken inside the tree if it is not broken
+
+- cleanup the overlay preparation code. The code is in
+ KIWIOverlay.pm exclusively. At each code point which
+ requires it we create a KIWIOverlay object and let it
+ control the overlay mount
+
+-------------------------------------------------------------------
+Wed Nov 17 09:06:54 CET 2010 - ms(a)suse.de
+
+- DB: add documentation about PXE hardware maps
+
+-------------------------------------------------------------------
+Wed Nov 17 08:47:01 CET 2010 - ms(a)suse.de
+
+- update documentation for oem-unattended mode
+
+-------------------------------------------------------------------
+Wed Nov 17 08:45:40 CET 2010 - ms(a)suse.de
+
+- if in oem-unattended mode and we found more than one disk for
+ installation, use the first disk found by hwinfo
+
+-------------------------------------------------------------------
+Wed Nov 17 08:33:28 CET 2010 - ms(a)suse.de
+
+- fix bug in the format conversion from raw to qcow2.
+ The 'convert' command to qemu-mig was missing.
+
+-------------------------------------------------------------------
+Wed Nov 17 08:29:33 CET 2010 - ms(a)suse.de
+
+- move the two consistency checks (kiwirevision and
+ version format) out of the KIWIXML constructor and into
+ their own methods
+
+- Implement a new consistency check, __checkFilesysSpec().
+ This method assures that the 'filesystem' attribute is used
+ for image types that require the attribute
+
+-------------------------------------------------------------------
+Tue Nov 16 19:03:39 CET 2010 - ms(a)suse.de
+
+- fixed creation and use of kiwi caches for boot images
+ also make sure the same clicfs cache is mounted only once
+ and is released in case of an exception
+
+-------------------------------------------------------------------
+Tue Nov 16 11:45:18 CET 2010 - ms(a)suse.de
+
+- netboot: fixed incorporation of hardware maps
+- netboot: evaluate additional VENDOR_CONF value
+
+-------------------------------------------------------------------
+Tue Nov 16 11:25:25 CET 2010 - ms(a)suse.de
+
+- fixed use of uninitialized variable @configNodes
+- fixed solvable setup for susetags
+
+-------------------------------------------------------------------
+Tue Nov 16 10:56:23 CET 2010 - ms(a)suse.de
+
+- update RNG schema due to last change to the RNC schema
+
+-------------------------------------------------------------------
+Tue Nov 16 10:12:02 CET 2010 - ms(a)suse.de
+
+- added new element <vmconfig-entry>text</vmconfig-entry> which
+ allows the user to specify raw text that ends up in the .vmx
+ or .xenconfig file. Certain default options currently written by
+ Kiwi may be over written by these settings. Therefore the use
+ of this option happens on your own risk. No validation of the
+ raw text is performed.
+
+-------------------------------------------------------------------
+Mon Nov 15 17:56:25 CET 2010 - ms(a)suse.de
+
+- verify format used for the mac address when specifying
+ the attribute on the vmnic element.
+
+-------------------------------------------------------------------
+Mon Nov 15 14:09:25 CET 2010 - ms(a)suse.de
+
+- fixed logging for listXMLInfo()
+
+-------------------------------------------------------------------
+Mon Nov 15 11:25:12 CET 2010 - ms(a)suse.de
+
+- move the XML validation and loading to it's own methods
+- added image consistency checks into KIWIXML as addition to
+ the XSLT stylesheet processor. The function __validateConsistency
+ provides a place to add consistency checks:
+
+* Added check: __checkPostDumpAction which ensures that only
+ one of oem-bootwait, oem-reboot, oem-reboot-interactive,
+ oem-shutdown or oem-shutdown-interactive is specified.
+
+-------------------------------------------------------------------
+Mon Nov 15 11:05:51 CET 2010 - ms(a)suse.de
+
+- added return string to partitionSize() function even in case of error
+
+-------------------------------------------------------------------
+Mon Nov 15 10:57:02 CET 2010 - ms(a)suse.de
+
+- added bc tool to netboot image descriptions
+
+-------------------------------------------------------------------
+Thu Nov 11 10:00:23 CET 2010 - ms(a)suse.de
+
+- allow boottimeout setup for image="iso" too
+
+-------------------------------------------------------------------
+Wed Nov 10 13:56:27 CET 2010 - ms(a)suse.de
+
+- added xsl stylesheet to convert images which uses the image="xen"
+ type into an appropriate image="vmx" type because the xen image
+ type was removed. Additionally increased schema version to v5.0
+ with this change
+
+-------------------------------------------------------------------
+Tue Nov 9 14:58:40 CET 2010 - ms(a)suse.de
+
+- netboot: added support for hardware maps. Hardware maps are
+ configuration files for a given range of MAC addresses. If a client
+ of the specified range boots up the corresponding hardware map
+ file will be loaded and merged with the default configuration.
+ That way you can specify in one config file configurations dedicated
+ to different machines. Example config.<MAC>
+
+ ...
+ HARDWARE_MAP="vendor1, vendor2, vendor3"
+ vendor1_HARDWARE_MAP="xx:xx:xx:xx:xx:x1, xx:xx:xx:xx:xx:x2"
+ ...
+
+ if client xx:xx:xx:xx:xx:x1 boots up the file hardware_config.vendor1
+ is additionally loaded from the pxe boot server
+
+-------------------------------------------------------------------
+Mon Nov 8 17:40:39 CET 2010 - ms(a)suse.de
+
+- fixed doit OBS script to work with branch names different from 'kiwi'
+
+-------------------------------------------------------------------
+Sun Nov 7 23:06:22 CET 2010 - ms(a)suse.de
+
+- more flexible post dump behavior:
+
++++ 19 more lines (skipped)
++++ between kiwi/kiwi.changes
++++ and /mounts/work_src_done/STABLE/kiwi/kiwi.changes
calling whatdependson for head-i586
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ kiwi.spec ++++++
--- /var/tmp/diff_new_pack.D2wiRt/_old 2010-11-20 12:29:14.000000000 +0100
+++ /var/tmp/diff_new_pack.D2wiRt/_new 2010-11-20 12:29:14.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package kiwi (Version 4.64)
+# spec file for package kiwi (Version 4.65)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -60,7 +60,7 @@
%endif
%endif
Summary: OpenSuSE - KIWI Image System
-Version: 4.64
+Version: 4.65
Release: 1
Group: System/Management
License: GPLv2
++++++ kiwi-docu.tar.bz2 ++++++
kiwi/kiwi-docu.tar.bz2 /mounts/work_src_done/STABLE/kiwi/kiwi-docu.tar.bz2 differ: char 11, line 1
++++++ kiwi.tar.bz2 ++++++
++++ 6092 lines of diff (skipped)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package jhbuild for openSUSE:Factory
checked in at Sat Nov 20 12:29:28 CET 2010.
--------
--- GNOME/jhbuild/jhbuild.changes 2010-09-10 14:47:07.000000000 +0200
+++ /mounts/work_src_done/STABLE/jhbuild/jhbuild.changes 2010-11-06 20:55:01.000000000 +0100
@@ -1,0 +2,6 @@
+Sat Nov 6 15:54:34 EDT 2010 - vuntz(a)opensuse.org
+
+- Add gcc-c++ Recommends to jhbuild-recommended-deps: we need a c++
+ compiler too.
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ jhbuild.spec ++++++
--- /var/tmp/diff_new_pack.HjcfZC/_old 2010-11-20 12:29:17.000000000 +0100
+++ /var/tmp/diff_new_pack.HjcfZC/_new 2010-11-20 12:29:17.000000000 +0100
@@ -22,7 +22,7 @@
License: GPLv2+
Group: Development/Tools/Building
Version: 2.30.2
-Release: 2
+Release: 3
Summary: Tool to build GNOME
Url: http://live.gnome.org/Jhbuild
Source0: http://download.gnome.org/sources/jhbuild/2.27/%{name}-%{version}.tar.bz2
@@ -56,6 +56,8 @@
Group: Development/Tools/Building
Requires: %{name} = %{version}
# Note: the order is order in jhbuild moduleset files
+## Compilers
+Recommends: gcc-c++
## From bootstrap:
Recommends: gettext-tools
Recommends: autoconf
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package mousetweaks for openSUSE:Factory
checked in at Sat Nov 20 12:29:01 CET 2010.
--------
--- GNOME/mousetweaks/mousetweaks.changes 2010-09-27 22:33:23.000000000 +0200
+++ /mounts/work_src_done/STABLE/mousetweaks/mousetweaks.changes 2010-11-16 10:18:56.000000000 +0100
@@ -1,0 +2,6 @@
+Tue Nov 16 09:36:29 CET 2010 - dimstar(a)opensuse.org
+
+- Update to version 2.32.1:
+ + Updated translations.
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
mousetweaks-2.32.0.tar.bz2
New:
----
mousetweaks-2.32.1.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ mousetweaks.spec ++++++
--- /var/tmp/diff_new_pack.JP8Wd5/_old 2010-11-20 12:28:55.000000000 +0100
+++ /var/tmp/diff_new_pack.JP8Wd5/_new 2010-11-20 12:28:55.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package mousetweaks (Version 2.32.0)
+# spec file for package mousetweaks (Version 2.32.1)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -18,7 +18,7 @@
Name: mousetweaks
-Version: 2.32.0
+Version: 2.32.1
Release: 1
License: GPLv3
Summary: Tweak mouse settings in GNOME
++++++ mousetweaks-2.32.0.tar.bz2 -> mousetweaks-2.32.1.tar.bz2 ++++++
++++ 2046 lines of diff (skipped)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0