Mercurial > pidgin
comparison src/about.c @ 2450:59bac9b1a716
[gaim-migrate @ 2463]
bmiller's patch
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 08 Oct 2001 15:07:42 +0000 |
parents | 20d1c2c945c9 |
children | 5639484fccc9 |
comparison
equal
deleted
inserted
replaced
2449:cbac74881be9 | 2450:59bac9b1a716 |
---|---|
99 aol_icon(about->window); | 99 aol_icon(about->window); |
100 | 100 |
101 vbox = gtk_vbox_new(FALSE, 5); | 101 vbox = gtk_vbox_new(FALSE, 5); |
102 gtk_container_set_border_width(GTK_CONTAINER(vbox), 5); | 102 gtk_container_set_border_width(GTK_CONTAINER(vbox), 5); |
103 gtk_container_add(GTK_CONTAINER(about), vbox); | 103 gtk_container_add(GTK_CONTAINER(about), vbox); |
104 gtk_widget_show(vbox); | |
104 | 105 |
105 frame = gtk_frame_new("Gaim " VERSION); | 106 frame = gtk_frame_new("Gaim " VERSION); |
106 gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0); | 107 gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0); |
108 gtk_widget_show(frame); | |
107 | 109 |
108 fbox = gtk_vbox_new(FALSE, 5); | 110 fbox = gtk_vbox_new(FALSE, 5); |
109 gtk_container_set_border_width(GTK_CONTAINER(fbox), 5); | 111 gtk_container_set_border_width(GTK_CONTAINER(fbox), 5); |
110 gtk_container_add(GTK_CONTAINER(frame), fbox); | 112 gtk_container_add(GTK_CONTAINER(frame), fbox); |
113 gtk_widget_show(fbox); | |
111 | 114 |
112 /* Left side, TOP */ | 115 /* Left side, TOP */ |
113 style = gtk_widget_get_style(about); | 116 style = gtk_widget_get_style(about); |
114 pm = gdk_pixmap_create_from_xpm_d(about->window, &bm, | 117 pm = gdk_pixmap_create_from_xpm_d(about->window, &bm, |
115 &style->bg[GTK_STATE_NORMAL], (gchar **)aol_logo); | 118 &style->bg[GTK_STATE_NORMAL], (gchar **)aol_logo); |
116 pixmap = gtk_pixmap_new(pm, bm); | 119 pixmap = gtk_pixmap_new(pm, bm); |
117 | |
118 gdk_pixmap_unref(pm); | 120 gdk_pixmap_unref(pm); |
119 gdk_bitmap_unref(bm); | 121 gdk_bitmap_unref(bm); |
120 | |
121 gtk_box_pack_start(GTK_BOX(fbox), pixmap, FALSE, FALSE, 0); | 122 gtk_box_pack_start(GTK_BOX(fbox), pixmap, FALSE, FALSE, 0); |
123 gtk_widget_show(pixmap); | |
122 | 124 |
123 label = | 125 label = |
124 gtk_label_new( | 126 gtk_label_new( |
125 _("GAIM is a client that supports AOL's Instant Messenger protocol. It is written\n" | 127 _("GAIM is a client that supports AOL's Instant Messenger protocol. It is written\n" |
126 "using Gtk+ and is licensed under the GPL.\n\n" "URL: " WEBSITE "\n\n" | 128 "using Gtk+ and is licensed under the GPL.\n\n" "URL: " WEBSITE "\n\n" |
127 "IRC: #gaim on irc.openprojects.net")); | 129 "IRC: #gaim on irc.openprojects.net")); |
128 | 130 |
129 gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); | 131 gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); |
130 | |
131 gtk_box_pack_start(GTK_BOX(fbox), label, TRUE, TRUE, 0); | 132 gtk_box_pack_start(GTK_BOX(fbox), label, TRUE, TRUE, 0); |
133 gtk_widget_show(label); | |
132 | 134 |
133 text = gtk_text_new(NULL, NULL); | 135 text = gtk_text_new(NULL, NULL); |
134 | |
135 gtk_text_insert(GTK_TEXT(text), NULL, NULL, NULL, | 136 gtk_text_insert(GTK_TEXT(text), NULL, NULL, NULL, |
136 _("Rob Flynn (maintainer) rob@marko.net\nEric Warmenhoven (lead coder) warmenhoven@yahoo.com\n\nBenjamin Miller\nDecklin Foster\nJim Duchek\nMark Spencer (original author) markster@marko.net"), | 137 _("Rob Flynn (maintainer) rob@marko.net\nEric Warmenhoven (lead coder) warmenhoven@yahoo.com\n\nBenjamin Miller\nDecklin Foster\nJim Duchek\nMark Spencer (original author) markster@marko.net"), |
137 198); | 138 198); |
138 | 139 gtk_box_pack_start(GTK_BOX(fbox), text, TRUE, TRUE, 0); |
139 gtk_widget_show(text); | 140 gtk_widget_show(text); |
140 | |
141 gtk_box_pack_start(GTK_BOX(fbox), text, TRUE, TRUE, 0); | |
142 | 141 |
143 /* Close Button */ | 142 /* Close Button */ |
144 | 143 |
145 hbox = gtk_hbox_new(FALSE, 5); | 144 hbox = gtk_hbox_new(FALSE, 5); |
146 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); | 145 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); |
146 gtk_widget_show(hbox); | |
147 | 147 |
148 button = picture_button(about, _("Close"), cancel_xpm); | 148 button = picture_button(about, _("Close"), cancel_xpm); |
149 gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); | 149 gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); |
150 | 150 |
151 if (null != (void *)2) { | 151 if (null != (void *)2) { |
166 /* gtk_widget_grab_default(button); */ | 166 /* gtk_widget_grab_default(button); */ |
167 | 167 |
168 button = picture_button(about, _("Web Site"), about_small_xpm); | 168 button = picture_button(about, _("Web Site"), about_small_xpm); |
169 gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); | 169 gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); |
170 gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(about_click), NULL); | 170 gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(about_click), NULL); |
171 | |
172 if (misc_options & OPT_MISC_COOL_LOOK) | |
173 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); | |
174 } | 171 } |
175 | 172 |
176 /* Let's give'em something to talk about -- woah woah woah */ | 173 /* Let's give'em something to talk about -- woah woah woah */ |
177 gtk_widget_show_all(about); | 174 gtk_widget_show(about); |
178 | 175 |
179 } | 176 } |
180 | 177 |
181 static void destroy_help() | 178 static void destroy_help() |
182 { | 179 { |