Commit 148a7b03 authored by Morten Welinder's avatar Morten Welinder

GnmItemBar: add debug code.

parent 220e9c52
2014-04-10 Morten Welinder <terra@gnome.org>
* src/item-bar.c (ib_reload_style): Add debug code.
2014-04-09 Morten Welinder <terra@gnome.org> 2014-04-09 Morten Welinder <terra@gnome.org>
* src/number-match.c (format_match_datetime): Plug leak on certain * src/number-match.c (format_match_datetime): Plug leak on certain
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include "gui-util.h" #include "gui-util.h"
#include "parse-util.h" #include "parse-util.h"
#include "commands.h" #include "commands.h"
#include "gutils.h"
#include <goffice/goffice.h> #include <goffice/goffice.h>
#include <gsf/gsf-impl-utils.h> #include <gsf/gsf-impl-utils.h>
...@@ -163,6 +164,16 @@ ib_reload_style (GnmItemBar *ib) ...@@ -163,6 +164,16 @@ ib_reload_style (GnmItemBar *ib)
&ib->selection_logical_sizes[ui]); &ib->selection_logical_sizes[ui]);
} }
if (sheet->index_in_wb == 0 && gnm_debug_flag ("item-bar-style")) {
if (ib->selection_colors[0].red == 1 &&
ib->selection_colors[0].green == 1 &&
ib->selection_colors[0].blue == 1) {
g_printerr ("White item bar text\n");
} else {
g_printerr ("Non-white item bar text\n");
}
}
gtk_style_context_get_padding (context, GTK_STATE_FLAG_NORMAL, gtk_style_context_get_padding (context, GTK_STATE_FLAG_NORMAL,
&ib->padding); &ib->padding);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment