diff options
author | Pietro Cerutti <gahr@FreeBSD.org> | 2009-07-16 15:10:58 +0000 |
---|---|---|
committer | Pietro Cerutti <gahr@FreeBSD.org> | 2009-07-16 15:10:58 +0000 |
commit | 6dc4e42629ac796bfe7bd353d05c2055329b8a14 (patch) | |
tree | 33d2ed3b258b833e51767f1c55d4dce8306978be /databases/mysql-gui-tools | |
parent | b65d272c2ff8735c9a013e84143995078cf4b261 (diff) | |
download | ports-6dc4e42629ac796bfe7bd353d05c2055329b8a14.tar.gz ports-6dc4e42629ac796bfe7bd353d05c2055329b8a14.zip |
Notes
Diffstat (limited to 'databases/mysql-gui-tools')
3 files changed, 58 insertions, 1 deletions
diff --git a/databases/mysql-gui-tools/Makefile b/databases/mysql-gui-tools/Makefile index 2ca7d8a8628a..c11d6c7ef4e0 100644 --- a/databases/mysql-gui-tools/Makefile +++ b/databases/mysql-gui-tools/Makefile @@ -61,7 +61,7 @@ post-patch: # switch to new directory name not complete (cd ${WRKSRC} && ${LN} -sf common mysql-gui-common) # UTF-8 input file - (${TR} -d "\357\273\277" < \ + (LC_CTYPE=C ${TR} -d "\357\273\277" < \ ${WRKSRC}/common/library/base-library/source/myx_database_model.c > \ ${WRKSRC}/common/library/base-library/source/myx_database_model.c.new && \ ${MV} ${WRKSRC}/common/library/base-library/source/myx_database_model.c.new \ diff --git a/databases/mysql-gui-tools/files/patch-automatic_column_width b/databases/mysql-gui-tools/files/patch-automatic_column_width new file mode 100644 index 000000000000..450f792460ef --- /dev/null +++ b/databases/mysql-gui-tools/files/patch-automatic_column_width @@ -0,0 +1,45 @@ +--- query-browser/source/linux/MQResultSetView.cc~ 2007-04-27 14:46:09.000000000 +0200 ++++ query-browser/source/linux/MQResultSetView.cc 2009-01-04 20:59:03.000000000 +0100 +@@ -474,7 +474,29 @@ + PIXCACHE->load("field_overlay_view.png"),
+ PIXCACHE->load("field_overlay_null.png"));
+ rend->set_blob_icon(PIXCACHE->load("blob_icon.png"));
+- rend->set_max_text_width(prefs.max_blob_length);
++ if (prefs.max_blob_length == 0)
++ {
++ unsigned int w = 1;
++
++ if (result->columns[i].column_type == MYX_RSCT_TEXT)
++ for (unsigned int j = 0; j < result->rows_num; j++)
++ {
++ gchar *gcp;
++ gssize nbytes = result->rows[j].fields[i].value_length;
++
++ if ((gcp = g_utf8_strchr(result->rows[j].fields[i].value,
++ nbytes, g_utf8_get_char("\n"))) != NULL)
++ nbytes = gcp - result->rows[j].fields[i].value;
++ glong this_len = g_utf8_strlen(result->rows[j].fields[i].value, nbytes);
++ if (this_len > w)
++ w = this_len;
++ }
++ rend->set_max_text_width(w);
++ }
++ else
++ {
++ rend->set_max_text_width(prefs.max_blob_length);
++ }
+ rend->property_column()= i;
+ rend->set_delegate(this);
+
+--- query-browser/res/linux/qb_preferences.glade~ 2006-05-16 03:04:19.000000000 +0200 ++++ query-browser/res/linux/qb_preferences.glade 2009-01-02 19:14:04.000000000 +0100 +@@ -116,7 +116,8 @@ + <widget class="GtkLabel" id="label35"> + <property name="visible">True</property> + <property name="label" translatable="yes"><small>BLOB/text columns in resultsets will be truncated +-to this size for display.</small></property> ++to this size for display. Value 0 means automatic ++column width (i.e., width of largest value).</small></property> + <property name="use_underline">False</property> + <property name="use_markup">True</property> + <property name="justify">GTK_JUSTIFY_LEFT</property> diff --git a/databases/mysql-gui-tools/files/patch-query-browser-source-linux_MQQueryDispatcher.cc b/databases/mysql-gui-tools/files/patch-query-browser-source-linux_MQQueryDispatcher.cc new file mode 100644 index 000000000000..aae9361a3ac8 --- /dev/null +++ b/databases/mysql-gui-tools/files/patch-query-browser-source-linux_MQQueryDispatcher.cc @@ -0,0 +1,12 @@ +--- query-browser/source/linux/MQQueryDispatcher.cc.orig 2009-07-16 16:30:10.000000000 +0200 ++++ query-browser/source/linux/MQQueryDispatcher.cc 2009-07-16 16:33:04.000000000 +0200 +@@ -558,9 +558,6 @@ +
+ Gtk::Main::instance()->run();
+
+- while(!req->is_complete())
+- ;
+-
+ return sps;
+ }
+
|