Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dorota Czaplejewicz
gtk
Commits
7c99ffb8
Commit
7c99ffb8
authored
Feb 23, 1998
by
rhlabs
Browse files
Allow gtk_clist_insert() to work on empty lists.
-Marc
parent
84335371
Changes
8
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
7c99ffb8
Sun Feb 22 20:42:04 1998 Marc Ewing <marc@redhat.com>
* gtk/gtkclist.c (gtk_clist_insert): Allow inserts
on empty clists.
Sun Feb 22 14:28:43 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkmain.c (gtk_events_pending): Count idle handlers
...
...
ChangeLog.pre-2-0
View file @
7c99ffb8
Sun Feb 22 20:42:04 1998 Marc Ewing <marc@redhat.com>
* gtk/gtkclist.c (gtk_clist_insert): Allow inserts
on empty clists.
Sun Feb 22 14:28:43 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkmain.c (gtk_events_pending): Count idle handlers
...
...
ChangeLog.pre-2-10
View file @
7c99ffb8
Sun Feb 22 20:42:04 1998 Marc Ewing <marc@redhat.com>
* gtk/gtkclist.c (gtk_clist_insert): Allow inserts
on empty clists.
Sun Feb 22 14:28:43 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkmain.c (gtk_events_pending): Count idle handlers
...
...
ChangeLog.pre-2-2
View file @
7c99ffb8
Sun Feb 22 20:42:04 1998 Marc Ewing <marc@redhat.com>
* gtk/gtkclist.c (gtk_clist_insert): Allow inserts
on empty clists.
Sun Feb 22 14:28:43 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkmain.c (gtk_events_pending): Count idle handlers
...
...
ChangeLog.pre-2-4
View file @
7c99ffb8
Sun Feb 22 20:42:04 1998 Marc Ewing <marc@redhat.com>
* gtk/gtkclist.c (gtk_clist_insert): Allow inserts
on empty clists.
Sun Feb 22 14:28:43 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkmain.c (gtk_events_pending): Count idle handlers
...
...
ChangeLog.pre-2-6
View file @
7c99ffb8
Sun Feb 22 20:42:04 1998 Marc Ewing <marc@redhat.com>
* gtk/gtkclist.c (gtk_clist_insert): Allow inserts
on empty clists.
Sun Feb 22 14:28:43 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkmain.c (gtk_events_pending): Count idle handlers
...
...
ChangeLog.pre-2-8
View file @
7c99ffb8
Sun Feb 22 20:42:04 1998 Marc Ewing <marc@redhat.com>
* gtk/gtkclist.c (gtk_clist_insert): Allow inserts
on empty clists.
Sun Feb 22 14:28:43 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkmain.c (gtk_events_pending): Count idle handlers
...
...
gtk/gtkclist.c
View file @
7c99ffb8
...
...
@@ -1221,26 +1221,31 @@ gtk_clist_insert (GtkCList * clist,
g_return_if_fail
(
text
!=
NULL
);
/* return if out of bounds */
if
(
row
<
0
||
row
>
(
clist
->
rows
-
1
)
)
if
(
row
<
0
||
row
>
clist
->
rows
)
return
;
/* create the row */
clist_row
=
row_new
(
clist
);
/* set the text in the row's columns */
if
(
text
)
for
(
i
=
0
;
i
<
clist
->
columns
;
i
++
)
if
(
text
[
i
])
cell_set_text
(
clist
,
clist_row
,
i
,
text
[
i
]);
/* reset the row end pointer if we're inserting at the
* end of the list */
if
(
row
==
clist
->
rows
)
clist
->
row_list_end
=
(
g_list_append
(
clist
->
row_list_end
,
clist_row
))
->
next
;
if
(
clist
->
rows
==
0
)
gtk_clist_append
(
clist
,
text
);
else
clist
->
row_list
=
g_list_insert
(
clist
->
row_list
,
clist_row
,
row
);
{
/* create the row */
clist_row
=
row_new
(
clist
);
clist
->
rows
++
;
/* set the text in the row's columns */
if
(
text
)
for
(
i
=
0
;
i
<
clist
->
columns
;
i
++
)
if
(
text
[
i
])
cell_set_text
(
clist
,
clist_row
,
i
,
text
[
i
]);
/* reset the row end pointer if we're inserting at the
* end of the list */
if
(
row
==
clist
->
rows
)
clist
->
row_list_end
=
(
g_list_append
(
clist
->
row_list_end
,
clist_row
))
->
next
;
else
clist
->
row_list
=
g_list_insert
(
clist
->
row_list
,
clist_row
,
row
);
clist
->
rows
++
;
}
/* redraw the list if it isn't frozen */
if
(
!
GTK_CLIST_FROZEN
(
clist
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment