glom r1522 - in trunk: . glom/utility_widgets/db_adddel
- From: murrayc svn gnome org
- To: svn-commits-list gnome org
- Subject: glom r1522 - in trunk: . glom/utility_widgets/db_adddel
- Date: Fri, 4 Apr 2008 14:44:40 +0100 (BST)
Author: murrayc
Date: Fri Apr 4 14:44:39 2008
New Revision: 1522
URL: http://svn.gnome.org/viewvc/glom?rev=1522&view=rev
Log:
2008-04-04 Murray Cumming <murrayc murrayc com>
* glom/utility_widgets/db_adddel/db_adddel.cc: Fix the previous commit:
treeviewcolumn_on_cell_data(): Do set the pixbuf property to NULL when
it is empty, or images apear repeated on rows.
Modified:
trunk/ChangeLog
trunk/glom/utility_widgets/db_adddel/db_adddel.cc
Modified: trunk/glom/utility_widgets/db_adddel/db_adddel.cc
==============================================================================
--- trunk/glom/utility_widgets/db_adddel/db_adddel.cc (original)
+++ trunk/glom/utility_widgets/db_adddel/db_adddel.cc Fri Apr 4 14:44:39 2008
@@ -1999,8 +1999,7 @@
if(pixbuf)
pixbuf = ImageGlom::scale_keeping_ratio(pixbuf, get_fixed_cell_height(), pixbuf->get_width());
- if(pixbuf)
- g_object_set(pDerived->gobj(), "pixbuf", pixbuf->gobj(), (gpointer)NULL);
+ g_object_set(pDerived->gobj(), "pixbuf", pixbuf ? pixbuf->gobj() : NULL, (gpointer)NULL);
}
else
g_warning("Field::sql(): glom_type is TYPE_IMAGE but gda type is not VALUE_TYPE_BINARY");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]