Update e-mail for Kei Kebreau.
[jackhill/guix/guix.git] / gnu / packages / patches / synfigstudio-fix-ui-with-gtk3.patch
CommitLineData
2ac2b172
RW
1Downloaded from
2https://github.com/synfig/synfig/commit/b9c3b73ee35b83c4d9183c800809040cef98b2f2.patch
3
4Without this patch the UI of Synfig Studio (when built with the latest version
5of GTK) displays very large buttons in the header of every frame.
6
7This patch can be removed with the next release.
8
9
10From b9c3b73ee35b83c4d9183c800809040cef98b2f2 Mon Sep 17 00:00:00 2001
11From: caryoscelus <caryoscelus@gmx.com>
12Date: Wed, 25 Jan 2017 18:34:39 +0300
13Subject: [PATCH] Fix dock drop area size
14
15Fixes #227
16
17By using Frame instead of Button we avoid intrusive Gtk themes
18from forcing huge drop area size.
19---
20 synfig-studio/src/gui/docks/dockdroparea.cpp | 15 ++++++++++-----
21 1 file changed, 10 insertions(+), 5 deletions(-)
22
23diff --git a/src/gui/docks/dockdroparea.cpp b/synfig-studio/src/gui/docks/dockdroparea.cpp
24index 0f8936fdb..e012282f0 100644
25--- a/src/gui/docks/dockdroparea.cpp
26+++ b/src/gui/docks/dockdroparea.cpp
27@@ -35,7 +35,7 @@
28 #include "app.h"
29 #include "docks/dockdroparea.h"
30 #include "docks/dockmanager.h"
31-#include <gtkmm/button.h>
32+#include <gtkmm/frame.h>
33
34 #endif
35
36@@ -61,10 +61,15 @@ DockDropArea::DockDropArea(Gtk::Widget *target):
37 std::vector<Gtk::TargetEntry> listTargets;
38 listTargets.push_back( Gtk::TargetEntry("SYNFIG_DOCK") );
39
40- Gtk::Button *button_left = manage(new Gtk::Button());
41- Gtk::Button *button_right = manage(new Gtk::Button());
42- Gtk::Button *button_top = manage(new Gtk::Button());
43- Gtk::Button *button_bottom = manage(new Gtk::Button());
44+ Gtk::Frame *button_left = manage(new Gtk::Frame());
45+ Gtk::Frame *button_right = manage(new Gtk::Frame());
46+ Gtk::Frame *button_top = manage(new Gtk::Frame());
47+ Gtk::Frame *button_bottom = manage(new Gtk::Frame());
48+
49+ button_left->set_size_request(20, 10);
50+ button_right->set_size_request(20, 10);
51+ button_top->set_size_request(20, 10);
52+ button_bottom->set_size_request(20, 10);
53
54 button_left->drag_dest_set(listTargets);
55 button_right->drag_dest_set(listTargets);