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

main.c File Reference


Detailed Description

Main functions for GTK+ interface.

Author:
Raphael Manfredi

Richard Eckart

Date:
2001-2003

#include "gui.h"
#include "notebooks.h"
#include "main.h"
#include "misc.h"
#include "nodes.h"
#include "hcache.h"
#include "main_cb.h"
#include "settings.h"
#include "search.h"
#include "monitor.h"
#include "statusbar.h"
#include "search_stats.h"
#include "gnet_stats.h"
#include "uploads.h"
#include "upload_stats.h"
#include "downloads.h"
#include "icon.h"
#include "filter_cb.h"
#include "filter_core.h"
#include "upload_stats_cb.h"
#include "fileinfo.h"
#include "visual_progress.h"
#include "gtk-missing.h"
#include "if/bridge/ui2c.h"
#include "lib/file.h"
#include "lib/glib-missing.h"
#include "lib/tm.h"
#include "lib/utf8.h"
#include "lib/override.h"

Defines

#define gui_create_main_window()   create_main_window()

Functions

 RCSID ("$Id:main.c, v 1.52 2006/01/10 10:08:33 cbiere Exp $")
void gui_init_window_title (void)
void gui_init_menu (void)
void gui_menu_shutdown (void)
GtkWidget * gui_create_dlg_prefs (void)
void text_widget_append (GtkWidget *widget, const gchar *line)
GtkWidget * gui_create_dlg_about (void)
GtkWidget * gui_create_dlg_faq (void)
void main_gui_gtkrc_init (void)
 Searches for the gktrc file to use.

void main_gui_early_init (gint argc, gchar **argv)
 Some setup of the gui side which I wanted out of main.c but must be done before the backend can be initialized since the core code is not free of GTK yet.

void main_gui_init (void)
void main_gui_run (void)
void main_gui_shutdown (void)
void main_gui_update_coords (void)
void main_gui_timer (time_t now)
 Main gui timer.

void main_gui_shutdown_tick (guint left)

Variables

GtkWidget * main_window = NULL
GtkWidget * shutdown_window = NULL
GtkWidget * dlg_about = NULL
GtkWidget * dlg_faq = NULL
GtkWidget * dlg_prefs = NULL
GtkWidget * dlg_quit = NULL
GtkWidget * popup_downloads = NULL
GtkWidget * popup_uploads = NULL
GtkWidget * popup_search = NULL
GtkWidget * popup_search_list = NULL
GtkWidget * popup_nodes = NULL
GtkWidget * popup_monitor = NULL
GtkWidget * popup_queue = NULL
struct {
   const gint   depth
   const gchar *   title
   const gint   page
menu []
 The contents of the navigation tree menu in exact order.


Define Documentation

 
#define gui_create_main_window  )     create_main_window()
 


Function Documentation

GtkWidget* gui_create_dlg_about void   )  [static]
 

GtkWidget* gui_create_dlg_faq void   )  [static]
 

GtkWidget* gui_create_dlg_prefs void   )  [static]
 

void gui_init_menu void   )  [static]
 

void gui_init_window_title void   )  [static]
 

void gui_menu_shutdown void   )  [static]
 

void main_gui_early_init gint  argc,
gchar **  argv
 

Some setup of the gui side which I wanted out of main.c but must be done before the backend can be initialized since the core code is not free of GTK yet.

-- Richard, 6/9/2002

void main_gui_gtkrc_init void   ) 
 

Searches for the gktrc file to use.

Order in which they are scanned:

  • $HOME/.gtkrc
  • $HOME/.gtk/gtkrc
  • $HOME/.gtk1/gtkrc ($HOME/.gtk2/gtkrc if GTK2 interface is used)
  • $GTK_GNUTELLA_DIR/gtkrc
  • ./gtkrc

Where the last one can overrule settings from earlier resource files.

void main_gui_init void   ) 
 

void main_gui_run void   ) 
 

void main_gui_shutdown void   ) 
 

void main_gui_shutdown_tick guint  left  ) 
 

void main_gui_timer time_t  now  ) 
 

Main gui timer.

This is called once a second.

void main_gui_update_coords void   ) 
 

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

void text_widget_append GtkWidget *  widget,
const gchar *  line
[static]
 


Variable Documentation

const gint depth
 

Depth in tree.

GtkWidget* dlg_about = NULL
 

GtkWidget* dlg_faq = NULL
 

GtkWidget* dlg_prefs = NULL
 

GtkWidget* dlg_quit = NULL
 

GtkWidget* main_window = NULL
 

const { ... } menu[] [static]
 

The contents of the navigation tree menu in exact order.

const gint page
 

Page reference ("the target") for the node.

GtkWidget* popup_downloads = NULL
 

GtkWidget* popup_monitor = NULL
 

GtkWidget* popup_nodes = NULL
 

GtkWidget* popup_queue = NULL
 

GtkWidget* popup_search = NULL
 

GtkWidget* popup_search_list = NULL
 

GtkWidget* popup_uploads = NULL
 

GtkWidget* shutdown_window = NULL
 

const gchar* title
 

Translatable title for the node.


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