Mercurial > pidgin
comparison src/gtksavedstatuses.c @ 11548:30ad548e8537
[gaim-migrate @ 13803]
Ellipsize the title column in the gtksavedstatus window and set a minimum
width
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 15 Sep 2005 03:43:18 +0000 |
parents | ad9a61894d9b |
children | 723487d07aa0 |
comparison
equal
deleted
inserted
replaced
11547:726264a8f48f | 11548:30ad548e8537 |
---|---|
311 | 311 |
312 /* Add columns */ | 312 /* Add columns */ |
313 column = gtk_tree_view_column_new(); | 313 column = gtk_tree_view_column_new(); |
314 gtk_tree_view_column_set_title(column, _("Title")); | 314 gtk_tree_view_column_set_title(column, _("Title")); |
315 gtk_tree_view_column_set_resizable(column, TRUE); | 315 gtk_tree_view_column_set_resizable(column, TRUE); |
316 gtk_tree_view_column_set_min_width(column, 100); | |
316 gtk_tree_view_column_set_sort_column_id(column, | 317 gtk_tree_view_column_set_sort_column_id(column, |
317 STATUS_WINDOW_COLUMN_TITLE); | 318 STATUS_WINDOW_COLUMN_TITLE); |
318 gtk_tree_view_append_column(GTK_TREE_VIEW(treeview), column); | 319 gtk_tree_view_append_column(GTK_TREE_VIEW(treeview), column); |
319 renderer = gtk_cell_renderer_text_new(); | 320 renderer = gtk_cell_renderer_text_new(); |
320 gtk_tree_view_column_pack_start(column, renderer, TRUE); | 321 gtk_tree_view_column_pack_start(column, renderer, TRUE); |
321 gtk_tree_view_column_add_attribute(column, renderer, "text", | 322 gtk_tree_view_column_add_attribute(column, renderer, "text", |
322 STATUS_WINDOW_COLUMN_TITLE); | 323 STATUS_WINDOW_COLUMN_TITLE); |
324 #if GTK_CHECK_VERSION(2,6,0) | |
325 g_object_set(renderer, "ellipsize", PANGO_ELLIPSIZE_END, NULL); | |
326 #endif | |
323 | 327 |
324 column = gtk_tree_view_column_new(); | 328 column = gtk_tree_view_column_new(); |
325 gtk_tree_view_column_set_title(column, _("Type")); | 329 gtk_tree_view_column_set_title(column, _("Type")); |
326 gtk_tree_view_column_set_resizable(column, TRUE); | 330 gtk_tree_view_column_set_resizable(column, TRUE); |
327 gtk_tree_view_column_set_sort_column_id(column, | 331 gtk_tree_view_column_set_sort_column_id(column, |