Skip to content

Commit

Permalink
Add a couple of defines for the tree view grid lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob-IT committed Dec 24, 2018
1 parent 82d0fa1 commit c47e6ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gnucash/gnome-utils/dialog-utils.c
Expand Up @@ -337,8 +337,8 @@ GtkTreeViewGridLines
gnc_tree_view_get_grid_lines_pref (void)
{
GtkTreeViewGridLines grid_lines;
gboolean h_lines = gnc_prefs_get_bool (GNC_PREFS_GROUP_GENERAL, "grid-lines-horizontal");
gboolean v_lines = gnc_prefs_get_bool (GNC_PREFS_GROUP_GENERAL, "grid-lines-vertical");
gboolean h_lines = gnc_prefs_get_bool (GNC_PREFS_GROUP_GENERAL, GNC_PREF_GRID_LINES_HORIZONTAL);
gboolean v_lines = gnc_prefs_get_bool (GNC_PREFS_GROUP_GENERAL, GNC_PREF_GRID_LINES_VERTICAL);

if (h_lines)
{
Expand Down
3 changes: 3 additions & 0 deletions gnucash/gnome-utils/dialog-utils.h
Expand Up @@ -29,6 +29,9 @@
#include <gtk/gtk.h>
#include "qof.h"

#define GNC_PREF_GRID_LINES_HORIZONTAL "grid-lines-horizontal"
#define GNC_PREF_GRID_LINES_VERTICAL "grid-lines-vertical"

void gnc_set_label_color (GtkWidget *label, gnc_numeric value);

/********************************************************************\
Expand Down

0 comments on commit c47e6ae

Please sign in to comment.