vte r2138 - in trunk: . src
- From: behdad svn gnome org
- To: svn-commits-list gnome org
- Subject: vte r2138 - in trunk: . src
- Date: Thu, 13 Nov 2008 13:17:12 +0000 (UTC)
Author: behdad
Date: Thu Nov 13 13:17:12 2008
New Revision: 2138
URL: http://svn.gnome.org/viewvc/vte?rev=2138&view=rev
Log:
2008-11-13 Behdad Esfahbod <behdad gnome org>
* src/vtedraw.c (_vte_draw_init_user), (_vte_draw_init_default):
Accept draw impl if impl->check is NULL.
Modified:
trunk/ChangeLog
trunk/src/vtedraw.c
Modified: trunk/src/vtedraw.c
==============================================================================
--- trunk/src/vtedraw.c (original)
+++ trunk/src/vtedraw.c Thu Nov 13 13:17:12 2008
@@ -94,7 +94,8 @@
/* find among available draws */
for (i = 0; i < G_N_ELEMENTS (_vte_draw_impls); i++) {
if (strcmp (*s, _vte_draw_impls[i]->name) == 0) {
- if (_vte_draw_impls[i]->check (draw, draw->widget)) {
+ if (_vte_draw_impls[i]->check == NULL ||
+ _vte_draw_impls[i]->check (draw, draw->widget)) {
draw->impl = _vte_draw_impls[i];
goto out;
}
@@ -115,7 +116,8 @@
guint i;
for (i = 0; i < G_N_ELEMENTS (_vte_draw_impls); i++) {
- if (_vte_draw_impls[i]->check (draw, draw->widget)) {
+ if (_vte_draw_impls[i]->check == NULL ||
+ _vte_draw_impls[i]->check (draw, draw->widget)) {
draw->impl = _vte_draw_impls[i];
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]