From c7e214860cf97b0dfd3687b09d1a9a7ff3b891c9 Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 7 Apr 2014 20:00:11 +0100 Subject: [PATCH] Removed create_title_bar from ui.h --- src/ui/core.c | 1 + src/ui/titlebar.c | 6 +++--- src/ui/titlebar.h | 23 +++++++++++++++++++++++ src/ui/ui.h | 1 - 4 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 src/ui/titlebar.h diff --git a/src/ui/core.c b/src/ui/core.c index 41cdfe0c..07e5bc11 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -50,6 +50,7 @@ #include "muc.h" #include "otr/otr.h" #include "ui/ui.h" +#include "ui/titlebar.h" #include "ui/window.h" #include "ui/windows.h" #include "xmpp/xmpp.h" diff --git a/src/ui/titlebar.c b/src/ui/titlebar.c index 5c346137..e9e2e457 100644 --- a/src/ui/titlebar.c +++ b/src/ui/titlebar.c @@ -27,6 +27,7 @@ #include "config/theme.h" #include "config/preferences.h" #include "ui/ui.h" +#include "ui/titlebar.h" #include "ui/windows.h" #include "ui/window.h" #include "roster_list.h" @@ -43,8 +44,8 @@ static GTimer *typing_elapsed; static void _title_bar_draw(void); -static void -_create_title_bar(void) +void +create_title_bar(void) { int cols = getmaxx(stdscr); @@ -261,7 +262,6 @@ _title_bar_draw(void) void titlebar_init_module(void) { - create_title_bar = _create_title_bar; title_bar_console = _title_bar_console; title_bar_resize = _title_bar_resize; title_bar_update_virtual = _title_bar_update_virtual; diff --git a/src/ui/titlebar.h b/src/ui/titlebar.h new file mode 100644 index 00000000..11b015c6 --- /dev/null +++ b/src/ui/titlebar.h @@ -0,0 +1,23 @@ +/* + * titlebar.h + * + * Copyright (C) 2012 - 2014 James Booth + * + * This file is part of Profanity. + * + * Profanity is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Profanity is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Profanity. If not, see . + * + */ + +void create_title_bar(void); \ No newline at end of file diff --git a/src/ui/ui.h b/src/ui/ui.h index 1dd6b160..5d737b6a 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -149,7 +149,6 @@ void (*ui_tidy_wins)(void); void (*ui_prune_wins)(void); // create windows -void (*create_title_bar)(void); void (*create_status_bar)(void); void (*create_input_window)(void);