2 "$Id: menubar.c 9193 2008-06-01 14:26:32Z anmaster $";
43 #include <glade/glade.h>
72 gdk_input_remove(csocket_fd);
93 LOG(
LOG_INFO,
"gtk::client_exit",
"Exiting with return value 0.");
126 xml_tree = glade_get_widget_tree(GTK_WIDGET(
window_root));
128 widget = glade_xml_get_widget(xml_tree,
"quit_character1");
129 g_signal_connect ((gpointer) widget,
"activate",
132 widget = glade_xml_get_widget(xml_tree,
"quit2");
133 g_signal_connect ((gpointer) widget,
"activate",
136 widget = glade_xml_get_widget(xml_tree,
"configure1");
137 g_signal_connect ((gpointer) widget,
"activate",
140 widget = glade_xml_get_widget(xml_tree,
"disconnect");
141 g_signal_connect ((gpointer) widget,
"activate",
144 widget = glade_xml_get_widget(xml_tree,
"keybindings");
145 g_signal_connect ((gpointer) widget,
"activate",
148 widget = glade_xml_get_widget(xml_tree,
"save_window_position");
149 g_signal_connect ((gpointer) widget,
"activate",
152 widget = glade_xml_get_widget(xml_tree,
"spells");
153 g_signal_connect ((gpointer) widget,
"activate",
156 widget = glade_xml_get_widget(xml_tree,
"do_not_pickup");
157 g_signal_connect ((gpointer) widget,
"activate",
160 widget = glade_xml_get_widget(xml_tree,
"stop_before_pickup1");
161 g_signal_connect ((gpointer) widget,
"activate",
164 widget = glade_xml_get_widget(xml_tree,
"body_armor1");
165 g_signal_connect ((gpointer) widget,
"activate",
168 widget = glade_xml_get_widget(xml_tree,
"boots1");
169 g_signal_connect ((gpointer) widget,
"activate",
172 widget = glade_xml_get_widget(xml_tree,
"cloaks1");
173 g_signal_connect ((gpointer) widget,
"activate",
176 widget = glade_xml_get_widget(xml_tree,
"gloves1");
177 g_signal_connect ((gpointer) widget,
"activate",
180 widget = glade_xml_get_widget(xml_tree,
"helmets1");
181 g_signal_connect ((gpointer) widget,
"activate",
184 widget = glade_xml_get_widget(xml_tree,
"shields1");
185 g_signal_connect ((gpointer) widget,
"activate",
188 widget = glade_xml_get_widget(xml_tree,
"skillscrolls1");
189 g_signal_connect ((gpointer) widget,
"activate",
192 widget = glade_xml_get_widget(xml_tree,
"normal_book_scrolls1");
193 g_signal_connect ((gpointer) widget,
"activate",
196 widget = glade_xml_get_widget(xml_tree,
"spellbooks1");
197 g_signal_connect ((gpointer) widget,
"activate",
200 widget = glade_xml_get_widget(xml_tree,
"drinks1");
201 g_signal_connect ((gpointer) widget,
"activate",
204 widget = glade_xml_get_widget(xml_tree,
"food1");
205 g_signal_connect ((gpointer) widget,
"activate",
208 widget = glade_xml_get_widget(xml_tree,
"flesh1");
209 g_signal_connect ((gpointer) widget,
"activate",
212 widget = glade_xml_get_widget(xml_tree,
"keys1");
213 g_signal_connect ((gpointer) widget,
"activate",
216 widget = glade_xml_get_widget(xml_tree,
"magical_items");
217 g_signal_connect ((gpointer) widget,
"activate",
220 widget = glade_xml_get_widget(xml_tree,
"potions");
221 g_signal_connect ((gpointer) widget,
"activate",
224 widget = glade_xml_get_widget(xml_tree,
"valuables");
225 g_signal_connect ((gpointer) widget,
"activate",
228 widget = glade_xml_get_widget(xml_tree,
"wands_rods_horns");
229 g_signal_connect ((gpointer) widget,
"activate",
232 widget = glade_xml_get_widget(xml_tree,
"jewels1");
233 g_signal_connect ((gpointer) widget,
"activate",
236 widget = glade_xml_get_widget(xml_tree,
"all_weapons");
237 g_signal_connect ((gpointer) widget,
"activate",
240 widget = glade_xml_get_widget(xml_tree,
"missile_weapons1");
241 g_signal_connect ((gpointer) widget,
"activate",
244 widget = glade_xml_get_widget(xml_tree,
"bows1");
245 g_signal_connect ((gpointer) widget,
"activate",
248 widget = glade_xml_get_widget(xml_tree,
"arrows1");
249 g_signal_connect ((gpointer) widget,
"activate",
252 widget = glade_xml_get_widget(xml_tree,
"ratio_pickup_off1");
253 g_signal_connect ((gpointer) widget,
"activate",
256 widget = glade_xml_get_widget(xml_tree,
"ratio_5");
257 g_signal_connect ((gpointer) widget,
"activate",
260 widget = glade_xml_get_widget(xml_tree,
"ratio_10");
261 g_signal_connect ((gpointer) widget,
"activate",
264 widget = glade_xml_get_widget(xml_tree,
"ratio_15");
265 g_signal_connect ((gpointer) widget,
"activate",
268 widget = glade_xml_get_widget(xml_tree,
"ratio_20");
269 g_signal_connect ((gpointer) widget,
"activate",
272 widget = glade_xml_get_widget(xml_tree,
"ratio_25");
273 g_signal_connect ((gpointer) widget,
"activate",
276 widget = glade_xml_get_widget(xml_tree,
"ratio_30");
277 g_signal_connect ((gpointer) widget,
"activate",
280 widget = glade_xml_get_widget(xml_tree,
"ratio_35");
281 g_signal_connect ((gpointer) widget,
"activate",
284 widget = glade_xml_get_widget(xml_tree,
"ratio_40");
285 g_signal_connect ((gpointer) widget,
"activate",
288 widget = glade_xml_get_widget(xml_tree,
"ratio_45");
289 g_signal_connect ((gpointer) widget,
"activate",
292 widget = glade_xml_get_widget(xml_tree,
"ratio_50");
293 g_signal_connect ((gpointer) widget,
"activate",
296 widget = glade_xml_get_widget(xml_tree,
"not_cursed1");
297 g_signal_connect ((gpointer) widget,
"activate",
300 widget = glade_xml_get_widget(xml_tree,
"about1");
301 g_signal_connect ((gpointer) widget,
"activate",
void on_menu_bows_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_boots_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_ratio_25_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_ratio_5_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_keybindings_activate(GtkMenuItem *menuitem, gpointer user_data)
void menu_about(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_gloves_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_body_armor_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_ratio_40_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_normal_book_scrolls_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_keys_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_cloaks_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_food_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_skillscrolls_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_all_weapons_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_potions_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_configure_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_ratio_50_activate(GtkMenuItem *menuitem, gpointer user_data)
void LOG(LogLevel level, const char *origin, const char *format,...)
void on_menu_ratio_45_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_shields_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_flesh_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_spellbooks_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_not_cursed_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_stop_before_pickup_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_dont_pickup_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_helmets_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_spells_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_ratio_20_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_jewels_activate(GtkMenuItem *menuitem, gpointer user_data)
void extended_command(const char *ocommand)
void on_menu_ratio_10_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_missile_weapons_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_ratio_35_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_ratio_pickup_off_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_valuables_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_magical_items_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_ratio_15_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_save_window_position_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_wands_rods_horns_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_drinks_activate(GtkMenuItem *menuitem, gpointer user_data)
void on_menu_arrows_activate(GtkMenuItem *menuitem, gpointer user_data)