Crossfire Client, Trunk
R19707
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
home
leaf
crossfire
client
trunk
gtk-v2
src
about.c
Go to the documentation of this file.
1
/*
2
* Crossfire -- cooperative multi-player graphical RPG and adventure game
3
*
4
* Copyright (c) 1999-2013 Mark Wedel and the Crossfire Development Team
5
* Copyright (c) 1992 Frank Tore Johansen
6
*
7
* Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are
8
* welcome to redistribute it under certain conditions. For details, please
9
* see COPYING and LICENSE.
10
*
11
* The authors can be reached via e-mail at <crossfire@metalforge.org>.
12
*/
13
19
#ifdef HAVE_CONFIG_H
20
#include <config.h>
21
#endif
22
23
#include <ctype.h>
24
#include <gtk/gtk.h>
25
26
#include "
client.h
"
27
28
#include "
main.h
"
29
#include "
image.h
"
30
#include "
gtk2proto.h
"
31
#include "../../pixmaps/crossfiretitle.xpm"
32
33
static
GtkWidget *
about_window
= NULL;
34
41
void
menu_about
(GtkMenuItem *menuitem, gpointer user_data) {
42
if
(!
about_window
) {
43
GtkImage *about_image;
44
45
about_window
= GTK_WIDGET(gtk_builder_get_object(
dialog_xml
,
"about_window"
));
46
about_image = GTK_IMAGE(gtk_builder_get_object(
dialog_xml
,
"about_image"
));
47
48
g_signal_connect((gpointer)
about_window
,
"delete_event"
,
49
G_CALLBACK(gtk_widget_hide_on_delete), NULL);
50
51
/* Load Crossfire image from inline XPM. */
52
gtk_image_set_from_pixbuf(about_image, gdk_pixbuf_new_from_xpm_data(
53
(
const
char
**)crossfiretitle_xpm));
54
55
gtk_widget_show(about_window);
56
}
else
{
57
gtk_widget_show(
about_window
);
58
}
59
}
60
67
void
on_about_close_clicked
(GtkButton *button, gpointer user_data) {
68
gtk_widget_hide(
about_window
);
69
}
menu_about
void menu_about(GtkMenuItem *menuitem, gpointer user_data)
Instantiates and displays the client's about box dialog.
Definition:
about.c:41
gtk2proto.h
main.h
Contains various global definitions and XML file name and path defaults.
image.h
Pixmap data.
on_about_close_clicked
void on_about_close_clicked(GtkButton *button, gpointer user_data)
Closes and hides the client's about box dialog.
Definition:
about.c:67
client.h
Includes various dependencies header files needed by most everything.
about_window
static GtkWidget * about_window
Definition:
about.c:33
dialog_xml
GtkBuilder * dialog_xml
Definition:
main.c:101
Generated on Tue Nov 4 2014 15:07:16 for Crossfire Client, Trunk by
1.8.6