aboutsummarylogtreecommitdiffstats
path: root/appearance__print-dialog.patch
diff options
context:
space:
mode:
authorTomasz Gąsior2017-09-20 10:25:51 +0200
committerTomasz Gąsior2017-09-20 10:25:51 +0200
commit0c2a04f3237639f8da136f934548be987f344836 (patch)
tree6a69ec77b007eac87be376c364c7d3a80c5beabf /appearance__print-dialog.patch
parentd043f0d1d441b753677e9da8ef936331764c072a (diff)
downloadaur-0c2a04f3237639f8da136f934548be987f344836.tar.gz
Reorganized structure of package.
Diffstat (limited to 'appearance__print-dialog.patch')
-rw-r--r--appearance__print-dialog.patch58
1 files changed, 58 insertions, 0 deletions
diff --git a/appearance__print-dialog.patch b/appearance__print-dialog.patch
new file mode 100644
index 000000000000..ef98c9592415
--- /dev/null
+++ b/appearance__print-dialog.patch
@@ -0,0 +1,58 @@
+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-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">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>
+ <object class="GtkNotebook" id="notebook">
+ <property name="visible">1</property>
+ <property name="can-focus">1</property>
+- <property name="show-border">0</property>
++ <property name="show-border">1</property>
+ <child>
+ <object class="GtkBox" id="general_main_box">
+ <property name="visible">1</property>
+ <property name="border-width">12</property>
+ <property name="orientation">vertical</property>