debian/0000755000000000000000000000000012211125417007162 5ustar debian/compat0000644000000000000000000000000212200752247010365 0ustar 7 debian/control0000644000000000000000000000217412200752247010576 0ustar Source: nautilus-ideviceinfo Section: gnome Priority: optional Maintainer: Julien Lavergne Standards-Version: 3.9.1 Build-Depends: debhelper (>= 7.0.50~), intltool (>= 0.35.0), libimobiledevice-dev (>= 0.9.7), libglib2.0-dev (>= 2.14.1), libplist-dev (>= 0.15), libgtk-3-dev (>= 3.0.0), libnautilus-extension-dev (>= 3.0.0), libgpod-dev (>= 0.7.90), libxml2-dev (>= 2.6.30), dh-autoreconf Homepage: http://libimobiledevice.org/ Package: nautilus-ideviceinfo Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, mobile-broadband-provider-info, nautilus Description: utility showing information of idevices on nautilus nautilus-ideviceinfo is a nautilus extension showing extended device information in the nautilus properties dialog. It shows details like serial number, software version, baseband/modem firmware version, and storage usage (with nice eye candy). . To see it, go to "Computer", click on your device, then "Properties" and "Details". debian/source/0000755000000000000000000000000012200752247010467 5ustar debian/source/format0000644000000000000000000000001412200752247011675 0ustar 3.0 (quilt) debian/docs0000644000000000000000000000002412200752247010036 0ustar AUTHORS NEWS README debian/patches/0000755000000000000000000000000012211125506010610 5ustar debian/patches/series0000644000000000000000000000011612211104016012014 0ustar 01-gtk3-migration.patch new_mbpi_build_fix.patch libimobiledevice-1-1-5.patch debian/patches/new_mbpi_build_fix.patch0000644000000000000000000000177712211103537015472 0ustar --- nautilus-ideviceinfo-0.1.0.orig/configure.ac 2012-08-10 12:26:14.629865625 +0200 +++ nautilus-ideviceinfo-0.1.0/configure.ac 2012-08-10 12:27:27.721869162 +0200 @@ -60,6 +60,10 @@ AC_DEFINE(HAVE_MOBILE_PROVIDER_INFO, 1, [Define if mobile-broadband-provider-info is available]) fi +dnl Check for mobile broadband provider database +MBPI_DATABASE_PATH=`$PKG_CONFIG --variable=database mobile-broadband-provider-info` +AC_SUBST(MBPI_DATABASE_PATH) + NAUTILUS_EXTENSION_DIR=`$PKG_CONFIG --variable=extensiondir libnautilus-extension` AC_SUBST(NAUTILUS_EXTENSION_DIR) --- nautilus-ideviceinfo-0.1.0.orig/src/Makefile.am 2012-08-10 12:26:14.637865626 +0200 +++ nautilus-ideviceinfo-0.1.0/src/Makefile.am 2012-08-10 12:29:23.013874742 +0200 @@ -3,6 +3,7 @@ -DDATADIR=\"$(datadir)\" \ -DGNOMELOCALEDIR=\""$(datadir)/locale"\" \ -DNAUTILUS_EXTENSION_DIR=\"$(NAUTILUS_EXTENSION_DIR)\" \ + -DMOBILE_BROADBAND_PROVIDER_INFO=\"$(MBPI_DATABASE_PATH)\" \ -I$(top_srcdir) \ -I$(top_builddir) \ $(GLOBAL_CFLAGS) \ debian/patches/libimobiledevice-1-1-5.patch0000644000000000000000000000360212211104651015555 0ustar --- a/src/ideviceinfo-property-page.c +++ b/src/ideviceinfo-property-page.c @@ -615,12 +615,24 @@ } /* get number of applications */ +#ifdef HAVE_LIBIMOBILEDEVICE_1_1_5 + lockdownd_service_descriptor_t lockdown_service = NULL; +#else uint16_t iport = 0; +#endif +#ifdef HAVE_LIBIMOBILEDEVICE_1_1_5 + if ((lockdownd_start_service(client, "com.apple.mobile.installation_proxy", &lockdown_service) == LOCKDOWN_E_SUCCESS) && lockdown_service) { +#else if ((lockdownd_start_service(client, "com.apple.mobile.installation_proxy", &iport) == LOCKDOWN_E_SUCCESS) && iport) { +#endif CHECK_CANCELLED; instproxy_client_t ipc = NULL; +#ifdef HAVE_LIBIMOBILEDEVICE_1_1_5 + if (instproxy_client_new(dev, lockdown_service, &ipc) == INSTPROXY_E_SUCCESS) { +#else if (instproxy_client_new(dev, iport, &ipc) == INSTPROXY_E_SUCCESS) { +#endif plist_t opts = instproxy_client_options_new(); plist_t apps = NULL; instproxy_client_options_add(opts, "ApplicationType", "User", NULL); @@ -636,7 +648,11 @@ } /* Detect whether AFC2 is available */ +#ifdef HAVE_LIBIMOBILEDEVICE_1_1_5 + if ((lockdownd_start_service(client, "com.apple.afc2", &lockdown_service) == LOCKDOWN_E_SUCCESS) && lockdown_service) { +#else if ((lockdownd_start_service(client, "com.apple.afc2", &iport) == LOCKDOWN_E_SUCCESS) && iport) { +#endif msg->has_afc2 = TRUE; } --- a/configure.ac +++ b/configure.ac @@ -32,6 +32,7 @@ PKG_CHECK_MODULES(libgpod, libgpod-1.0 >= $LIBGPOD_REQS, enable_libgpod=yes, enable_libgpod=no) PKG_CHECK_MODULES(libxml, libxml-2.0 >= $LIBXML_REQS) PKG_CHECK_MODULES(providerinfo, mobile-broadband-provider-info, enable_carrier_lookup=yes, enable_carrier_lookup=no) +PKG_CHECK_EXISTS(libimobiledevice-1.0 >= 1.1.5, [AC_DEFINE(HAVE_LIBIMOBILEDEVICE_1_1_5, 1, [Define to 1 if we have libimobiledevice-1.0 >= 1.1.5])]) # Checks for header files. AC_CHECK_HEADERS([stdint.h stdlib.h string.h]) debian/patches/01-gtk3-migration.patch0000644000000000000000000001620312211125512014705 0ustar --- a/configure.ac +++ b/configure.ac @@ -18,15 +18,16 @@ GLIB2_REQS=2.14.1 LIBPLIST_REQS=0.15 GTK2_REQS=2.16 -NAUTILUS_REQS=2.21.2 +NAUTILUS_REQS=3.0.0 LIBGPOD_REQS=0.7.90 LIBXML_REQS=2.6.30 +GTK3_REQS=3.0.0 # Checks for libraries. PKG_CHECK_MODULES(WIDGET, libimobiledevice-1.0 >= $LIBIMOBILE_REQS glib-2.0 >= $GLIB2_REQS libplist >= $LIBPLIST_REQS - gtk+-2.0 >= $GTK2_REQS) + gtk+-3.0 >= $GTK3_REQS) PKG_CHECK_MODULES(libnautilusextension, libnautilus-extension >= $NAUTILUS_REQS) PKG_CHECK_MODULES(libgpod, libgpod-1.0 >= $LIBGPOD_REQS, enable_libgpod=yes, enable_libgpod=no) PKG_CHECK_MODULES(libxml, libxml-2.0 >= $LIBXML_REQS) --- a/src/rb-segmented-bar.c +++ b/src/rb-segmented-bar.c @@ -42,8 +42,13 @@ GtkRequisition *requisition); static void rb_segmented_bar_size_allocate(GtkWidget *widget, GtkAllocation *allocation); +#if GTK_CHECK_VERSION(3,0,0) +static gboolean rb_segmented_bar_expose (GtkWidget *widget, + cairo_t *cr); +#else static gboolean rb_segmented_bar_expose (GtkWidget *widget, GdkEventExpose *event); +#endif static void rb_segmented_bar_get_property (GObject *object, guint param_id, GValue *value, GParamSpec *pspec); static void rb_segmented_bar_set_property (GObject *object, guint param_id, @@ -135,9 +140,40 @@ priv->segment_box_size = 12; priv->segment_box_spacing = 6; priv->value_formatter = rb_segmented_bar_default_value_formatter; +#if GTK_CHECK_VERSION(3,0,0) + gtk_widget_set_has_window (GTK_WIDGET (bar), FALSE); +#else GTK_WIDGET_SET_FLAGS (GTK_WIDGET (bar), GTK_NO_WINDOW); +#endif } +#if GTK_CHECK_VERSION(3,0,0) +static void +rb_segmented_bar_get_preferred_width (GtkWidget *widget, + gint *minimal_width, + gint *natural_width) +{ + GtkRequisition requisition; + + rb_segmented_bar_size_request (widget, &requisition); + + *minimal_width = *natural_width = requisition.width; +} + +static void +rb_segmented_bar_get_preferred_height (GtkWidget *widget, + gint *minimal_height, + gint *natural_height) +{ + GtkRequisition requisition; + + rb_segmented_bar_size_request (widget, &requisition); + + *minimal_height = *natural_height = requisition.height; +} +#else +#endif + static void rb_segmented_bar_class_init (RBSegmentedBarClass *klass) { @@ -148,8 +184,14 @@ object_class->get_property = rb_segmented_bar_get_property; object_class->set_property = rb_segmented_bar_set_property; +#if GTK_CHECK_VERSION(3,0,0) + widget_class->draw = rb_segmented_bar_expose; + widget_class->get_preferred_width = rb_segmented_bar_get_preferred_width; + widget_class->get_preferred_height = rb_segmented_bar_get_preferred_height; +#else widget_class->expose_event = rb_segmented_bar_expose; widget_class->size_request = rb_segmented_bar_size_request; +#endif widget_class->size_allocate = rb_segmented_bar_size_allocate; /** @@ -398,16 +440,31 @@ } else { real_height = priv->bar_height; } +#if GTK_CHECK_VERSION(2,18,0) + gtk_widget_set_allocation(widget, allocation); +#else widget->allocation = *allocation; +#endif if (priv->show_labels) { compute_layout_size (RB_SEGMENTED_BAR (widget)); +#if GTK_CHECK_VERSION(2,18,0) + allocation->height = MAX (priv->bar_height + priv->bar_label_spacing + priv->layout_height, +#else widget->allocation.height = MAX (priv->bar_height + priv->bar_label_spacing + priv->layout_height, +#endif real_height); } else { +#if GTK_CHECK_VERSION(2,18,0) + allocation->height = real_height; + } + allocation->width = priv->layout_width + 2*(priv->h_padding); + GTK_WIDGET_CLASS(rb_segmented_bar_parent_class)->size_allocate(widget, allocation); +#else widget->allocation.height = real_height; } widget->allocation.width = priv->layout_width + 2*(priv->h_padding); GTK_WIDGET_CLASS(rb_segmented_bar_parent_class)->size_allocate(widget, allocation); +#endif } @@ -657,7 +714,7 @@ if (priv->segments == NULL) { return; } - gdk_color = >K_WIDGET (bar)->style->fg[GTK_WIDGET_STATE (GTK_WIDGET (bar))]; + gdk_color = >k_widget_get_style(GTK_WIDGET (bar))->fg[gtk_widget_get_state (GTK_WIDGET (bar))]; text_color.red = gdk_color->red / 65535.0; text_color.green = gdk_color->green / 65535.0; text_color.blue = gdk_color->blue / 65535.0; @@ -739,38 +796,58 @@ } static gboolean +#if GTK_CHECK_VERSION(3,0,0) +rb_segmented_bar_expose (GtkWidget *widget, + cairo_t *cr) +#else rb_segmented_bar_expose (GtkWidget *widget, GdkEventExpose *event) +#endif { RBSegmentedBar *bar; RBSegmentedBarPrivate *priv; cairo_t *context; cairo_pattern_t *bar_pattern; +#if GTK_CHECK_VERSION(2,18,0) + GtkAllocation allocation; + gtk_widget_set_allocation(widget, &allocation); +#endif g_return_val_if_fail (RB_IS_SEGMENTED_BAR (widget), FALSE); - if (GTK_WIDGET_DRAWABLE (widget) == FALSE) { + if (gtk_widget_is_drawable(widget) == FALSE) { return FALSE; } bar = RB_SEGMENTED_BAR (widget); priv = RB_SEGMENTED_BAR_GET_PRIVATE (bar); - context = gdk_cairo_create (GDK_DRAWABLE (widget->window)); + context = gdk_cairo_create (gtk_widget_get_window(widget)); if (priv->reflect) { cairo_push_group (context); } cairo_set_operator (context, CAIRO_OPERATOR_OVER); +#if GTK_CHECK_VERSION(2,18,0) + cairo_translate (context, allocation.x + priv->h_padding, + allocation.y); + cairo_rectangle (context, 0, 0, + allocation.width - priv->h_padding, +#else cairo_translate (context, widget->allocation.x + priv->h_padding, widget->allocation.y); cairo_rectangle (context, 0, 0, widget->allocation.width - priv->h_padding, +#endif MAX (2*priv->bar_height, priv->bar_height + priv->bar_label_spacing + priv->layout_height)); cairo_clip (context); bar_pattern = rb_segmented_bar_render (bar, +#if GTK_CHECK_VERSION(2,18,0) + allocation.width - 2*priv->h_padding, +#else widget->allocation.width - 2*priv->h_padding, +#endif priv->bar_height); cairo_save (context); @@ -785,7 +862,11 @@ cairo_save (context); cairo_rectangle (context, 0, priv->bar_height, +#if GTK_CHECK_VERSION(2,18,0) + allocation.width - priv->h_padding, +#else widget->allocation.width - priv->h_padding, +#endif priv->bar_height); cairo_clip (context); cairo_matrix_init_scale (&matrix, 1, -1); @@ -812,11 +893,20 @@ if (priv->show_labels) { if (priv->reflect) { cairo_translate (context, +#if GTK_CHECK_VERSION(2,18,0) + allocation.x + (allocation.width - priv->layout_width)/2, + allocation.y + priv->bar_height + priv->bar_label_spacing); +#else widget->allocation.x + (widget->allocation.width - priv->layout_width)/2, widget->allocation.y + priv->bar_height + priv->bar_label_spacing); +#endif } else { cairo_translate (context, +#if GTK_CHECK_VERSION(2,18,0) + -priv->h_padding + (allocation.width - priv->layout_width)/2, +#else -priv->h_padding + (widget->allocation.width - priv->layout_width)/2, +#endif priv->bar_height + priv->bar_label_spacing); } rb_segmented_bar_render_labels (bar, context); debian/rules0000755000000000000000000000105712200752247010252 0ustar #!/usr/bin/make -f #DH_VERBOSE=1 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) CFLAGS = -O2 -Wall LDFLAGS = -Wl,--as-needed ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif %: dh --with-autoreconf $@ override_dh_install: #Remove .la and .a files. find debian/ -name *.a |xargs rm find debian/ -name *.la |xargs rm dh_install --fail-missing override_dh_makeshlibs: #Pass, the .so is not a shared library. debian/changelog0000644000000000000000000000503712211125417011041 0ustar nautilus-ideviceinfo (0.1.0-0ubuntu9) saucy; urgency=low * Update patch 01-gtk3-migration to fix prototype for rb_segmented_bar_expose to use a cairo_t * for Gtk+ 3.x rather than a GdkEvent *. -- Loïc Minier Mon, 02 Sep 2013 17:13:10 +0200 nautilus-ideviceinfo (0.1.0-0ubuntu8) saucy; urgency=low * Fix watch file to use a relative URI for downloads to match libimobiledevice.org. * Drop configure and Makefile.in from new_mbpi_build_fix.patch as this package uses dh_autoreconf. * Add patch libimobiledevice-1-1-5 to support new libimobiledevice 1.0 >= 1.1.5 API; likely fixes crashes with latest libimobiledevice. -- Loïc Minier Mon, 02 Sep 2013 14:37:07 +0200 nautilus-ideviceinfo (0.1.0-0ubuntu7) saucy; urgency=low * No-change rebuild against latest libimobiledevice -- Jeremy Bicha Thu, 08 Aug 2013 12:24:24 -0400 nautilus-ideviceinfo (0.1.0-0ubuntu6) quantal; urgency=low * debian/patches/new_mbpi_build_fix.patch: - fix build issue with current mobile-broadband-provider-info -- Sebastien Bacher Fri, 10 Aug 2012 12:33:02 +0200 nautilus-ideviceinfo (0.1.0-0ubuntu5) precise; urgency=low * No-change-rebuild for libnautilus-extension transition -- Andreas Moog Sat, 10 Dec 2011 15:26:27 +0100 nautilus-ideviceinfo (0.1.0-0ubuntu4) oneiric; urgency=low * debian/control: - Build-depends on libgtk-3-dev. - Bump build-depends on libnautilus-extension-dev (>= 3.0.0). - Build-depends on dh-autoreconf. * debian/rules: - Use --with-autoreconf, needed by 01-gtk3-migration.patch. * debian/patches: - 01-gtk3-migration.patch: Migrate to gtk3, to make it compatible with nautilus >= 3.0.0 (LP: #832842). -- Julien Lavergne Sun, 11 Sep 2011 00:30:38 +0200 nautilus-ideviceinfo (0.1.0-0ubuntu3) natty; urgency=low * Rebuild against current libimobiledevice * Bump standards to 3.9.1. No other changes -- Bhavani Shankar Sat, 15 Jan 2011 13:21:31 +0530 nautilus-ideviceinfo (0.1.0-0ubuntu2) maverick; urgency=low * debian/copyright: - Fix license notice for MIT/X11. -- Julien Lavergne Sun, 08 Aug 2010 19:35:15 +0200 nautilus-ideviceinfo (0.1.0-0ubuntu1) maverick; urgency=low * Initial release (LP: #592758) - Shows various information about the device - Segmented bar shows disk usage of device - Detect and open jailbroken -- Julien Lavergne Fri, 30 Jul 2010 21:15:06 +0200 debian/copyright0000644000000000000000000000601012200752247011117 0ustar Authors: Nikias Bassen Martin Szulecki Bastien Nocera Download: http://libimobiledevice.org/ Files: * Copyright: Copyright (C) 2010 Nikias Bassen Copyright (C) 2005 William Jon McCann License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more profile. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Files: src/rb-segmented-bar.* Copyright: Copyright (C) 2008 Novell, Inc. Copyright (C) 2008 Christophe Fergeau License: MIT/X11 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: debian/* Copyright: (C) Julien Lavergne License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more profile. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/watch0000644000000000000000000000012312211103130010173 0ustar version=3 http://libimobiledevice.org/ downloads/nautilus-ideviceinfo-(.+).tar.bz2