/* * Copyright (c) 2003-2008 by FlashCode * See README for License detail, AUTHORS for developers list. * * This program 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. * * This program 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 this program. If not, see . */ /* gui-gtk-bar-window.c: bar window functions for Gtk GUI */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include #include "../../core/weechat.h" #include "../../core/wee-config.h" #include "../../core/wee-log.h" #include "../gui-bar.h" #include "../gui-bar-window.h" #include "../gui-chat.h" #include "../gui-color.h" #include "../gui-window.h" #include "gui-gtk.h" /* * gui_bar_window_objects_init: init Gtk windows for bar window */ int gui_bar_window_objects_init (struct t_gui_bar_window *bar_window) { struct t_gui_bar_window_gtk_objects *new_objects; new_objects = malloc (sizeof (*new_objects)); if (new_objects) { bar_window->gui_objects = new_objects; /* TODO: init Gtk windows */ return 1; } return 0; } /* * gui_window_objects_free: free Gtk windows for a bar window */ void gui_bar_window_objects_free (struct t_gui_bar_window *bar_window) { /* TODO: free Gtk windows */ (void) bar_window; } /* * gui_bar_window_create_win: create curses window for bar */ void gui_bar_window_create_win (struct t_gui_bar_window *bar_window) { (void) bar_window; /* TODO: write this function for Gtk */ } /* * gui_bar_window_print_string: print a string text on a bar window * return number of chars displayed on screen */ int gui_bar_window_print_string (struct t_gui_bar_window *bar_window, const char *string, int max_chars) { (void) bar_window; (void) string; (void) max_chars; /* TODO: write this function for Gtk */ return 0; } /* * gui_bar_window_draw: draw a bar for a window */ void gui_bar_window_draw (struct t_gui_bar_window *bar_window, struct t_gui_window *window) { (void) bar_window; (void) window; /* TODO: write this function for Gtk */ } /* * gui_bar_window_objects_print_log: print bar window infos in log (usually for crash dump) */ void gui_bar_window_objects_print_log (struct t_gui_bar_window *bar_window) { log_printf (" bar window specific objects for Gtk:"); /* TODO: add specific objects */ (void) bar_window; }