aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2009-08-02 09:29:24 +0000
committerFrederic Culot <calcurse@culot.org>2009-08-02 09:29:24 +0000
commitd6b7f83e58de86ee3620f61cfade8ffb9a81a196 (patch)
treed14b83a6fa0edc192320ec030ca76d8696bfa068
parentb44dd7c10dec7d6d99f364e3144b78f589677b7a (diff)
downloadcalcurse-d6b7f83e58de86ee3620f61cfade8ffb9a81a196.tar.gz
calcurse-d6b7f83e58de86ee3620f61cfade8ffb9a81a196.zip
conf_set_scrsize not static any more (moved to custom_set_swsiz)
-rwxr-xr-xsrc/custom.c12
-rwxr-xr-xsrc/custom.h3
2 files changed, 8 insertions, 7 deletions
diff --git a/src/custom.c b/src/custom.c
index a6a92d7..21211cd 100755
--- a/src/custom.c
+++ b/src/custom.c
@@ -1,4 +1,4 @@
-/* $calcurse: custom.c,v 1.43 2009/08/01 17:44:51 culot Exp $ */
+/* $calcurse: custom.c,v 1.44 2009/08/02 09:29:24 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -979,8 +979,8 @@ print_general_options (WINDOW *win, conf_t *conf)
return y + YOFF;
}
-static void
-conf_set_scrsize (scrollwin_t *sw)
+void
+custom_set_swsiz (scrollwin_t *sw)
{
sw->win.x = 0;
sw->win.y = 0;
@@ -1013,7 +1013,7 @@ custom_general_config (conf_t *conf)
char *buf;
clear ();
- conf_set_scrsize (&cwin);
+ custom_set_swsiz (&cwin);
(void)snprintf (cwin.label, BUFSIZ, _("general options"));
wins_scrollwin_init (&cwin);
wins_show (cwin.win.p, cwin.label);
@@ -1033,7 +1033,7 @@ custom_general_config (conf_t *conf)
wins_reset ();
wins_scrollwin_delete (&cwin);
wins_scrollwin_init (&cwin);
- conf_set_scrsize (&cwin);
+ custom_set_swsiz (&cwin);
wins_show (cwin.win.p, cwin.label);
cwin.first_visible_line = 0;
delwin (win[STA].p);
@@ -1211,7 +1211,7 @@ custom_keys_config (void)
const int LABELLINES = 3;
clear ();
- conf_set_scrsize (&kwin);
+ custom_set_swsiz (&kwin);
nbdisplayed = (kwin.win.h - LABELLINES) / LINESPERKEY;
(void)snprintf (kwin.label, BUFSIZ, _("keys configuration"));
wins_scrollwin_init (&kwin);
diff --git a/src/custom.h b/src/custom.h
index 317413a..04909fc 100755
--- a/src/custom.h
+++ b/src/custom.h
@@ -1,4 +1,4 @@
-/* $calcurse: custom.h,v 1.17 2009/08/01 17:44:51 culot Exp $ */
+/* $calcurse: custom.h,v 1.18 2009/08/02 09:29:24 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -96,6 +96,7 @@ void custom_layout_config (void);
void custom_color_config (void);
void custom_color_theme_name (char *);
void custom_confwin_init (window_t *, char *);
+void custom_set_swsiz (scrollwin_t *);
void custom_general_config (conf_t *);
void custom_keys_config (void);