Crossfire Client, Trunk  R18666
Enumerations | Functions | Variables
/home/leaf/crossfire/client/trunk/gtk-v2/src/metaserver.c File Reference
#include <gtk/gtk.h>
#include <glade/glade.h>
#include "client.h"
#include "image.h"
#include "main.h"
#include "gtk2proto.h"
#include "metaserver.h"
#include <pthread.h>
Include dependency graph for metaserver.c:

Go to the source code of this file.

Enumerations

enum  {
  LIST_HOSTNAME, LIST_IPADDR, LIST_IDLETIME, LIST_PLAYERS,
  LIST_VERSION, LIST_COMMENT
}

Functions

gboolean metaserver_selection_func (GtkTreeSelection *selection, GtkTreeModel *model, GtkTreePath *path, gboolean path_currently_selected, gpointer userdata)
void get_metaserver (void)
void on_metaserver_select_clicked (GtkButton *button, gpointer user_data)
void on_treeview_metaserver_row_activated (GtkTreeView *treeview, GtkTreePath *path, GtkTreeViewColumn *column, gpointer user_data)
void on_metaserver_text_entry_activate (GtkEntry *entry, gpointer user_data)
void on_button_metaserver_quit_pressed (GtkButton *button, gpointer user_data)
gboolean on_metaserver_text_entry_key_press_event (GtkWidget *widget, GdkEventKey *event, gpointer user_data)

Variables

const char *const rcsid_gtk2_metaserver_c = "$Id: metaserver.c 13042 2010-04-30 01:02:01Z kbulgrien $"

Detailed Description

Supports the client's metaserver dialog used to connect to available servers.

Definition in file metaserver.c.


Enumeration Type Documentation

anonymous enum
Enumerator:
LIST_HOSTNAME 
LIST_IPADDR 
LIST_IDLETIME 
LIST_PLAYERS 
LIST_VERSION 
LIST_COMMENT 

Definition at line 51 of file metaserver.c.


Function Documentation

void get_metaserver ( void  )

Constructs the metaserver dialog and handles metaserver selection. If the player has a servers.cache file in their .crossfire folder, the cached server list is added to the contents of the metaserver dialog.

Definition at line 84 of file metaserver.c.

Here is the call graph for this function:

Here is the caller graph for this function:

gboolean metaserver_selection_func ( GtkTreeSelection *  selection,
GtkTreeModel *  model,
GtkTreePath *  path,
gboolean  path_currently_selected,
gpointer  userdata 
)

Enables the connect button and clears the server entry box when a server is navigated to or otherwise selected.

Parameters:
selection
model
path
path_currently_selected
userdata
Returns:
TRUE

Definition at line 66 of file metaserver.c.

Here is the caller graph for this function:

void on_button_metaserver_quit_pressed ( GtkButton *  button,
gpointer  user_data 
)

Quits the client application if the quit button is pressed. This is also used to quit the client if the button's accelerator is pressed.

Parameters:
button
user_data

Definition at line 385 of file metaserver.c.

Here is the caller graph for this function:

void on_metaserver_select_clicked ( GtkButton *  button,
gpointer  user_data 
)

Establish a connection with the server when pressing the connect button.

Parameters:
button
user_data

Definition at line 303 of file metaserver.c.

Here is the caller graph for this function:

void on_metaserver_text_entry_activate ( GtkEntry *  entry,
gpointer  user_data 
)

This callback handles the user entering text into the metaserver freeform entry box.

Parameters:
entry
user_data

Definition at line 367 of file metaserver.c.

Here is the caller graph for this function:

gboolean on_metaserver_text_entry_key_press_event ( GtkWidget *  widget,
GdkEventKey *  event,
gpointer  user_data 
)

Activate the connect button and unselect servers if keys are pressed to enter a server name.

Parameters:
widget
event
user_data
Returns:
FALSE

Definition at line 405 of file metaserver.c.

Here is the caller graph for this function:

void on_treeview_metaserver_row_activated ( GtkTreeView *  treeview,
GtkTreePath *  path,
GtkTreeViewColumn *  column,
gpointer  user_data 
)

Selects and attempts a connection to a server if the player activates one of the server entries.

Parameters:
treeview
path
column
user_data

Definition at line 343 of file metaserver.c.

Here is the caller graph for this function:


Variable Documentation

const char* const rcsid_gtk2_metaserver_c = "$Id: metaserver.c 13042 2010-04-30 01:02:01Z kbulgrien $"

Definition at line 1 of file metaserver.c.