st-container: Remove st_container_destroy_children

It was a simple wrapper around clutter_actor_destroy_all_children.

https://bugzilla.gnome.org/show_bug.cgi?id=670034
This commit is contained in:
Jasper St. Pierre 2012-02-16 13:27:09 -05:00
parent 72dad591fa
commit c892610f27
11 changed files with 11 additions and 25 deletions

View File

@ -694,7 +694,7 @@ const SessionList = new Lang.Class({
},
_populate: function() {
this._itemList.destroy_children();
this._itemList.destroy_all_children();
this._activeSessionId = null;
this._items = {};

View File

@ -236,7 +236,7 @@ const ViewByCategories = new Lang.Class({
_removeAll: function() {
this._categories = [];
this._categoryBox.destroy_children();
this._categoryBox.destroy_all_children();
},
refresh: function() {

View File

@ -339,7 +339,7 @@ const AutorunResidentNotification = new Lang.Class({
updateForMounts: function(mounts) {
// remove all the layout content
this._layout.destroy_children();
this._layout.destroy_all_children();
for (let idx = 0; idx < mounts.length; idx++) {
let element = mounts[idx];

View File

@ -406,7 +406,7 @@ const Calendar = new Lang.Class({
_buildHeader: function() {
let offsetCols = this._useWeekdate ? 1 : 0;
this.actor.destroy_children();
this.actor.destroy_all_children();
// Top line of the calendar '<| September 2009 |>'
this._topBox = new St.BoxLayout();
@ -685,7 +685,7 @@ const EventsList = new Lang.Class({
},
_showOtherDay: function(day) {
this.actor.destroy_children();
this.actor.destroy_all_children();
let dayBegin = _getBeginningOfDay(day);
let dayEnd = _getEndOfDay(day);
@ -702,7 +702,7 @@ const EventsList = new Lang.Class({
},
_showToday: function() {
this.actor.destroy_children();
this.actor.destroy_all_children();
let now = new Date();
let dayBegin = _getBeginningOfDay(now);

View File

@ -148,7 +148,7 @@ const DashItemContainer = new Lang.Class({
if (this.child == actor)
return;
this.actor.destroy_children();
this.actor.destroy_all_children();
this.child = actor;
this.actor.add_actor(this.child);

View File

@ -501,7 +501,7 @@ const EndSessionDialog = new Lang.Class({
let [type, timestamp, totalSecondsToStayOpen, inhibitorObjectPaths] = parameters;
this._totalSecondsToStayOpen = totalSecondsToStayOpen;
this._inhibitors = [];
this._applicationList.destroy_children();
this._applicationList.destroy_all_children();
this._type = type;
if (!(this._type in DialogContent)) {

View File

@ -105,7 +105,7 @@ const ModalDialog = new Lang.Class({
setButtons: function(buttons) {
let hadChildren = this._buttonLayout.get_children() > 0;
this._buttonLayout.destroy_children();
this._buttonLayout.destroy_all_children();
this._actionKeys = {};
for (let i = 0; i < buttons.length; i++) {

View File

@ -359,7 +359,7 @@ const ShellProcessesDialog = new Lang.Class({
_setAppsForPids: function(pids) {
// remove all the items
this._applicationList.destroy_children();
this._applicationList.destroy_all_children();
pids.forEach(Lang.bind(this, function(pid) {
let tracker = Shell.WindowTracker.get_default();

View File

@ -105,7 +105,7 @@ const WorkspaceSwitcherPopup = new Lang.Class({
},
_redraw : function(direction, activeWorkspaceIndex) {
this._list.destroy_children();
this._list.destroy_all_children();
for (let i = 0; i < global.screen.n_workspaces; i++) {
let indicator = null;

View File

@ -30,18 +30,6 @@
G_DEFINE_ABSTRACT_TYPE (StContainer, st_container, ST_TYPE_WIDGET);
/**
* st_container_destroy_children:
* @container: An #StContainer
*
* Destroys all child actors from @container.
*/
void
st_container_destroy_children (StContainer *container)
{
clutter_actor_destroy_all_children (CLUTTER_ACTOR (cotnainer));
}
void
st_container_move_child (StContainer *container,
ClutterActor *actor,

View File

@ -50,8 +50,6 @@ struct _StContainerClass {
GType st_container_get_type (void) G_GNUC_CONST;
void st_container_destroy_children (StContainer *container);
/* Only to be used by subclasses of StContainer */
void st_container_move_child (StContainer *container,
ClutterActor *actor,