Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

main_cb.c File Reference

#include "gui.h"
#include "main_cb.h"
#include "main.h"
#include "misc.h"
#include "notebooks.h"
#include "if/gui_property.h"
#include "if/bridge/ui2c.h"
#include "lib/override.h"

Defines

#define GENERATE_MENU_HANDLER(item, tab)

Functions

 RCSID ("$Id:main_cb.c, v 1.20 2006/01/10 10:08:33 cbiere Exp $")
void quit (gboolean force)
gboolean on_main_window_delete_event (GtkWidget *unused_widget, GdkEvent *unused_event, gpointer unused_udata)
void on_button_quit_clicked (GtkButton *unused_button, gpointer unused_udata)
void on_menu_about_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
void on_menu_faq_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
void on_menu_prefs_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
void on_menu_keyboard_shortcuts_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
void on_button_about_close_clicked (GtkButton *unused_button, gpointer unused_udata)
gboolean on_dlg_about_delete_event (GtkWidget *unused_widget, GdkEvent *unused_event, gpointer unused_udata)
gboolean on_dlg_faq_delete_event (GtkWidget *unused_widget, GdkEvent *unused_event, gpointer unused_udata)
void on_button_prefs_close_clicked (GtkButton *unused_button, gpointer unused_udata)
gboolean on_dlg_prefs_delete_event (GtkWidget *unused_widget, GdkEvent *unused_event, gpointer unused_udata)
void on_button_really_quit_clicked (GtkButton *unused_button, gpointer unused_udata)
void on_button_abort_quit_clicked (GtkButton *unused_button, gpointer unused_udata)
gboolean on_dlg_quit_delete_event (GtkWidget *unused_widget, GdkEvent *unused_event, gpointer unused_udata)
 GENERATE_MENU_HANDLER (net_connections, gnet)
 GENERATE_MENU_HANDLER (net_stats, gnet_stats)
 GENERATE_MENU_HANDLER (net_hostcache, hostcache)
 GENERATE_MENU_HANDLER (uploads_transfers, uploads)
 GENERATE_MENU_HANDLER (uploads_history, uploads_stats)
 GENERATE_MENU_HANDLER (downloads_files, dl_files)
 GENERATE_MENU_HANDLER (downloads_active, dl_active)
 GENERATE_MENU_HANDLER (downloads_queue, dl_queue)
 GENERATE_MENU_HANDLER (search_results, search)
 GENERATE_MENU_HANDLER (search_monitor, monitor)
 GENERATE_MENU_HANDLER (search_stats, search_stats)


Define Documentation

#define GENERATE_MENU_HANDLER item,
tab   ) 
 

Value:

void \
on_menu_ ## item ## _activate(GtkMenuItem *unused_menuitem, \
    gpointer unused_udata) \
{ \
    (void) unused_menuitem; \
    (void) unused_udata; \
    gtk_notebook_set_page( \
        GTK_NOTEBOOK(lookup_widget(main_window, "notebook_main")), \
        nb_main_page_ ## tab ); \
}


Function Documentation

GENERATE_MENU_HANDLER search_stats  ,
search_stats 
 

GENERATE_MENU_HANDLER search_monitor  ,
monitor 
 

GENERATE_MENU_HANDLER search_results  ,
search 
 

GENERATE_MENU_HANDLER downloads_queue  ,
dl_queue 
 

GENERATE_MENU_HANDLER downloads_active  ,
dl_active 
 

GENERATE_MENU_HANDLER downloads_files  ,
dl_files 
 

GENERATE_MENU_HANDLER uploads_history  ,
uploads_stats 
 

GENERATE_MENU_HANDLER uploads_transfers  ,
uploads 
 

GENERATE_MENU_HANDLER net_hostcache  ,
hostcache 
 

GENERATE_MENU_HANDLER net_stats  ,
gnet_stats 
 

GENERATE_MENU_HANDLER net_connections  ,
gnet 
 

void on_button_abort_quit_clicked GtkButton *  unused_button,
gpointer  unused_udata
 

void on_button_about_close_clicked GtkButton *  unused_button,
gpointer  unused_udata
 

void on_button_prefs_close_clicked GtkButton *  unused_button,
gpointer  unused_udata
 

void on_button_quit_clicked GtkButton *  unused_button,
gpointer  unused_udata
 

void on_button_really_quit_clicked GtkButton *  unused_button,
gpointer  unused_udata
 

gboolean on_dlg_about_delete_event GtkWidget *  unused_widget,
GdkEvent *  unused_event,
gpointer  unused_udata
 

gboolean on_dlg_faq_delete_event GtkWidget *  unused_widget,
GdkEvent *  unused_event,
gpointer  unused_udata
 

gboolean on_dlg_prefs_delete_event GtkWidget *  unused_widget,
GdkEvent *  unused_event,
gpointer  unused_udata
 

gboolean on_dlg_quit_delete_event GtkWidget *  unused_widget,
GdkEvent *  unused_event,
gpointer  unused_udata
 

gboolean on_main_window_delete_event GtkWidget *  unused_widget,
GdkEvent *  unused_event,
gpointer  unused_udata
 

void on_menu_about_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

void on_menu_faq_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

void on_menu_keyboard_shortcuts_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

void on_menu_prefs_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

void quit gboolean  force  )  [static]
 

RCSID "$Id:main_cb.  c,
v 1.20 2006/01/10 10:08:33 cbiere Exp $" 
 


Generated on Sun Feb 12 10:50:04 2006 for Gtk-Gnutella by doxygen 1.3.6