Mercurial > pidgin.yaz
comparison src/about.c @ 4197:1817f5d16e83
[gaim-migrate @ 4428]
Ari Pollak (sourceo) writes:
"This fixes a compile warning in about.c, cleans up a
deprecated call to gtk_widget_set_usize, adds a border
around the text, and removes an unneeded call to
gtk_widget_show(), since according to the
gtk_window_present() docs:
If window is hidden, this function calls
gtk_widget_show() as well.
Also, it's pointless to call gtk_widget_show on an
already unhidden widget."
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sat, 04 Jan 2003 14:41:30 +0000 |
parents | d3c8d2b40494 |
children | 42d53c416bb9 |
comparison
equal
deleted
inserted
replaced
4196:422512cf6488 | 4197:1817f5d16e83 |
---|---|
97 gtk_widget_show(logo); | 97 gtk_widget_show(logo); |
98 | 98 |
99 sw = gtk_scrolled_window_new(NULL, NULL); | 99 sw = gtk_scrolled_window_new(NULL, NULL); |
100 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw), | 100 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw), |
101 GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); | 101 GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); |
102 gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(sw), GTK_SHADOW_IN); | |
102 gtk_box_pack_start(GTK_BOX(fbox), sw, TRUE, TRUE, 0); | 103 gtk_box_pack_start(GTK_BOX(fbox), sw, TRUE, TRUE, 0); |
103 | 104 |
104 text = gtk_imhtml_new(NULL, NULL); | 105 text = gtk_imhtml_new(NULL, NULL); |
105 gtk_container_add(GTK_CONTAINER(sw), text); | 106 gtk_container_add(GTK_CONTAINER(sw), text); |
106 gtk_widget_set_usize(sw, -1, 350); | 107 gtk_widget_set_size_request(sw, -1, 350); |
107 gaim_setup_imhtml(text); | 108 gaim_setup_imhtml(text); |
108 | 109 |
109 | 110 |
110 gtk_imhtml_append_text(GTK_IMHTML(text), | 111 gtk_imhtml_append_text(GTK_IMHTML(text), |
111 _("Gaim is a modular Instant Messaging client capable of " | 112 _("Gaim is a modular Instant Messaging client capable of " |
185 | 186 |
186 gtk_widget_show(button); | 187 gtk_widget_show(button); |
187 } | 188 } |
188 | 189 |
189 /* Let's give'em something to talk about -- woah woah woah */ | 190 /* Let's give'em something to talk about -- woah woah woah */ |
190 gtk_widget_show(about); | |
191 gtk_window_present(GTK_WINDOW(about)); | 191 gtk_window_present(GTK_WINDOW(about)); |
192 } | 192 } |