Mercurial > pidgin.yaz
comparison src/about.c @ 546:e312b8b9bee5
[gaim-migrate @ 556]
--version
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 28 Jul 2000 18:48:56 +0000 |
parents | ee458e99d60f |
children | 0f73dbdcd71f |
comparison
equal
deleted
inserted
replaced
545:d5425f922879 | 546:e312b8b9bee5 |
---|---|
36 static void destroy_about() | 36 static void destroy_about() |
37 { | 37 { |
38 if (about) | 38 if (about) |
39 gtk_widget_destroy(about); | 39 gtk_widget_destroy(about); |
40 about = NULL; | 40 about = NULL; |
41 } | |
42 | |
43 | |
44 static void version_exit() | |
45 { | |
46 exit(0); | |
41 } | 47 } |
42 | 48 |
43 | 49 |
44 static void about_click(GtkWidget *w, gpointer m) | 50 static void about_click(GtkWidget *w, gpointer m) |
45 { | 51 { |
108 gtk_signal_connect(GTK_OBJECT(eventbox), "button_press_event", | 114 gtk_signal_connect(GTK_OBJECT(eventbox), "button_press_event", |
109 GTK_SIGNAL_FUNC(about_click), NULL); | 115 GTK_SIGNAL_FUNC(about_click), NULL); |
110 gdk_window_set_cursor(eventbox->window, gdk_cursor_new(GDK_HAND2)); | 116 gdk_window_set_cursor(eventbox->window, gdk_cursor_new(GDK_HAND2)); |
111 | 117 |
112 button = gtk_button_new_with_label(_("Close")); | 118 button = gtk_button_new_with_label(_("Close")); |
113 gtk_signal_connect_object(GTK_OBJECT(button), "clicked", | 119 if (null == NULL) /* there's a mindtrip */ |
114 GTK_SIGNAL_FUNC(destroy_about), GTK_OBJECT(about)); | 120 gtk_signal_connect_object(GTK_OBJECT(button), "clicked", |
121 GTK_SIGNAL_FUNC(destroy_about), GTK_OBJECT(about)); | |
122 else | |
123 gtk_signal_connect(GTK_OBJECT(button), "clicked", | |
124 GTK_SIGNAL_FUNC(version_exit), NULL); | |
115 gtk_signal_connect(GTK_OBJECT(about), "destroy", | 125 gtk_signal_connect(GTK_OBJECT(about), "destroy", |
116 GTK_SIGNAL_FUNC(destroy_about), GTK_OBJECT(about)); | 126 GTK_SIGNAL_FUNC(destroy_about), GTK_OBJECT(about)); |
117 | 127 |
118 if (display_options & OPT_DISP_COOL_LOOK) | 128 if (display_options & OPT_DISP_COOL_LOOK) |
119 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); | 129 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); |