Mercurial > pidgin.yaz
comparison pidgin/gtkplugin.c @ 29623:3c9534e77ea1
propagate from branch 'im.pidgin.pidgin' (head 53ad409302bf312b4f1e4153f893f1350638c8c9)
to branch 'im.pidgin.pidgin.next.minor' (head e36acc862ca620a7afc746236306cb0eba4ca37a)
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Mon, 02 Nov 2009 03:18:15 +0000 |
parents | 48ea900ee72a |
children | c8a5c09df242 |
comparison
equal
deleted
inserted
replaced
28858:532307346255 | 29623:3c9534e77ea1 |
---|---|
668 GTK_WIDGET(plugin_author), TRUE, &label); | 668 GTK_WIDGET(plugin_author), TRUE, &label); |
669 gtk_label_set_markup(GTK_LABEL(label), _("<b>Written by:</b>")); | 669 gtk_label_set_markup(GTK_LABEL(label), _("<b>Written by:</b>")); |
670 gtk_misc_set_alignment(GTK_MISC(label), 0, 0); | 670 gtk_misc_set_alignment(GTK_MISC(label), 0, 0); |
671 | 671 |
672 website_button = gtk_event_box_new(); | 672 website_button = gtk_event_box_new(); |
673 #if GTK_CHECK_VERSION(2,4,0) | |
674 gtk_event_box_set_visible_window(GTK_EVENT_BOX(website_button), FALSE); | 673 gtk_event_box_set_visible_window(GTK_EVENT_BOX(website_button), FALSE); |
675 #endif | |
676 | 674 |
677 plugin_website = GTK_LABEL(gtk_label_new(NULL)); | 675 plugin_website = GTK_LABEL(gtk_label_new(NULL)); |
678 #if GTK_CHECK_VERSION(2,6,0) | |
679 g_object_set(G_OBJECT(plugin_website), | 676 g_object_set(G_OBJECT(plugin_website), |
680 "ellipsize", PANGO_ELLIPSIZE_MIDDLE, NULL); | 677 "ellipsize", PANGO_ELLIPSIZE_MIDDLE, NULL); |
681 #endif | |
682 gtk_misc_set_alignment(GTK_MISC(plugin_website), 0, 0); | 678 gtk_misc_set_alignment(GTK_MISC(plugin_website), 0, 0); |
683 gtk_container_add(GTK_CONTAINER(website_button), | 679 gtk_container_add(GTK_CONTAINER(website_button), |
684 GTK_WIDGET(plugin_website)); | 680 GTK_WIDGET(plugin_website)); |
685 g_signal_connect(website_button, "button-release-event", | 681 g_signal_connect(website_button, "button-release-event", |
686 G_CALLBACK(website_button_clicked_cb), NULL); | 682 G_CALLBACK(website_button_clicked_cb), NULL); |
776 col = gtk_tree_view_column_new_with_attributes (_("Name"), | 772 col = gtk_tree_view_column_new_with_attributes (_("Name"), |
777 rendt, | 773 rendt, |
778 "markup", 1, | 774 "markup", 1, |
779 "foreground-set", 3, | 775 "foreground-set", 3, |
780 NULL); | 776 NULL); |
781 #if GTK_CHECK_VERSION(2,6,0) | |
782 gtk_tree_view_column_set_expand (col, TRUE); | 777 gtk_tree_view_column_set_expand (col, TRUE); |
783 g_object_set(rendt, "ellipsize", PANGO_ELLIPSIZE_END, NULL); | 778 g_object_set(rendt, "ellipsize", PANGO_ELLIPSIZE_END, NULL); |
784 #endif | |
785 gtk_tree_view_append_column (GTK_TREE_VIEW(event_view), col); | 779 gtk_tree_view_append_column (GTK_TREE_VIEW(event_view), col); |
786 gtk_tree_view_column_set_sort_column_id(col, 1); | 780 gtk_tree_view_column_set_sort_column_id(col, 1); |
787 g_object_unref(G_OBJECT(ls)); | 781 g_object_unref(G_OBJECT(ls)); |
788 gtk_container_add(GTK_CONTAINER(sw), event_view); | 782 gtk_container_add(GTK_CONTAINER(sw), event_view); |
789 gtk_tree_view_set_search_column(GTK_TREE_VIEW(event_view), 1); | 783 gtk_tree_view_set_search_column(GTK_TREE_VIEW(event_view), 1); |