Mercurial > pidgin.yaz
comparison src/about.c @ 4082:4b04ecb3eb97
[gaim-migrate @ 4297]
(22:54:38) Robot101: * Make sure prefs are saved before plugins are removed, and not afterwards.
(22:54:59) Robot101: * Move do_quit() into aim.c and make sure everything appropriate uses it.
(22:55:12) Robot101: * Remove duplicated cancel_login for closing the main window, use do_quit instead.
(22:55:49) Robot101: * Remove uncalled code pertaining to closing the about window from when it was called via gaim -v.
(22:56:06) LSchiere: what's this in sounds?
(22:56:29) Robot101: * Add correct ifdefs to prefs so only compiled-in sound methods are shown.
(22:56:34) LSchiere: if you broke my sounds...
(22:57:07) Robot101: * Remove unused sound order data, and clarify comments and debug output.
(22:57:56) Robot101: * Remove duplicated check which is performed at the start of play_file anyway.
(22:58:03) Robot101: that's the lot
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Mon, 16 Dec 2002 03:58:54 +0000 |
parents | 3ccbdf8e7f8d |
children | 9c31ddae80a1 |
comparison
equal
deleted
inserted
replaced
4081:b35cf600fe30 | 4082:4b04ecb3eb97 |
---|---|
38 if (about) | 38 if (about) |
39 gtk_widget_destroy(about); | 39 gtk_widget_destroy(about); |
40 about = NULL; | 40 about = NULL; |
41 } | 41 } |
42 | 42 |
43 | |
44 static void version_exit() | |
45 { | |
46 gtk_main_quit(); | |
47 } | |
48 | |
49 | |
50 char *name() | 43 char *name() |
51 { | 44 { |
52 return PACKAGE; | 45 return PACKAGE; |
53 } | 46 } |
54 | 47 |
60 char *version() | 53 char *version() |
61 { | 54 { |
62 return VERSION; | 55 return VERSION; |
63 } | 56 } |
64 | 57 |
65 void show_about(GtkWidget *w, void *null) | 58 void show_about(GtkWidget *w, void *data) |
66 { | 59 { |
67 GtkWidget *vbox; | 60 GtkWidget *vbox; |
68 GtkWidget *frame; | 61 GtkWidget *frame; |
69 GtkWidget *fbox; | 62 GtkWidget *fbox; |
70 GtkWidget *hbox; | 63 GtkWidget *hbox; |
178 gtk_widget_show(hbox); | 171 gtk_widget_show(hbox); |
179 | 172 |
180 button = gaim_pixbuf_button_from_stock(_("Close"), GTK_STOCK_CLOSE, GAIM_BUTTON_HORIZONTAL); | 173 button = gaim_pixbuf_button_from_stock(_("Close"), GTK_STOCK_CLOSE, GAIM_BUTTON_HORIZONTAL); |
181 gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); | 174 gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); |
182 | 175 |
183 if (null != (void *)2) { | 176 gtk_signal_connect_object(GTK_OBJECT(button), "clicked", |
184 /* 2 can be as sad as 1, it's the loneliest number since the number 1 */ | 177 GTK_SIGNAL_FUNC(destroy_about), GTK_OBJECT(about)); |
185 gtk_signal_connect_object(GTK_OBJECT(button), "clicked", | 178 gtk_signal_connect(GTK_OBJECT(about), "destroy", |
186 GTK_SIGNAL_FUNC(destroy_about), GTK_OBJECT(about)); | |
187 gtk_signal_connect(GTK_OBJECT(about), "destroy", | |
188 GTK_SIGNAL_FUNC(destroy_about), GTK_OBJECT(about)); | 179 GTK_SIGNAL_FUNC(destroy_about), GTK_OBJECT(about)); |
189 } else { | |
190 gtk_signal_connect(GTK_OBJECT(button), "clicked", | |
191 GTK_SIGNAL_FUNC(version_exit), NULL); | |
192 gtk_signal_connect(GTK_OBJECT(about), "destroy", | |
193 GTK_SIGNAL_FUNC(version_exit), NULL); | |
194 } | |
195 gtk_widget_show(button); | 180 gtk_widget_show(button); |
196 | 181 |
197 /* this makes the sizes not work. */ | 182 /* this makes the sizes not work. */ |
198 /* GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); */ | 183 /* GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); */ |
199 /* gtk_widget_grab_default(button); */ | 184 /* gtk_widget_grab_default(button); */ |
201 gtk_widget_show(button); | 186 gtk_widget_show(button); |
202 } | 187 } |
203 | 188 |
204 /* Let's give'em something to talk about -- woah woah woah */ | 189 /* Let's give'em something to talk about -- woah woah woah */ |
205 gtk_widget_show(about); | 190 gtk_widget_show(about); |
206 | 191 gtk_window_present(about); |
207 gdk_window_raise(about->window); | |
208 } | 192 } |