aboutsummarylogtreecommitdiffstats
path: root/print-dialog__appearance.patch
diff options
context:
space:
mode:
Diffstat (limited to 'print-dialog__appearance.patch')
-rw-r--r--print-dialog__appearance.patch43
1 files changed, 36 insertions, 7 deletions
diff --git a/print-dialog__appearance.patch b/print-dialog__appearance.patch
index e613d187733d..ef98c9592415 100644
--- a/print-dialog__appearance.patch
+++ b/print-dialog__appearance.patch
@@ -1,16 +1,48 @@
+diff -U 5 -r -Z -B ./org/gtk/gtkprintunixdialog.c ./mod/gtk/gtkprintunixdialog.c
+--- ./org/gtk/gtkprintunixdialog.c 2017-08-22 14:33:11.000000000 +0200
++++ ./mod/gtk/gtkprintunixdialog.c 2017-08-26 02:10:56.967546663 +0200
+@@ -747,10 +747,15 @@
+ _("_Print"), GTK_RESPONSE_OK,
+ NULL);
+ gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
+ widget = gtk_dialog_get_widget_for_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
+ gtk_widget_set_sensitive (widget, FALSE);
++ GtkCssProvider *provider = gtk_css_provider_new();
++ gtk_css_provider_load_from_data(provider, ".dialog-action-box { margin: 0; }\0", -1, NULL);
++ GtkStyleContext *context = gtk_widget_get_style_context(gtk_widget_get_parent(gtk_dialog_get_action_area(GTK_DIALOG(dialog))));
++ gtk_style_context_add_provider (context, GTK_STYLE_PROVIDER(provider), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
++ gtk_style_context_save (context);
+
+ /* Treeview auxiliary functions need to be setup here */
+ gtk_tree_model_filter_set_visible_func (priv->printer_list_filter,
+ (GtkTreeModelFilterVisibleFunc) is_printer_active,
+ dialog,
diff -U 5 -r -Z -B ./org/gtk/ui/gtkprintunixdialog.ui ./mod/gtk/ui/gtkprintunixdialog.ui
---- ./org/gtk/ui/gtkprintunixdialog.ui 2017-07-19 04:55:39.000000000 +0200
-+++ ./mod/gtk/ui/gtkprintunixdialog.ui 2017-07-30 13:31:55.500148048 +0200
-@@ -56,21 +56,23 @@
+--- ./org/gtk/ui/gtkprintunixdialog.ui 2017-08-22 14:33:11.000000000 +0200
++++ ./mod/gtk/ui/gtkprintunixdialog.ui 2017-08-26 02:09:14.667541594 +0200
+@@ -46,31 +46,32 @@
+ <property name="upper">1000</property>
+ <property name="value">100</property>
+ <property name="step-increment">1</property>
+ </object>
+ <template class="GtkPrintUnixDialog" parent="GtkDialog">
++ <property name="border-width">5</property>
+ <property name="can-focus">False</property>
+ <property name="type-hint">dialog</property>
+ <signal name="notify::page-setup" handler="redraw_page_layout_preview" swapped="no"/>
+ <signal name="response" handler="error_dialogs" swapped="no"/>
+ <child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1">
<property name="orientation">vertical</property>
<property name="spacing">2</property>
- <property name="border-width">0</property>
+- <property name="border-width">0</property>
++ <property name="border-width">2</property>
<style>
- <class name="view"/>
</style>
<child>
<object class="GtkBox" id="box1">
++ <property name="border-width">5</property>
<property name="visible">1</property>
<property name="orientation">vertical</property>
<child>
@@ -19,9 +51,6 @@ diff -U 5 -r -Z -B ./org/gtk/ui/gtkprintunixdialog.ui ./mod/gtk/ui/gtkprintunixd
<property name="can-focus">1</property>
- <property name="show-border">0</property>
+ <property name="show-border">1</property>
-+ <property name="margin-left">12</property>
-+ <property name="margin-right">12</property>
-+ <property name="margin-top">12</property>
<child>
<object class="GtkBox" id="general_main_box">
<property name="visible">1</property>