diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-10-26 20:37:03 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-10-26 20:37:03 +0200 |
commit | dfdf42e27b033730178bf8884e2f4a1e6c960791 (patch) | |
tree | 6f7a25f6df49089832aabc6448bd6e527de2ea0e /src/gui/gtk | |
parent | 2a83aae85e68a8c7431f372f39131b09fea7bca1 (diff) | |
download | weechat-dfdf42e27b033730178bf8884e2f4a1e6c960791.zip |
core: remove unneeded whitespace
Diffstat (limited to 'src/gui/gtk')
-rw-r--r-- | src/gui/gtk/gui-gtk-bar-window.c | 8 | ||||
-rw-r--r-- | src/gui/gtk/gui-gtk-chat.c | 22 | ||||
-rw-r--r-- | src/gui/gtk/gui-gtk-color.c | 22 | ||||
-rw-r--r-- | src/gui/gtk/gui-gtk-main.c | 72 | ||||
-rw-r--r-- | src/gui/gtk/gui-gtk-mouse.c | 6 | ||||
-rw-r--r-- | src/gui/gtk/gui-gtk-window.c | 124 |
6 files changed, 127 insertions, 127 deletions
diff --git a/src/gui/gtk/gui-gtk-bar-window.c b/src/gui/gtk/gui-gtk-bar-window.c index d9d3b5841..cfa073ba7 100644 --- a/src/gui/gtk/gui-gtk-bar-window.c +++ b/src/gui/gtk/gui-gtk-bar-window.c @@ -45,7 +45,7 @@ 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) { @@ -75,7 +75,7 @@ void gui_bar_window_create_win (struct t_gui_bar_window *bar_window) { (void) bar_window; - + /* TODO: write this function for Gtk */ } @@ -91,7 +91,7 @@ gui_bar_window_print_string (struct t_gui_bar_window *bar_window, (void) bar_window; (void) string; (void) max_chars; - + /* TODO: write this function for Gtk */ return 0; } @@ -106,7 +106,7 @@ gui_bar_window_draw (struct t_gui_bar_window *bar_window, { (void) bar_window; (void) window; - + /* TODO: write this function for Gtk */ } diff --git a/src/gui/gtk/gui-gtk-chat.c b/src/gui/gtk/gui-gtk-chat.c index 5f441b89b..ddbf062da 100644 --- a/src/gui/gtk/gui-gtk-chat.c +++ b/src/gui/gtk/gui-gtk-chat.c @@ -96,7 +96,7 @@ gui_chat_reset_style (struct t_gui_window *window) GUI_WINDOW_OBJECTS(window)->current_style_bg = -1; GUI_WINDOW_OBJECTS(window)->current_style_attr = 0; GUI_WINDOW_OBJECTS(window)->current_color_attr = 0; - + /* TODO: change following function call */ /*gui_window_set_weechat_color (window->win_chat, COLOR_WIN_CHAT);*/ gui_chat_remove_style (window, @@ -183,7 +183,7 @@ gui_chat_string_next_char (struct t_gui_window *window, struct t_gui_line *line, (void) line; (void) apply_style; (void) apply_style_inactive; - + return (char *)string; } @@ -196,7 +196,7 @@ void gui_chat_display_word_raw (struct t_gui_window *window, const char *string) { /*char *prev_char, *next_char, saved_char;*/ - + /* TODO: write this function for Gtk */ (void) window; (void) string; @@ -215,7 +215,7 @@ gui_chat_display_word (struct t_gui_window *window, { /*char *end_line, saved_char_end, saved_char; int pos_saved_char, chars_to_display, num_displayed;*/ - + /* TODO: write this function for Gtk */ (void) window; (void) line; @@ -258,12 +258,12 @@ gui_chat_calculate_line_diff (struct t_gui_window *window, struct t_gui_line **l int *line_pos, int difference) { int backward, current_size; - + if (!line || !line_pos) return; - + backward = (difference < 0); - + if (!(*line)) { /* if looking backward, start at last line of buffer */ @@ -289,7 +289,7 @@ gui_chat_calculate_line_diff (struct t_gui_window *window, struct t_gui_line **l } else current_size = gui_chat_display_line (window, *line, 0, 1); - + while ((*line) && (difference != 0)) { /* looking backward */ @@ -329,7 +329,7 @@ gui_chat_calculate_line_diff (struct t_gui_window *window, struct t_gui_line **l difference--; } } - + /* first or last line reached */ if (!(*line)) { @@ -365,10 +365,10 @@ gui_chat_draw (struct t_gui_buffer *buffer, int erase) int num_unit; char format[32], date[128], *buf; struct tm *date_tmp;*/ - + if (!gui_ok) return; - + /* TODO: write this function for Gtk */ (void) buffer; (void) erase; diff --git a/src/gui/gtk/gui-gtk-color.c b/src/gui/gtk/gui-gtk-color.c index 50f8220af..67a9a4a4a 100644 --- a/src/gui/gtk/gui-gtk-color.c +++ b/src/gui/gtk/gui-gtk-color.c @@ -65,13 +65,13 @@ int gui_color_search (const char *color_name) { int i; - + for (i = 0; gui_weechat_colors[i].string; i++) { if (string_strcasecmp (gui_weechat_colors[i].string, color_name) == 0) return i; } - + /* color not found */ return -1; } @@ -84,7 +84,7 @@ int gui_color_assign (int *color, const char *color_name) { int i; - + /* look for curses colors in table */ i = 0; while (gui_weechat_colors[i].string) @@ -96,7 +96,7 @@ gui_color_assign (int *color, const char *color_name) } i++; } - + /* color not found */ return 0; } @@ -117,7 +117,7 @@ gui_color_assign_by_diff (int *color, const char *color_name, int diff) (void) color; (void) color_name; (void) diff; - + return 1; } @@ -150,7 +150,7 @@ gui_color_get_pair (int fg, int bg) { (void) fg; (void) bg; - + return 0; } @@ -162,7 +162,7 @@ int gui_color_weechat_get_pair (int weechat_color) { (void) weechat_color; - + return 0; } @@ -194,7 +194,7 @@ void gui_color_rebuild_weechat () { int i; - + for (i = 0; i < GUI_COLOR_NUM_COLORS; i++) { if (gui_color[i]) @@ -290,7 +290,7 @@ gui_color_palette_new (int number, const char *value) /* This function does nothing in Gtk GUI */ (void) number; (void) value; - + return NULL; } @@ -313,7 +313,7 @@ void gui_color_pre_init () { int i; - + for (i = 0; i < GUI_COLOR_NUM_COLORS; i++) { gui_color[i] = NULL; @@ -348,7 +348,7 @@ void gui_color_end () { int i; - + for (i = 0; i < GUI_COLOR_NUM_COLORS; i++) { gui_color_free (gui_color[i]); diff --git a/src/gui/gtk/gui-gtk-main.c b/src/gui/gtk/gui-gtk-main.c index 358dc733c..d6a7d0e3d 100644 --- a/src/gui/gtk/gui-gtk-main.c +++ b/src/gui/gtk/gui-gtk-main.c @@ -71,10 +71,10 @@ gui_main_pre_init (int *argc, char **argv[]) { /* pre-init colors */ gui_color_pre_init (); - + /* init some variables for chat area */ gui_chat_init (); - + /* Initialise Gtk */ gtk_init (argc, argv); } @@ -90,55 +90,55 @@ gui_main_init () struct t_gui_bar *ptr_bar; struct t_gui_bar_window *ptr_bar_win; GdkColor color_fg, color_bg; - + gui_color_init (); - + gui_ok = 1; - + /* build prefixes according to config */ gui_chat_prefix_build (); - + /* init clipboard buffer */ gui_input_clipboard = NULL; - + /* create Gtk widgets */ - + gdk_color_parse ("white", &color_fg); gdk_color_parse ("black", &color_bg); - + gui_gtk_main_window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (gui_gtk_main_window), PACKAGE_STRING); - + g_signal_connect (G_OBJECT (gui_gtk_main_window), "destroy", gtk_main_quit, NULL); - + gui_gtk_vbox1 = gtk_vbox_new (FALSE, 0); gtk_widget_show (gui_gtk_vbox1); gtk_container_add (GTK_CONTAINER (gui_gtk_main_window), gui_gtk_vbox1); - + gui_gtk_entry_topic = gtk_entry_new (); gtk_widget_show (gui_gtk_entry_topic); gtk_box_pack_start (GTK_BOX (gui_gtk_vbox1), gui_gtk_entry_topic, FALSE, FALSE, 0); gtk_widget_modify_text (gui_gtk_entry_topic, GTK_STATE_NORMAL, &color_fg); gtk_widget_modify_base (gui_gtk_entry_topic, GTK_STATE_NORMAL, &color_bg); - + gui_gtk_notebook1 = gtk_notebook_new (); gtk_widget_show (gui_gtk_notebook1); gtk_box_pack_start (GTK_BOX (gui_gtk_vbox1), gui_gtk_notebook1, TRUE, TRUE, 0); gtk_notebook_set_tab_pos (GTK_NOTEBOOK (gui_gtk_notebook1), GTK_POS_BOTTOM); - + gui_gtk_vbox2 = gtk_vbox_new (FALSE, 0); gtk_widget_show (gui_gtk_vbox2); gtk_container_add (GTK_CONTAINER (gui_gtk_notebook1), gui_gtk_vbox2); - + gui_gtk_hbox1 = gtk_hbox_new (FALSE, 0); gtk_widget_show (gui_gtk_hbox1); gtk_box_pack_start (GTK_BOX (gui_gtk_vbox2), gui_gtk_hbox1, TRUE, TRUE, 0); - + gui_gtk_hpaned1 = gtk_hpaned_new (); gtk_widget_show (gui_gtk_hpaned1); gtk_box_pack_start (GTK_BOX (gui_gtk_hbox1), gui_gtk_hpaned1, TRUE, TRUE, 0); gtk_paned_set_position (GTK_PANED (gui_gtk_hpaned1), 0); - + gui_gtk_scrolledwindow_chat = gtk_scrolled_window_new (NULL, NULL); gtk_widget_show (gui_gtk_scrolledwindow_chat); gtk_paned_pack1 (GTK_PANED (gui_gtk_hpaned1), gui_gtk_scrolledwindow_chat, @@ -148,7 +148,7 @@ gui_main_init () GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); gtk_widget_modify_text (gui_gtk_scrolledwindow_chat, GTK_STATE_NORMAL, &color_fg); gtk_widget_modify_base (gui_gtk_scrolledwindow_chat, GTK_STATE_NORMAL, &color_bg); - + gui_gtk_scrolledwindow_nick = gtk_scrolled_window_new (NULL, NULL); gtk_widget_show (gui_gtk_scrolledwindow_nick); gtk_paned_pack2 (GTK_PANED (gui_gtk_hpaned1), gui_gtk_scrolledwindow_nick, @@ -158,45 +158,45 @@ gui_main_init () GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); gtk_widget_modify_text (gui_gtk_scrolledwindow_nick, GTK_STATE_NORMAL, &color_fg); gtk_widget_modify_base (gui_gtk_scrolledwindow_nick, GTK_STATE_NORMAL, &color_bg); - + gui_gtk_entry_input = gtk_entry_new (); gtk_widget_show (gui_gtk_entry_input); gtk_box_pack_start (GTK_BOX (gui_gtk_vbox2), gui_gtk_entry_input, FALSE, FALSE, 0); gtk_widget_modify_text (gui_gtk_entry_input, GTK_STATE_NORMAL, &color_fg); gtk_widget_modify_base (gui_gtk_entry_input, GTK_STATE_NORMAL, &color_bg); - + gui_gtk_label1 = gtk_label_new (_("server")); gtk_widget_show (gui_gtk_label1); gtk_notebook_set_tab_label (GTK_NOTEBOOK (gui_gtk_notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (gui_gtk_notebook1), 0), gui_gtk_label1); gtk_label_set_justify (GTK_LABEL (gui_gtk_label1), GTK_JUSTIFY_LEFT); - + gtk_widget_show_all (gui_gtk_main_window); - + gui_init_ok = 0; - + /* create core buffer */ ptr_buffer = gui_buffer_new (NULL, "weechat", NULL, NULL, NULL, NULL); if (ptr_buffer) { gui_init_ok = 1; - + /* set title for core buffer */ gui_buffer_set_title (ptr_buffer, "WeeChat " WEECHAT_COPYRIGHT_DATE " - " WEECHAT_WEBSITE); - + /* create main window (using full space) */ if (gui_window_new (NULL, ptr_buffer, 0, 0, 0, 0, 100, 100)) { gui_current_window = gui_windows; - + if (CONFIG_BOOLEAN(config_look_set_title)) gui_window_set_title (PACKAGE_NAME " " PACKAGE_VERSION); } - + /* * create bar windows for root bars (they were read from config, * but no window was created (GUI was not initialized) @@ -243,18 +243,18 @@ gui_main_end (int clean_exit) /* remove bar items and bars */ gui_bar_item_end (); gui_bar_free_all (); - + /* remove filters */ gui_filter_free_all (); - + /* free clipboard buffer */ if (gui_input_clipboard) free(gui_input_clipboard); - + /* delete layout saved */ gui_layout_window_remove_all (&gui_layout_windows); gui_layout_buffer_remove_all (&gui_layout_buffers, &last_gui_layout_buffer); - + /* delete all windows */ while (gui_windows) { @@ -262,23 +262,23 @@ gui_main_end (int clean_exit) /* TODO: destroy Gtk widgets */ } gui_window_tree_free (&gui_windows_tree); - + /* delete all buffers */ while (gui_buffers) { gui_buffer_close (gui_buffers); } - + /* delete global history */ gui_history_global_free (); - + /* reset title */ if (CONFIG_BOOLEAN(config_look_set_title)) gui_window_set_title (NULL); - + /* end color */ gui_color_end (); - + /* free some variables used for chat area */ gui_chat_end (); } diff --git a/src/gui/gtk/gui-gtk-mouse.c b/src/gui/gtk/gui-gtk-mouse.c index 65c1bfe56..535a4a571 100644 --- a/src/gui/gtk/gui-gtk-mouse.c +++ b/src/gui/gtk/gui-gtk-mouse.c @@ -67,7 +67,7 @@ void gui_mouse_grab_init (int area) { (void) area; - + /* This function does nothing in Gtk GUI */ } @@ -89,9 +89,9 @@ const char * gui_mouse_event_code2key (const char *code) { (void) code; - + /* This function does nothing in Gtk GUI */ - + return NULL; } diff --git a/src/gui/gtk/gui-gtk-window.c b/src/gui/gtk/gui-gtk-window.c index 3c44bb418..8fefbea2e 100644 --- a/src/gui/gtk/gui-gtk-window.c +++ b/src/gui/gtk/gui-gtk-window.c @@ -70,7 +70,7 @@ int gui_window_objects_init (struct t_gui_window *window) { struct t_gui_window_gtk_objects *new_objects; - + if ((new_objects = malloc (sizeof (*new_objects)))) { window->gui_objects = new_objects; @@ -131,7 +131,7 @@ gui_window_draw_separator (struct t_gui_window *window) /* TODO: write this function for Gtk */ /*if (window->win_separator) delwin (window->win_separator); - + if (window->win_x > 0) { window->win_separator = newwin (window->win_height, @@ -176,14 +176,14 @@ gui_window_switch (struct t_gui_window *window) { if (gui_current_window == window) return; - + /* remove unused bars from current window */ /* ... */ - + gui_current_window = window; - + gui_window_switch_to_buffer (gui_current_window, gui_current_window->buffer, 1); - + gui_window_redraw_buffer (gui_current_window->buffer); } @@ -197,9 +197,9 @@ gui_window_switch_to_buffer (struct t_gui_window *window, int set_last_read) { GtkTextIter start, end; - + gui_buffer_add_value_num_displayed (window->buffer, -1); - + if (window->buffer != buffer) { window->scroll->start_line = NULL; @@ -223,10 +223,10 @@ gui_window_switch_to_buffer (struct t_gui_window *window, } } } - + window->buffer = buffer; gui_window_calculate_pos_size (window); - + if (!GUI_WINDOW_OBJECTS(window)->textview_chat) { GUI_WINDOW_OBJECTS(window)->textview_chat = gtk_text_view_new (); @@ -235,20 +235,20 @@ gui_window_switch_to_buffer (struct t_gui_window *window, gtk_widget_set_size_request (GUI_WINDOW_OBJECTS(window)->textview_chat, 300, -1); gtk_text_view_set_editable (GTK_TEXT_VIEW (GUI_WINDOW_OBJECTS(window)->textview_chat), FALSE); gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (GUI_WINDOW_OBJECTS(window)->textview_chat), FALSE); - + GUI_WINDOW_OBJECTS(window)->textbuffer_chat = gtk_text_buffer_new (NULL); gtk_text_view_set_buffer (GTK_TEXT_VIEW (GUI_WINDOW_OBJECTS(window)->textview_chat), GUI_WINDOW_OBJECTS(window)->textbuffer_chat); - + /*GUI_WINDOW_OBJECTS(window)->texttag_chat = gtk_text_buffer_create_tag(GUI_WINDOW_OBJECTS(window)->textbuffer_chat, "courier", "font_family", "lucida");*/ gtk_text_buffer_get_bounds (GUI_WINDOW_OBJECTS(window)->textbuffer_chat, &start, &end); gtk_text_buffer_apply_tag (GUI_WINDOW_OBJECTS(window)->textbuffer_chat, GUI_WINDOW_OBJECTS(window)->texttag_chat, &start, &end); } - + window->scroll->start_line = NULL; window->scroll->start_line_pos = 0; - + gui_buffer_add_value_num_displayed (buffer, 1); - + gui_hotlist_remove_buffer (buffer); } @@ -261,7 +261,7 @@ gui_window_page_up (struct t_gui_window *window) { if (!gui_ok) return; - + if (!window->scroll->first_line_displayed) { gui_chat_calculate_line_diff (window, &window->scroll->start_line, @@ -282,16 +282,16 @@ gui_window_page_down (struct t_gui_window *window) { struct t_gui_line *ptr_line; int line_pos; - + if (!gui_ok) return; - + if (window->scroll->start_line) { gui_chat_calculate_line_diff (window, &window->scroll->start_line, &window->scroll->start_line_pos, window->win_chat_height - 1); - + /* check if we can display all */ ptr_line = window->scroll->start_line; line_pos = window->scroll->start_line_pos; @@ -303,7 +303,7 @@ gui_window_page_down (struct t_gui_window *window) window->scroll->start_line = NULL; window->scroll->start_line_pos = 0; } - + gui_chat_draw (window->buffer, 0); } } @@ -317,7 +317,7 @@ gui_window_scroll_up (struct t_gui_window *window) { if (!gui_ok) return; - + if (!window->scroll->first_line_displayed) { gui_chat_calculate_line_diff (window, &window->scroll->start_line, @@ -339,29 +339,29 @@ gui_window_scroll_down (struct t_gui_window *window) { struct t_gui_line *ptr_line; int line_pos; - + if (!gui_ok) return; - + if (window->scroll->start_line) { gui_chat_calculate_line_diff (window, &window->scroll->start_line, &window->scroll->start_line_pos, CONFIG_INTEGER(config_look_scroll_amount)); - + /* check if we can display all */ ptr_line = window->scroll->start_line; line_pos = window->scroll->start_line_pos; gui_chat_calculate_line_diff (window, &ptr_line, &line_pos, window->win_chat_height - 1); - + if (!ptr_line) { window->scroll->start_line = NULL; window->scroll->start_line_pos = 0; } - + gui_chat_draw (window->buffer, 0); } } @@ -375,7 +375,7 @@ gui_window_scroll_top (struct t_gui_window *window) { if (!gui_ok) return; - + if (!window->scroll->first_line_displayed) { window->scroll->start_line = window->buffer->lines->first_line; @@ -393,7 +393,7 @@ gui_window_scroll_bottom (struct t_gui_window *window) { if (!gui_ok) return; - + if (window->scroll->start_line) { window->scroll->start_line = NULL; @@ -415,7 +415,7 @@ gui_window_auto_resize (struct t_gui_window_tree *tree, int simulate) { int size1, size2; - + if (tree) { if (tree->window) @@ -465,7 +465,7 @@ void gui_window_refresh_windows () { /*struct t_gui_window *ptr_win, *old_current_window;*/ - + if (gui_ok) { /* TODO: write this function for Gtk */ @@ -481,15 +481,15 @@ gui_window_split_horizontal (struct t_gui_window *window, int percentage) { struct t_gui_window *new_window; int height1, height2; - + if (!gui_ok) return NULL; - + new_window = NULL; - + height1 = (window->win_height * percentage) / 100; height2 = window->win_height - height1; - + if ((percentage > 0) && (percentage <= 100)) { new_window = gui_window_new (window, window->buffer, @@ -502,18 +502,18 @@ gui_window_split_horizontal (struct t_gui_window *window, int percentage) window->win_y = new_window->win_y + new_window->win_height; window->win_height = height2; window->win_height_pct = 100 - percentage; - + /* assign same buffer for new window (top window) */ gui_buffer_add_value_num_displayed (new_window->buffer, 1); - + gui_window_switch_to_buffer (window, window->buffer, 1); - + gui_current_window = new_window; gui_window_switch_to_buffer (gui_current_window, gui_current_window->buffer, 1); gui_window_redraw_buffer (gui_current_window->buffer); } } - + return new_window; } @@ -526,15 +526,15 @@ gui_window_split_vertical (struct t_gui_window *window, int percentage) { struct t_gui_window *new_window; int width1, width2; - + if (!gui_ok) return NULL; - + new_window = NULL; - + width1 = (window->win_width * percentage) / 100; width2 = window->win_width - width1 - 1; - + if ((percentage > 0) && (percentage <= 100)) { new_window = gui_window_new (window, window->buffer, @@ -546,21 +546,21 @@ gui_window_split_vertical (struct t_gui_window *window, int percentage) /* reduce old window height (left window) */ window->win_width = width1; window->win_width_pct = 100 - percentage; - + /* assign same buffer for new window (right window) */ gui_buffer_add_value_num_displayed (new_window->buffer, 1); - + gui_window_switch_to_buffer (window, window->buffer, 1); - + gui_current_window = new_window; gui_window_switch_to_buffer (gui_current_window, gui_current_window->buffer, 1); gui_window_redraw_buffer (gui_current_window->buffer); - + /* create & draw separator */ gui_window_draw_separator (gui_current_window); } } - + return new_window; } @@ -596,16 +596,16 @@ int gui_window_merge (struct t_gui_window *window) { struct t_gui_window_tree *parent, *sister; - + parent = window->ptr_tree->parent_node; if (parent) { sister = (parent->child1->window == window) ? parent->child2 : parent->child1; - + if (!(sister->window)) return 0; - + if (window->win_y == sister->window->win_y) { /* horizontal merge */ @@ -622,10 +622,10 @@ gui_window_merge (struct t_gui_window *window) window->win_x = sister->window->win_x; if (sister->window->win_y < window->win_y) window->win_y = sister->window->win_y; - + gui_window_free (sister->window); gui_window_tree_node_to_leaf (parent, window); - + gui_window_switch_to_buffer (window, window->buffer, 1); gui_window_redraw_buffer (window->buffer); return 1; @@ -685,7 +685,7 @@ gui_window_side_by_side (struct t_gui_window *win1, struct t_gui_window *win2) return 0; return 3; } - + /* win2 on the left ? */ if (win2->win_x + win2->win_width + 1 == win1->win_x) { @@ -707,7 +707,7 @@ void gui_window_switch_up (struct t_gui_window *window) { struct t_gui_window *ptr_win; - + for (ptr_win = gui_windows; ptr_win; ptr_win = ptr_win->next_window) { @@ -730,7 +730,7 @@ void gui_window_switch_down (struct t_gui_window *window) { struct t_gui_window *ptr_win; - + for (ptr_win = gui_windows; ptr_win; ptr_win = ptr_win->next_window) { @@ -753,7 +753,7 @@ void gui_window_switch_left (struct t_gui_window *window) { struct t_gui_window *ptr_win; - + for (ptr_win = gui_windows; ptr_win; ptr_win = ptr_win->next_window) { @@ -776,7 +776,7 @@ void gui_window_switch_right (struct t_gui_window *window) { struct t_gui_window *ptr_win; - + for (ptr_win = gui_windows; ptr_win; ptr_win = ptr_win->next_window) { @@ -801,7 +801,7 @@ int gui_window_balance (struct t_gui_window_tree *tree) { (void) tree; - + /* TODO: write this function for Gtk */ return 0; } @@ -820,7 +820,7 @@ gui_window_swap (struct t_gui_window *window, int direction) { (void) window; (void) direction; - + /* TODO: write this function for Gtk */ } @@ -832,7 +832,7 @@ void gui_window_refresh_screen (int full_refresh) { (void) full_refresh; - + /* TODO: write this function for Gtk */ } @@ -844,7 +844,7 @@ void gui_window_set_title (const char *title) { (void) title; - + /* TODO: write this function for Gtk */ } @@ -857,7 +857,7 @@ gui_window_send_clipboard (const char *storage_unit, const char *text) { (void) storage_unit; (void) text; - + /* TODO: write this function for Gtk */ } |