gtk+-bundle_2.24.10-20120208_win32


gtk+-bundle_2.24.10-20120208_win32
资源截图
代码片段和文件信息
/* Gobject - GLib Type object Parameter and Signal Library
 * Copyright (C) 1998-1999 2000-2001 Tim Janik and Red Hat Inc.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General
 * Public License along with this library; if not write to the
 * Free Software Foundation Inc. 59 Temple Place Suite 330
 * Boston MA 02111-1307 USA.
 */

#ifndef __G_object_NOTIFY_QUEUE_H__
#define __G_object_NOTIFY_QUEUE_H__

#include  /* memset */

#include ject.h>

G_BEGIN_DECLS


/* --- typedefs --- */
typedef struct _GobjectNotifyContext          GobjectNotifyContext;
typedef struct _GobjectNotifyQueue            GobjectNotifyQueue;
typedef void (*GobjectNotifyQueueDispatcher) (Gobject     *object
      guint        n_pspecs
      GParamSpec **pspecs);


/* --- structures --- */
struct _GobjectNotifyContext
{
  GQuark                       quark_notify_queue;
  GobjectNotifyQueueDispatcher dispatcher;
  GTrashStack                 *_nqueue_trash; /* unused */
};
struct _GobjectNotifyQueue
{
  GobjectNotifyContext *context;
  GSList               *pspecs;
  guint16               n_pspecs;
  guint16               freeze_count;
};

G_LOCK_DEFINE_STATIC(notify_lock);

/* --- functions --- */
static void
g_object_notify_queue_free (gpointer data)
{
  GobjectNotifyQueue *nqueue = data;

  g_slist_free (nqueue->pspecs);
  g_slice_free (GobjectNotifyQueue nqueue);
}

static inline GobjectNotifyQueue*
g_object_notify_queue_freeze (Gobject    *object
      GobjectNotifyContext *context)
{
  GobjectNotifyQueue *nqueue;

  G_LOCK(notify_lock);
  nqueue = g_datalist_id_get_data (&object->qdata context->quark_notify_queue);
  if (!nqueue)
    {
      nqueue = g_slice_new0 (GobjectNotifyQueue);
      nqueue->context = context;
      g_datalist_id_set_data_full (&object->qdata context->quark_notify_queue
   nqueue g_object_notify_queue_free);
    }

  if (nqueue->freeze_count >= 65535)
    g_critical(“Free queue for %s (%p) is larger than 65535“
               “ called g_object_freeze_notify() too often.“
               “ Forgot to call g_object_thaw_notify() or infinite loop“
               G_object_TYPE_NAME (object) object);
  else
    nqueue->freeze_count++;
  G_UNLOCK(notify_lock);

  return nqueue;
}

static inline void
g_object_notify_queue_thaw (Gobject            *object
    GobjectNotifyQueue *nqueue)
{
  GobjectNotifyContext *context = nqueue->context;
  GParamSpec *pspecs_mem[16] **pspecs 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件       89051  2010-09-12 06:21  binenvsubst.exe
     文件       38954  2010-02-05 20:55  binfc-cache.exe
     文件       31607  2010-02-05 20:55  binfc-cat.exe
     文件       29379  2010-02-05 20:55  binfc-list.exe
     文件        3818  2010-12-27 13:12  binfreetype-config
     文件      538324  2010-12-27 13:12  binfreetype6.dll
     文件       61058  2011-07-19 08:01  bingdbus.exe
     文件       29698  2011-11-21 12:13  bingdk-pixbuf-csource.exe
     文件       33941  2011-11-21 12:13  bingdk-pixbuf-query-loaders.exe
     文件       88497  2010-09-12 06:21  bingettext.exe
     文件        4655  2010-09-12 06:21  bingettext.sh
     文件       29129  2011-07-19 08:01  bingio-querymodules.exe
     文件       71490  2011-07-19 08:01  binglib-compile-schemas.exe
     文件       48328  2011-07-19 07:53  binglib-genmarshal.exe
     文件        5490  2011-07-19 07:38  binglib-gettextize
     文件       16906  2011-07-19 07:52  binglib-mkenums
     文件       27606  2011-07-19 07:53  bingobject-query.exe
     文件       30100  2011-07-19 07:42  bingspawn-win32-helper-console.exe
     文件       30678  2011-07-19 07:42  bingspawn-win32-helper.exe
     文件       29059  2012-02-08 20:34  bingtk-builder-convert
     文件      358028  2012-02-08 20:42  bingtk-demo.exe
     文件       32693  2012-02-08 20:35  bingtk-query-immodules-2.0.exe
     文件       58401  2012-02-08 20:35  bingtk-update-icon-cache.exe
     文件         583  2012-02-08 20:34  bingtk-update-icon-cache.exe.manifest
     文件      152489  2010-09-12 06:22  binintl.dll
     文件       90120  2010-09-12 06:21  binlibasprintf-0.dll
     文件      163476  2011-07-18 18:25  binlibatk-1.0-0.dll
     文件     1294335  2011-11-22 09:48  binlibcairo-2.dll
     文件       44049  2011-11-22 09:49  binlibcairo-gobject-2.dll
     文件      182789  2011-11-22 09:50  binlibcairo-script-interpreter-2.dll
     文件      143096  2009-01-31 21:42  binlibexpat-1.dll
............此处省略2936个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)