[maemo-commits] [maemo-commits] r16864 - in projects/haf/trunk/gtk+: . gtk
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Thu Dec 4 17:28:19 EET 2008
- Previous message: [maemo-commits] r16863 - projects/haf/branches/hildon-fm/fremantle/hildon-fm
- Next message: [maemo-commits] r16865 - in projects/haf/branches/hildon-fm/fremantle: . debian
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: kalikiana Date: 2008-12-04 17:28:18 +0200 (Thu, 04 Dec 2008) New Revision: 16864 Modified: projects/haf/trunk/gtk+/ChangeLog projects/haf/trunk/gtk+/gtk/gtktextview.c Log: 2008-12-04 Christian Dywan <christian at imendio.com> Fixes: NB#88288 - GtkTextView doesn't allow to paint borders around it in theming. * gtk/gtktextview.c (gtk_text_view_draw_focus): Draw a shadow with GtkTextView depending on hildon-mode Modified: projects/haf/trunk/gtk+/ChangeLog =================================================================== --- projects/haf/trunk/gtk+/ChangeLog 2008-12-04 13:40:47 UTC (rev 16863) +++ projects/haf/trunk/gtk+/ChangeLog 2008-12-04 15:28:18 UTC (rev 16864) @@ -1,3 +1,10 @@ +2008-12-04 Christian Dywan <christian at imendio.com> + + Fixes: NB#88288 - GtkTextView doesn't allow to paint borders around it in theming. + + * gtk/gtktextview.c (gtk_text_view_draw_focus): + Draw a shadow with GtkTextView depending on hildon-mode + 2008-12-01 Kristian Rietveld <kris at imendio.com> Fixes: NB#91480 - GtkTreeView::hildon-ui-mode should not be Modified: projects/haf/trunk/gtk+/gtk/gtktextview.c =================================================================== --- projects/haf/trunk/gtk+/gtk/gtktextview.c 2008-12-04 13:40:47 UTC (rev 16863) +++ projects/haf/trunk/gtk+/gtk/gtktextview.c 2008-12-04 15:28:18 UTC (rev 16864) @@ -4642,6 +4642,21 @@ widget->allocation.width, widget->allocation.height); } +#ifdef MAEMO_CHANGES + else if (!interior_focus) + { + HildonMode hildon_mode; + + gtk_widget_style_get (widget, "hildon-mode", &hildon_mode, NULL); + if (hildon_mode == HILDON_FREMANTLE) + gtk_paint_shadow (widget->style, widget->window, GTK_WIDGET_STATE (widget), + GTK_SHADOW_OUT, + NULL, widget, "textview", + 0, 0, + widget->allocation.width, + widget->allocation.height); + } +#endif else { gdk_window_clear (widget->window);
- Previous message: [maemo-commits] r16863 - projects/haf/branches/hildon-fm/fremantle/hildon-fm
- Next message: [maemo-commits] r16865 - in projects/haf/branches/hildon-fm/fremantle: . debian
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]