[appearance] remove custom cell renderers
The custom cell renderers were required to draw the selection inidicator around the entire item, not just the text. This has now been fixed in GTK+ as the as the resolution of bug 382544.
This commit is contained in:
parent
8389b285a1
commit
683102f257
7 changed files with 4 additions and 325 deletions
|
@ -27,8 +27,6 @@
|
|||
#include "theme-util.h"
|
||||
#include "gtkrc-utils.h"
|
||||
#include "gedit-message-area.h"
|
||||
#include "wp-cellrenderer.h"
|
||||
#include "caption-cellrenderer.h"
|
||||
|
||||
#include <glib/gi18n.h>
|
||||
#include <libwindow-settings/gnome-wm-manager.h>
|
||||
|
@ -1078,14 +1076,14 @@ themes_init (AppearanceData *data)
|
|||
|
||||
icon_view = GTK_ICON_VIEW (appearance_capplet_get_widget (data, "theme_list"));
|
||||
|
||||
renderer = cell_renderer_wallpaper_new ();
|
||||
renderer = gtk_cell_renderer_pixbuf_new ();
|
||||
g_object_set (renderer, "xpad", 5, "ypad", 5,
|
||||
"xalign", 0.5, "yalign", 1.0, NULL);
|
||||
gtk_cell_layout_pack_end (GTK_CELL_LAYOUT (icon_view), renderer, FALSE);
|
||||
gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (icon_view), renderer,
|
||||
"pixbuf", COL_THUMBNAIL, NULL);
|
||||
|
||||
renderer = cell_renderer_caption_new ();
|
||||
renderer = gtk_cell_renderer_text_new ();
|
||||
g_object_set (renderer, "alignment", PANGO_ALIGN_CENTER,
|
||||
"wrap-mode", PANGO_WRAP_WORD_CHAR,
|
||||
"wrap-width", gtk_icon_view_get_item_width (icon_view),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue