Mercurial > pidgin.yaz
comparison src/conversation.c @ 2788:3bf63f1882c8
[gaim-migrate @ 2801]
forgot i left this in there. it didn't work but didn't hurt being there.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 21 Nov 2001 12:22:31 +0000 |
parents | feea7103a235 |
children | 2d3f47783a22 |
comparison
equal
deleted
inserted
replaced
2787:feea7103a235 | 2788:3bf63f1882c8 |
---|---|
57 #include "pixmaps/luke03.xpm" | 57 #include "pixmaps/luke03.xpm" |
58 #include "pixmaps/oneeye.xpm" | 58 #include "pixmaps/oneeye.xpm" |
59 #include "pixmaps/crazy4.xpm" | 59 #include "pixmaps/crazy4.xpm" |
60 #include "pixmaps/mrt.xpm" | 60 #include "pixmaps/mrt.xpm" |
61 #include "pixmaps/download.xpm" | 61 #include "pixmaps/download.xpm" |
62 | |
63 static GtkTooltips *tabtips = NULL; | |
64 | 62 |
65 static gchar *ispell_cmd[] = { "ispell", "-a", NULL }; | 63 static gchar *ispell_cmd[] = { "ispell", "-a", NULL }; |
66 | 64 |
67 int state_lock = 0; | 65 int state_lock = 0; |
68 | 66 |
2156 c->hasbg = 0; | 2154 c->hasbg = 0; |
2157 c->fgcol = fgcolor; | 2155 c->fgcol = fgcolor; |
2158 c->hasfg = 0; | 2156 c->hasfg = 0; |
2159 | 2157 |
2160 if (im_options & OPT_IM_ONE_WINDOW) { | 2158 if (im_options & OPT_IM_ONE_WINDOW) { |
2161 GtkWidget *page; | |
2162 if (!all_convos) { | 2159 if (!all_convos) { |
2163 win = all_convos = c->window = gtk_window_new(GTK_WINDOW_TOPLEVEL); | 2160 win = all_convos = c->window = gtk_window_new(GTK_WINDOW_TOPLEVEL); |
2164 gtk_window_set_wmclass(GTK_WINDOW(win), "conversation", "Gaim"); | 2161 gtk_window_set_wmclass(GTK_WINDOW(win), "conversation", "Gaim"); |
2165 gtk_window_set_policy(GTK_WINDOW(win), TRUE, TRUE, FALSE); | 2162 gtk_window_set_policy(GTK_WINDOW(win), TRUE, TRUE, FALSE); |
2166 gtk_container_border_width(GTK_CONTAINER(win), 0); | 2163 gtk_container_border_width(GTK_CONTAINER(win), 0); |
2169 gtk_window_set_title(GTK_WINDOW(win), _("Gaim - Conversations")); | 2166 gtk_window_set_title(GTK_WINDOW(win), _("Gaim - Conversations")); |
2170 gtk_signal_connect(GTK_OBJECT(win), "delete_event", | 2167 gtk_signal_connect(GTK_OBJECT(win), "delete_event", |
2171 GTK_SIGNAL_FUNC(delete_all_convo), NULL); | 2168 GTK_SIGNAL_FUNC(delete_all_convo), NULL); |
2172 | 2169 |
2173 convo_notebook = gtk_notebook_new(); | 2170 convo_notebook = gtk_notebook_new(); |
2174 if (!tabtips) { | |
2175 tabtips = gtk_tooltips_new(); | |
2176 if (!(im_options & OPT_IM_ALIAS_TAB)) | |
2177 gtk_tooltips_disable(tabtips); | |
2178 } | |
2179 if (im_options & OPT_IM_SIDE_TAB) { | 2171 if (im_options & OPT_IM_SIDE_TAB) { |
2180 if (im_options & OPT_IM_BR_TAB) { | 2172 if (im_options & OPT_IM_BR_TAB) { |
2181 gtk_notebook_set_tab_pos(GTK_NOTEBOOK(convo_notebook), | 2173 gtk_notebook_set_tab_pos(GTK_NOTEBOOK(convo_notebook), |
2182 GTK_POS_RIGHT); | 2174 GTK_POS_RIGHT); |
2183 } else { | 2175 } else { |
2205 cont = gtk_vbox_new(FALSE, 5); | 2197 cont = gtk_vbox_new(FALSE, 5); |
2206 gtk_container_set_border_width(GTK_CONTAINER(cont), 5); | 2198 gtk_container_set_border_width(GTK_CONTAINER(cont), 5); |
2207 /* this doesn't actually matter since we're resetting it once we're out of the if/else */ | 2199 /* this doesn't actually matter since we're resetting it once we're out of the if/else */ |
2208 gtk_notebook_append_page(GTK_NOTEBOOK(convo_notebook), cont, gtk_label_new(c->name)); | 2200 gtk_notebook_append_page(GTK_NOTEBOOK(convo_notebook), cont, gtk_label_new(c->name)); |
2209 gtk_widget_show(cont); | 2201 gtk_widget_show(cont); |
2210 | |
2211 page = gtk_notebook_get_nth_page(GTK_NOTEBOOK(convo_notebook), | |
2212 g_list_index(conversations, c)); | |
2213 page = gtk_notebook_get_tab_label(GTK_NOTEBOOK(convo_notebook), page); | |
2214 gtk_tooltips_set_tip(tabtips, page->parent, c->name, c->name); | |
2215 } else { | 2202 } else { |
2216 cont = win = gtk_window_new(GTK_WINDOW_TOPLEVEL); | 2203 cont = win = gtk_window_new(GTK_WINDOW_TOPLEVEL); |
2217 c->window = win; | 2204 c->window = win; |
2218 gtk_object_set_user_data(GTK_OBJECT(win), c); | 2205 gtk_object_set_user_data(GTK_OBJECT(win), c); |
2219 gtk_window_set_wmclass(GTK_WINDOW(win), "conversation", "Gaim"); | 2206 gtk_window_set_wmclass(GTK_WINDOW(win), "conversation", "Gaim"); |