Removed silencing of gtk warning logs from gtk3.22-client.
[freeciv.git] / client / gui_cbsetter.c
blob37551960918783f4917edc35f52457e17629e285
1 /***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12 ***********************************************************************/
14 #ifdef HAVE_CONFIG_H
15 #include <fc_config.h>
16 #endif
18 /* Any client that contains this file is using callback interface */
19 #define GUI_CB_MODE 1
21 /* client */
22 #include "gui_interface.h"
24 /* client/include */
25 #include "chatline_g.h"
26 #include "citydlg_g.h"
27 #include "connectdlg_g.h"
28 #include "dialogs_g.h"
29 #include "editgui_g.h"
30 #include "graphics_g.h"
31 #include "gui_main_g.h"
32 #include "mapview_g.h"
33 #include "sprite_g.h"
34 #include "themes_g.h"
36 #include "gui_cbsetter.h"
38 /**************************************************************************
39 Setup the gui callback table.
40 **************************************************************************/
41 void setup_gui_funcs()
43 struct gui_funcs *funcs = get_gui_funcs();
45 funcs->ui_init = gui_ui_init;
46 funcs->ui_main = gui_ui_main;
47 funcs->ui_exit = gui_ui_exit;
49 funcs->get_gui_type = gui_get_gui_type;
50 funcs->insert_client_build_info = gui_insert_client_build_info;
51 funcs->adjust_default_options = gui_adjust_default_options;
53 funcs->version_message = gui_version_message;
54 funcs->real_output_window_append = gui_real_output_window_append;
56 funcs->is_view_supported = gui_is_view_supported;
57 funcs->free_intro_radar_sprites = gui_free_intro_radar_sprites;
58 funcs->load_gfxfile = gui_load_gfxfile;
59 funcs->create_sprite = gui_create_sprite;
60 funcs->get_sprite_dimensions = gui_get_sprite_dimensions;
61 funcs->crop_sprite = gui_crop_sprite;
62 funcs->free_sprite = gui_free_sprite;
64 funcs->color_alloc = gui_color_alloc;
65 funcs->color_free = gui_color_free;
67 funcs->canvas_create = gui_canvas_create;
68 funcs->canvas_free = gui_canvas_free;
69 funcs->canvas_set_zoom = gui_canvas_set_zoom;
70 funcs->has_zoom_support = gui_has_zoom_support;
71 funcs->canvas_copy = gui_canvas_copy;
72 funcs->canvas_put_sprite = gui_canvas_put_sprite;
73 funcs->canvas_put_sprite_full = gui_canvas_put_sprite_full;
74 funcs->canvas_put_sprite_fogged = gui_canvas_put_sprite_fogged;
75 funcs->canvas_put_rectangle = gui_canvas_put_rectangle;
76 funcs->canvas_fill_sprite_area = gui_canvas_fill_sprite_area;
77 funcs->canvas_put_line = gui_canvas_put_line;
78 funcs->canvas_put_curved_line = gui_canvas_put_curved_line;
79 funcs->get_text_size = gui_get_text_size;
80 funcs->canvas_put_text = gui_canvas_put_text;
82 funcs->set_rulesets = gui_set_rulesets;
83 funcs->options_extra_init = gui_options_extra_init;
84 funcs->server_connect = gui_server_connect;
85 funcs->add_net_input = gui_add_net_input;
86 funcs->remove_net_input = gui_remove_net_input;
87 funcs->real_conn_list_dialog_update = gui_real_conn_list_dialog_update;
88 funcs->close_connection_dialog = gui_close_connection_dialog;
89 funcs->add_idle_callback = gui_add_idle_callback;
90 funcs->sound_bell = gui_sound_bell;
92 funcs->real_set_client_page = gui_real_set_client_page;
93 funcs->get_current_client_page = gui_get_current_client_page;
95 funcs->set_unit_icon = gui_set_unit_icon;
96 funcs->set_unit_icons_more_arrow = gui_set_unit_icons_more_arrow;
97 funcs->real_focus_units_changed = gui_real_focus_units_changed;
98 funcs->gui_update_font = gui_gui_update_font;
99 funcs->set_city_names_font_sizes = gui_set_city_names_font_sizes;
101 funcs->editgui_refresh = gui_editgui_refresh;
102 funcs->editgui_notify_object_created = gui_editgui_notify_object_created;
103 funcs->editgui_notify_object_changed = gui_editgui_notify_object_changed;
104 funcs->editgui_popup_properties = gui_editgui_popup_properties;
105 funcs->editgui_tileset_changed = gui_editgui_tileset_changed;
106 funcs->editgui_popdown_all = gui_editgui_popdown_all;
108 funcs->update_timeout_label = gui_update_timeout_label;
109 funcs->real_city_dialog_popup = gui_real_city_dialog_popup;
110 funcs->real_city_dialog_refresh = gui_real_city_dialog_refresh;
111 funcs->popdown_city_dialog = gui_popdown_city_dialog;
112 funcs->popdown_all_city_dialogs = gui_popdown_all_city_dialogs;
113 funcs->handmade_scenario_warning = gui_handmade_scenario_warning;
114 funcs->refresh_unit_city_dialogs = gui_refresh_unit_city_dialogs;
115 funcs->city_dialog_is_open = gui_city_dialog_is_open;
117 funcs->request_transport = gui_request_transport;
119 funcs->gui_load_theme = gui_gui_load_theme;
120 funcs->gui_clear_theme = gui_gui_clear_theme;
121 funcs->get_gui_specific_themes_directories = gui_get_gui_specific_themes_directories;
122 funcs->get_useable_themes_in_directory = gui_get_useable_themes_in_directory;