comparison pidgin/gtkplugin.c @ 29485:48ea900ee72a

This should pretty much finish off the GTK_CHECK_VERSION calls in Pidgin. I still need to check if I should be upping the requirements for pango and any other libs. Refs #10024.
author John Bailey <rekkanoryo@rekkanoryo.org>
date Sun, 23 Aug 2009 16:52:25 +0000
parents 865ed80b17e1
children c8a5c09df242
comparison
equal deleted inserted replaced
29484:21277e69e06c 29485:48ea900ee72a
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);