comparison src/gtkplugin.c @ 11794:f5105a2b8bf6

[gaim-migrate @ 14085] Made the plugins dialog's treeview sortable. This acts kind of goofy when you sort on the enabled column because of the sort arrow thingy, but it works.. committer: Tailor Script <tailor@pidgin.im>
author Gary Kramlich <grim@reaperworld.com>
date Mon, 24 Oct 2005 07:39:57 +0000
parents b75d8a37e603
children 1f7f4f850db5
comparison
equal deleted inserted replaced
11793:dfdc286878f9 11794:f5105a2b8bf6
325 col = gtk_tree_view_column_new_with_attributes (_("Enabled"), 325 col = gtk_tree_view_column_new_with_attributes (_("Enabled"),
326 rend, 326 rend,
327 "active", 0, 327 "active", 0,
328 NULL); 328 NULL);
329 gtk_tree_view_append_column (GTK_TREE_VIEW(event_view), col); 329 gtk_tree_view_append_column (GTK_TREE_VIEW(event_view), col);
330 gtk_tree_view_column_set_sort_column_id(col, 0);
330 g_signal_connect (G_OBJECT(rend), "toggled", 331 g_signal_connect (G_OBJECT(rend), "toggled",
331 G_CALLBACK(plugin_load), ls); 332 G_CALLBACK(plugin_load), ls);
332 333
333 rendt = gtk_cell_renderer_text_new(); 334 rendt = gtk_cell_renderer_text_new();
334 col = gtk_tree_view_column_new_with_attributes (_("Name"), 335 col = gtk_tree_view_column_new_with_attributes (_("Name"),
338 #if GTK_CHECK_VERSION(2,6,0) 339 #if GTK_CHECK_VERSION(2,6,0)
339 gtk_tree_view_column_set_expand (col, TRUE); 340 gtk_tree_view_column_set_expand (col, TRUE);
340 g_object_set(rendt, "ellipsize", PANGO_ELLIPSIZE_END, NULL); 341 g_object_set(rendt, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
341 #endif 342 #endif
342 gtk_tree_view_append_column (GTK_TREE_VIEW(event_view), col); 343 gtk_tree_view_append_column (GTK_TREE_VIEW(event_view), col);
344 gtk_tree_view_column_set_sort_column_id(col, 1);
343 g_object_unref(G_OBJECT(ls)); 345 g_object_unref(G_OBJECT(ls));
344 gtk_container_add(GTK_CONTAINER(sw), event_view); 346 gtk_container_add(GTK_CONTAINER(sw), event_view);
345 347
346 expander = gtk_expander_new(_("<b>Plugin Details</b>")); 348 expander = gtk_expander_new(_("<b>Plugin Details</b>"));
347 gtk_expander_set_use_markup(GTK_EXPANDER(expander), TRUE); 349 gtk_expander_set_use_markup(GTK_EXPANDER(expander), TRUE);