2 "$Id: about.c 9204 2008-06-01 18:01:36Z anmaster $";
35 #include <glade/glade.h>
44 #include "../../pixmaps/crossfiretitle.xpm"
63 GtkTextBuffer *textbuf;
66 GtkWidget *aboutgtkpixmap;
67 GdkPixmap *aboutgdkpixmap;
68 GdkBitmap *aboutgdkmask;
71 xml_tree = glade_get_widget_tree(GTK_WIDGET(
about_window));
73 textview = glade_xml_get_widget(xml_tree,
"about_textview");
75 widget = glade_xml_get_widget(xml_tree,
"about_close");
76 g_signal_connect ((gpointer) widget,
"clicked",
79 textbuf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(textview));
81 gtk_text_buffer_get_end_iter(textbuf, &end);
84 gtk_text_buffer_insert(textbuf, &end,
"\n", 1);
85 gtk_text_buffer_insert(textbuf, &end,
text, strlen(
text));
90 aboutgdkpixmap = gdk_pixmap_create_from_xpm_d(
about_window->window,
93 (gchar **)crossfiretitle_xpm);
95 aboutgtkpixmap= gtk_image_new_from_pixmap (aboutgdkpixmap,
103 hbox = glade_xml_get_widget(xml_tree,
"about_hbox_image");
105 gtk_box_pack_start (GTK_BOX (hbox),aboutgtkpixmap,
TRUE,
TRUE, 0);
107 gtk_widget_show(aboutgtkpixmap);
void menu_about(GtkMenuItem *menuitem, gpointer user_data)
const char *const rcsid_gtk2_about_c
void on_about_close_clicked(GtkButton *button, gpointer user_data)
static GtkWidget * about_window