From 221303d283f2d69fc097bdaa045ed5be26a59054 Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Wed, 8 Jun 2011 08:02:17 +0800 Subject: [PATCH] gtkguitune, swap left and right interface patch --- gtkguitune/Makefile | 1 + .../patches/001-swap-left-and-right.patch | 42 +++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 gtkguitune/patches/001-swap-left-and-right.patch diff --git a/gtkguitune/Makefile b/gtkguitune/Makefile index 8d8f517..39f0102 100644 --- a/gtkguitune/Makefile +++ b/gtkguitune/Makefile @@ -10,6 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=gtkguitune PKG_VERSION:=0.8 +PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-gtk2-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.oocities.org/harpin_floh/mysoft/ diff --git a/gtkguitune/patches/001-swap-left-and-right.patch b/gtkguitune/patches/001-swap-left-and-right.patch new file mode 100644 index 0000000..94584c4 --- /dev/null +++ b/gtkguitune/patches/001-swap-left-and-right.patch @@ -0,0 +1,42 @@ +diff --git a/guitune.cc b/guitune.cc +index ba41cad..5f10b31 100644 +--- a/guitune.cc ++++ b/guitune.cc +@@ -362,18 +362,18 @@ MainWidget::MainWidget() + 0 // page size + ); + +- attach( *oszi, 0, 1, 0, 5 ); ++ attach( *oszi, 2, 3, 0, 5 ); + + attach( *manage( new Gtk::Label("Freq:") ), +- 1, 2, 1, 2, ++ 0, 1, 1, 2, + Gtk::AttachOptions(), Gtk::AttachOptions() ); +- attach( *freqview, 2, 3, 1, 2, ++ attach( *freqview, 1, 2, 1, 2, + Gtk::FILL, Gtk::AttachOptions() ); + + attach( *manage( new Gtk::Label("Tune:") ), +- 1, 2, 2, 3, ++ 0, 1, 2, 3, + Gtk::AttachOptions(), Gtk::AttachOptions() ); +- attach( *nfreqview, 2, 3, 2, 3, ++ attach( *nfreqview, 1, 2, 2, 3, + Gtk::FILL, Gtk::AttachOptions() ); + + Gtk::Frame *adj_frame = new Gtk::Frame("Adjust:"); +@@ -418,11 +418,11 @@ MainWidget::MainWidget() + 2, 3, 4, 5 ); + + attach( *manage( adj_frame ), +- 1, 3, 3, 4, ++ 0, 2, 3, 4, + Gtk::FILL, Gtk::FILL ); + + attach( *manage( new Gtk::Label( "" ) ), +- 1, 3, 4, 5, Gtk::AttachOptions() ); ++ 0, 2, 4, 5, Gtk::AttachOptions() ); + + attach( *logview, + 0, 3, 5, 6,