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

ui/gtk/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/glib-missing.h"
#include "lib/tm.h"
#include "lib/utf8.h"
#include "lib/override.h"

Defines

#define WIDGET(name)

Functions

void gui_init_window_title (void)
void gui_init_menu (void)
void gui_menu_shutdown (void)
void gui_init_main_window (void)
 Handles main window UI joining.
void gui_init_dlg_prefs (void)
void text_widget_append (GtkWidget *widget, const gchar *line)
void gui_init_dlg_about (void)
void main_gui_gtkrc_init (void)
 Searches for the gktrc file to use.
void main_gui_early_init (gint argc, gchar **argv, gboolean disable_xshm)
 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 (const gchar *geometry_spec)
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

struct {
   const gint   depth
 Depth in tree.
   const gchar *   title
 Translatable title for the node.
   const gint   page
 Page reference ("the target") for the node.
menu []
 The contents of the navigation tree menu in exact order.


Define Documentation

#define WIDGET name   ) 
 

Value:

static GtkWidget * name ## _protected_ ; \
 \
GtkWidget *gui_ ## name (void) \
{ \
    return name ## _protected_ ; \
} \
 \
static inline void \
gui_ ## name ## _set (GtkWidget *w) \
{ \
    name ## _protected_ = w; \
} \
 \
GtkWidget * \
gui_ ## name ## _lookup(const gchar *id) \
{ \
    return lookup_widget(name ## _protected_ , id); \
}


Function Documentation

void gui_init_dlg_about void   )  [static]
 

void gui_init_dlg_prefs void   )  [static]
 

void gui_init_main_window void   )  [static]
 

Handles main window UI joining.

Creates all dependent "tab" windows and merges them into the main notebook.

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,
gboolean  disable_xshm
 

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

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

void main_gui_init void   ) 
 

void main_gui_run const gchar *  geometry_spec  ) 
 

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   ) 
 

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


Variable Documentation

const gint depth
 

Depth in tree.

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

The contents of the navigation tree menu in exact order.

const gint page
 

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

const gchar* title
 

Translatable title for the node.


Generated on Sat Jun 30 17:53:28 2007 for gtk-gnutella by  doxygen 1.3.9.1