Accepting request 221561 from home:mgorse:branches:GNOME:Factory

- Save last-used printer as default (bgo#577642) 
- added patches:
  * gtk2-default-printer.patch

OBS-URL: https://build.opensuse.org/request/show/221561
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gtk2?expand=0&rev=198
This commit is contained in:
Dominique Leuenberger 2014-02-11 22:16:03 +00:00 committed by Git OBS Bridge
parent 8e4270ad9c
commit 21485e2695
3 changed files with 35 additions and 1 deletions

View File

@ -0,0 +1,24 @@
From bd9ed0462cbfb84b7c273c50f7ccb916ef6ff108 Mon Sep 17 00:00:00 2001
From: Chenthill Palanisamy <pchenthill@novell.com>
Date: Tue, 5 Nov 2013 13:30:33 +0100
Subject: [PATCH] Do not reset the waiting_for_printer on status change
* gtk/gtkprintunixdialog.c (printer_status_cb): Do not reset the
waiting_for_printer on status change as the default printer might
get added later.
https://bugzilla.gnome.org/show_bug.cgi?id=577642
diff -ur gtk+-2.24.22.orig/gtk/gtkprintunixdialog.c gtk+-2.24.22/gtk/gtkprintunixdialog.c
--- gtk+-2.24.22.orig/gtk/gtkprintunixdialog.c 2014-02-07 14:05:41.432196666 -0600
+++ gtk+-2.24.22/gtk/gtkprintunixdialog.c 2014-02-07 14:06:08.037864049 -0600
@@ -800,7 +800,9 @@
/* When the pause state change then we need to update sensitive property
* of GTK_RESPONSE_OK button inside of selected_printer_changed function. */
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (priv->printer_treeview));
+ priv->internal_printer_change = TRUE;
selected_printer_changed (selection, dialog);
+ priv->internal_printer_change = FALSE;
if (gtk_print_backend_printer_list_is_done (backend) &&
gtk_printer_is_default (printer) &&

View File

@ -1,4 +1,11 @@
-------------------------------------------------------------------
Fri Feb 7 18:33:55 UTC 2014 - mgorse@suse.com
- Save last-used printer as default (bgo#577642)
- added patches:
* gtk2-default-printer.patch
-------------------------------------------------------------------
Wed Oct 30 20:56:50 UTC 2013 - mgorse@suse.com
- Add gtk2-print-to-file.patch: fix printing to file with no

View File

@ -1,7 +1,7 @@
#
# spec file for package gtk2
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -53,6 +53,8 @@ Patch24: gtk2-bnc130159-bgo319483-async-selection-in-gtk-font-selection.d
Patch53: gtk-path-local.patch
# PATCH-FIX-UPSTREAM gtk2-print-to-file.patch bnc#839089 bgo#710746 bgo#711177 mgorse@suse.com -- Fix printing to file with no directory specified. bnc839089 bgo711177
Patch54: gtk2-print-to-file.patch
# PATCH-FIX-UPSTREAM gtk2-default-printer.patch bgo#577642 mgorse@suse.com -- Save selected printer as default
Patch55: gtk2-default-printer.patch
BuildRequires: atk-devel
BuildRequires: cairo-devel
BuildRequires: cups-devel
@ -330,6 +332,7 @@ cp -a %{SOURCE2} .
%patch24 -p1
%patch53
%patch54 -p1
%patch55 -p1
gnome-patch-translation-update
%build