summaryrefslogtreecommitdiff
path: root/system/fpm2/01-preserve_column_width.patch
diff options
context:
space:
mode:
authorAndrzej Telszewski <atelszewski@gmail.com>2016-07-24 23:09:55 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-07-30 08:28:43 +0700
commitf8e4d24eb4b74ad6125b0f292385e574ff9d9558 (patch)
tree6c42e07a4b7f482025d48e5b859021c88346b27e /system/fpm2/01-preserve_column_width.patch
parent98a69d772e70673835c3c9181487d0a2ce5f4131 (diff)
downloadslackbuilds-f8e4d24eb4b74ad6125b0f292385e574ff9d9558.tar.gz
system/fpm2: New maintainer and some added patches
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/fpm2/01-preserve_column_width.patch')
-rw-r--r--system/fpm2/01-preserve_column_width.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/system/fpm2/01-preserve_column_width.patch b/system/fpm2/01-preserve_column_width.patch
new file mode 100644
index 0000000000..03daf37042
--- /dev/null
+++ b/system/fpm2/01-preserve_column_width.patch
@@ -0,0 +1,18 @@
+--- fpm2-0.79orig/src/fpm.c 2011-01-17 13:51:17.000000000 +0100
++++ fpm2-0.79new/src/fpm.c 2015-01-21 20:45:05.777833506 +0100
+@@ -1197,9 +1197,12 @@
+
+ columns = gtk_tree_view_get_columns(gui->main_clist);
+ while (columns != NULL) {
+- ini->columns_width[i] = gtk_tree_view_column_get_width (columns->data);
+- columns = g_list_next(columns);
+- i++;
++ gint width;
++
++ width = gtk_tree_view_column_get_width (columns->data);
++ if (width != 0) ini->columns_width[i] = width;
++ columns = g_list_next(columns);
++ i++;
+ }
+ g_list_free(columns);
+