aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiovanny Lucas <giovanny.lucas.f@gmail.com>2020-03-31 23:26:06 -0300
committerMichael Homer <mwh@mwh.geek.nz>2020-04-19 13:46:30 +1200
commit26baf1642688ea30db832a70d6befa3a7553e8bc (patch)
tree8ace52ee6c6b801ad2122760ebe2fe3edf6f7bca
parentAdd flag to toggle filename showing (diff)
downloaddragon-26baf1642688ea30db832a70d6befa3a7553e8bc.tar.gz
dragon-26baf1642688ea30db832a70d6befa3a7553e8bc.tar.bz2
dragon-26baf1642688ea30db832a70d6befa3a7553e8bc.zip
Center icon if not displaying filename
-rw-r--r--dragon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dragon.c b/dragon.c
index f50e43f..4ca2f81 100644
--- a/dragon.c
+++ b/dragon.c
@@ -220,7 +220,8 @@ void add_file_button(GFile *file) {
gtk_button_set_always_show_image(button, true);
}
- left_align_button(button);
+ if (!icons_only)
+ left_align_button(button);
}
void add_filename_button(char *filename) {
bgstack15