comparison src/about.c @ 523:023c3851db0a

[gaim-migrate @ 533] fixed some html stuff committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 25 Jul 2000 05:09:14 +0000
parents 3a08866712a8
children f03f041c1aa9
comparison
equal deleted inserted replaced
522:11cbf8b403b6 523:023c3851db0a
39 gtk_widget_destroy(about); 39 gtk_widget_destroy(about);
40 about = NULL; 40 about = NULL;
41 } 41 }
42 42
43 43
44 static void about_click(GtkWidget *w, gpointer m)
45 {
46 open_url_nw(NULL, "http://www.marko.net/gaim/");
47 }
48
44 49
45 void show_about(GtkWidget *w, void *null) 50 void show_about(GtkWidget *w, void *null)
46 { 51 {
47 GtkWidget *button; 52 GtkWidget *button;
48 GtkWidget *vbox; 53 GtkWidget *vbox;
49 GtkWidget *pixmap; 54 GtkWidget *pixmap;
50 GtkWidget *label; 55 GtkWidget *label;
56 GtkWidget *eventbox;
57 GtkWidget *label2;
51 GtkStyle *style; 58 GtkStyle *style;
52 GdkPixmap *pm; 59 GdkPixmap *pm;
53 GdkBitmap *bm; 60 GdkBitmap *bm;
54 char abouttitle[45]; 61 char abouttitle[45];
55 62
87 "\n" 94 "\n"
88 "Gaim is brought to you by a team of penguin pimps, the letter G, and beer.\n"); 95 "Gaim is brought to you by a team of penguin pimps, the letter G, and beer.\n");
89 96
90 gtk_box_pack_start(GTK_BOX(vbox), label, TRUE, TRUE, 0); 97 gtk_box_pack_start(GTK_BOX(vbox), label, TRUE, TRUE, 0);
91 gtk_widget_show(label); 98 gtk_widget_show(label);
99
100 eventbox = gtk_event_box_new();
101 gtk_box_pack_start(GTK_BOX(vbox), eventbox, TRUE, TRUE, 0);
102 gtk_widget_show(eventbox);
103
104 label2 = gtk_label_new("Gaim " VERSION " - http://www.marko.net/gaim/\n");
105 gtk_container_add(GTK_CONTAINER(eventbox), label2);
106 gtk_widget_show(label2);
107
108 gtk_signal_connect(GTK_OBJECT(eventbox), "button_press_event",
109 GTK_SIGNAL_FUNC(about_click), NULL);
110 gdk_window_set_cursor(eventbox->window, gdk_cursor_new(GDK_HAND2));
92 111
93 button = gtk_button_new_with_label(_("Close")); 112 button = gtk_button_new_with_label(_("Close"));
94 gtk_signal_connect_object(GTK_OBJECT(button), "clicked", 113 gtk_signal_connect_object(GTK_OBJECT(button), "clicked",
95 GTK_SIGNAL_FUNC(destroy_about), GTK_OBJECT(about)); 114 GTK_SIGNAL_FUNC(destroy_about), GTK_OBJECT(about));
96 gtk_signal_connect(GTK_OBJECT(about), "destroy", 115 gtk_signal_connect(GTK_OBJECT(about), "destroy",