From c2e929a5aa8b8c44f0db9a44b96616a918948d5d Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Thu, 26 Nov 2009 16:32:17 +0000 Subject: [PATCH] - Prevent display of marker levels from making the properties dialog too big (bug #540826). --- system-config-printer-markers-display.patch | 165 ++++++++++++++++++++ system-config-printer.spec | 4 + 2 files changed, 169 insertions(+) create mode 100644 system-config-printer-markers-display.patch diff --git a/system-config-printer-markers-display.patch b/system-config-printer-markers-display.patch new file mode 100644 index 0000000..e3afbc5 --- /dev/null +++ b/system-config-printer-markers-display.patch @@ -0,0 +1,165 @@ +diff -up system-config-printer-1.1.13/glade/PrinterPropertiesDialog.glade.markers-display system-config-printer-1.1.13/glade/PrinterPropertiesDialog.glade +--- system-config-printer-1.1.13/glade/PrinterPropertiesDialog.glade.markers-display 2009-09-04 10:35:48.000000000 +0100 ++++ system-config-printer-1.1.13/glade/PrinterPropertiesDialog.glade 2009-11-26 16:30:46.456177697 +0000 +@@ -4677,27 +4677,84 @@ Reverse portrait (180°) + GTK_SHADOW_NONE + + +- ++ + True +- 0.5 +- 0.5 +- 1 +- 1 +- 6 +- 0 +- 12 +- 0 ++ False ++ 6 + + +- ++ + True +- False +- 6 ++ 0.5 ++ 0.5 ++ 1 ++ 1 ++ 6 ++ 0 ++ 12 ++ 0 + + +- ++ ++ True ++ True ++ GTK_POLICY_NEVER ++ GTK_POLICY_AUTOMATIC ++ GTK_SHADOW_NONE ++ GTK_CORNER_TOP_LEFT ++ ++ ++ ++ True ++ GTK_SHADOW_IN ++ ++ ++ ++ 3 ++ True ++ False ++ 6 ++ ++ ++ ++ ++ ++ ++ ++ ++ + + ++ ++ 0 ++ True ++ True ++ ++ ++ ++ ++ ++ True ++ GTK_BUTTONBOX_END ++ 0 ++ ++ ++ ++ True ++ True ++ True ++ gtk-refresh ++ True ++ GTK_RELIEF_NORMAL ++ True ++ ++ ++ ++ ++ 0 ++ False ++ False ++ + + + +@@ -4727,33 +4784,8 @@ Reverse portrait (180°) + + + 0 +- False +- False +- +- +- +- +- +- True +- GTK_BUTTONBOX_END +- 0 +- +- +- +- True +- True +- True +- gtk-refresh +- True +- GTK_RELIEF_NORMAL +- True +- +- +- +- +- 0 +- False +- False ++ True ++ True + + + +@@ -4913,13 +4945,13 @@ Reverse portrait (180°) + + + 0 +- True +- True ++ False ++ False + + + + +- False ++ True + True + + +diff -up system-config-printer-1.1.13/system-config-printer.py.markers-display system-config-printer-1.1.13/system-config-printer.py +--- system-config-printer-1.1.13/system-config-printer.py.markers-display 2009-11-26 16:29:46.758302644 +0000 ++++ system-config-printer-1.1.13/system-config-printer.py 2009-11-26 16:30:46.453177964 +0000 +@@ -2558,6 +2558,7 @@ class GUI(GtkGUI, monitor.Watcher): + subhbox.pack_start (inklevel, True, False, 0) + vbox.pack_start (subhbox, False, False, 0) + label = gtk.Label (name) ++ label.set_width_chars (10) + label.set_line_wrap (True) + vbox.pack_start (label, False, False, 0) + table.attach (vbox, col, col + 1, row, row + 1) diff --git a/system-config-printer.spec b/system-config-printer.spec index 7a01025..ace1e5c 100644 --- a/system-config-printer.spec +++ b/system-config-printer.spec @@ -39,6 +39,7 @@ Patch21: system-config-printer-install-foomatic-db-ppds.patch Patch22: system-config-printer-gpk-traceback.patch Patch23: system-config-printer-editable-ppd.patch Patch24: system-config-printer-center.patch +Patch25: system-config-printer-markers-display.patch BuildRequires: cups-devel >= 1.2 BuildRequires: python-devel >= 2.4 @@ -122,6 +123,7 @@ printers. %patch22 -p1 -b .gpk-traceback %patch23 -p1 -b .editable-ppd %patch24 -p1 -b .center +%patch25 -p1 -b .markers-display %build %configure --with-udev-rules --with-polkit-1 @@ -234,6 +236,8 @@ exit 0 %changelog * Thu Nov 26 2009 Tim Waugh 1.1.13-12 +- Prevent display of marker levels from making the properties dialog + too big (bug #540826). - Place the window in the middle of the screen (bug #539876). - Fixed editability of PPD options for explicit IPP queues (bug #541588).