Crossfire Client, Branches
R11627
|
#include <gtk/gtk.h>
#include <glade/glade.h>
#include "client.h"
#include "p_cmd.h"
#include "main.h"
#include "image.h"
#include "gtk2proto.h"
Go to the source code of this file.
Functions | |
void | enable_menu_items (int enable) |
void | menu_quit_character (GtkMenuItem *menuitem, gpointer user_data) |
void | menu_quit_program (GtkMenuItem *menuitem, gpointer user_data) |
void | on_disconnect_activate (GtkMenuItem *menuitem, gpointer user_data) |
Variables | |
const char *const | rcsid_gtk2_menubar_c |
Implements the core selections from the top menubar.
Quick notes on the menubar: 1) Using the stock Quit menu item for some reason causes it to take several seconds of 100% cpu utilization to show the menu. So I don't use the stock item.
Definition in file menubar.c.
void enable_menu_items | ( | int | enable | ) |
Enables/disables menubar options and connects signals to them. Some do not make sense if not connected to the server, so should be disabled until connected.
enable | If true, enable the items, if false, disable them. Presently it looks as though enable is not actually used at all. Is this a bug? |
Definition at line 121 of file menubar.c.
References menu_about(), menu_quit_character(), menu_quit_program(), on_configure_activate(), on_disconnect_activate(), on_keybindings_activate(), on_menu_all_weapons_activate(), on_menu_arrows_activate(), on_menu_body_armor_activate(), on_menu_boots_activate(), on_menu_bows_activate(), on_menu_cloaks_activate(), on_menu_dont_pickup_activate(), on_menu_drinks_activate(), on_menu_flesh_activate(), on_menu_food_activate(), on_menu_gloves_activate(), on_menu_helmets_activate(), on_menu_jewels_activate(), on_menu_keys_activate(), on_menu_magical_items_activate(), on_menu_missile_weapons_activate(), on_menu_normal_book_scrolls_activate(), on_menu_not_cursed_activate(), on_menu_potions_activate(), on_menu_ratio_10_activate(), on_menu_ratio_15_activate(), on_menu_ratio_20_activate(), on_menu_ratio_25_activate(), on_menu_ratio_35_activate(), on_menu_ratio_40_activate(), on_menu_ratio_45_activate(), on_menu_ratio_50_activate(), on_menu_ratio_5_activate(), on_menu_ratio_pickup_off_activate(), on_menu_shields_activate(), on_menu_skillscrolls_activate(), on_menu_spellbooks_activate(), on_menu_stop_before_pickup_activate(), on_menu_valuables_activate(), on_menu_wands_rods_horns_activate(), on_save_window_position_activate(), on_spells_activate(), and window_root.
Referenced by get_metaserver(), and main().
void menu_quit_character | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
File | Quit Character Causes the client to ask the server to delete the current character.
menuitem | |
user_data |
Definition at line 106 of file menubar.c.
References extended_command().
Referenced by enable_menu_items().
void menu_quit_program | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
File | Quit Shuts down the client application.
menuitem | |
user_data |
Definition at line 86 of file menubar.c.
References LOG(), and LOG_INFO.
Referenced by enable_menu_items().
void on_disconnect_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Client | Disconnect Triggers the client to disconnect from the server.
menuitem | |
user_data |
Definition at line 60 of file menubar.c.
References csocket, csocket_fd, and ClientSocket::fd.
Referenced by enable_menu_items().