comparison src/gtknotify.c @ 6872:dd0eecfbe413

[gaim-migrate @ 7418] ok, these are some tweaks i've made to core code working on the new jabber plugin. - add gaim_find_buddy_in_group() that searches a specific group instead of the entire list. kinda handy. - re-did the base64 encoding function. i think it may have been broken, i'm not sure, but this i know works. - fix the formatted notify dialog to be more to my liking, and to have a working Close button. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Wed, 17 Sep 2003 03:45:04 +0000
parents fb64cc87bc96
children 083d1e4a9c78
comparison
equal deleted inserted replaced
6871:714fc8f45cf2 6872:dd0eecfbe413
276 gtk_container_add(GTK_CONTAINER(window), vbox); 276 gtk_container_add(GTK_CONTAINER(window), vbox);
277 gtk_widget_show(vbox); 277 gtk_widget_show(vbox);
278 278
279 /* Setup the descriptive label */ 279 /* Setup the descriptive label */
280 g_snprintf(label_text, sizeof(label_text), 280 g_snprintf(label_text, sizeof(label_text),
281 "<span weight=\"bold\" size=\"larger\">%s</span>\n\n%s", 281 "<span weight=\"bold\" size=\"larger\">%s</span>\n%s",
282 primary, (secondary ? secondary : "")); 282 primary, (secondary ? secondary : ""));
283 283
284 label = gtk_label_new(NULL); 284 label = gtk_label_new(NULL);
285 285
286 gtk_label_set_markup(GTK_LABEL(label), label_text); 286 gtk_label_set_markup(GTK_LABEL(label), label_text);
309 /* Add the Close button. */ 309 /* Add the Close button. */
310 button = gtk_button_new_from_stock(GTK_STOCK_CLOSE); 310 button = gtk_button_new_from_stock(GTK_STOCK_CLOSE);
311 gtk_box_pack_start(GTK_BOX(vbox), button, FALSE, FALSE, 0); 311 gtk_box_pack_start(GTK_BOX(vbox), button, FALSE, FALSE, 0);
312 gtk_widget_show(button); 312 gtk_widget_show(button);
313 313
314 g_signal_connect(G_OBJECT(button), "clicked", 314 g_signal_connect_swapped(G_OBJECT(button), "clicked",
315 G_CALLBACK(gtk_widget_destroy), window); 315 G_CALLBACK(gtk_widget_destroy), window);
316 316
317 /* Add the text to the gtkimhtml */ 317 /* Add the text to the gtkimhtml */
318 if (gaim_prefs_get_bool("/gaim/gtk/conversations/ignore_colors")) 318 if (gaim_prefs_get_bool("/gaim/gtk/conversations/ignore_colors"))
319 options ^= GTK_IMHTML_NO_COLOURS; 319 options ^= GTK_IMHTML_NO_COLOURS;