mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Removed create_title_bar from ui.h
This commit is contained in:
parent
ff18572ef0
commit
c7e214860c
@ -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"
|
||||
|
@ -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;
|
||||
|
23
src/ui/titlebar.h
Normal file
23
src/ui/titlebar.h
Normal file
@ -0,0 +1,23 @@
|
||||
/*
|
||||
* titlebar.h
|
||||
*
|
||||
* Copyright (C) 2012 - 2014 James Booth <boothj5@gmail.com>
|
||||
*
|
||||
* 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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
void create_title_bar(void);
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user