pike.git / src / post_modules / GTK2 / source / gtkrecentmanager.pre

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkrecentmanager.pre:2:   require gtk210;   class GTK2.RecentManager;   inherit G.Object;      void create(mapping(string:mixed)|int|GDK2.Screen|void props_or_def)   //! Create a new GTK2.RecentManager.   {    pgtk2_verify_not_inited();    pgtk2_verify_setup();    if (args) { -  if (Pike_sp[-args].type==PIKE_T_MAPPING) +  if (TYPEOF(Pike_sp[-args]) == PIKE_T_MAPPING)    INIT_WITH_PROPS(GTK_TYPE_RECENT_MANAGER);    else {    INT_TYPE def;    GtkRecentManager *grm;    struct object *o1;    -  if (Pike_sp[-args].type==PIKE_T_INT) { +  if (TYPEOF(Pike_sp[-args]) == PIKE_T_INT) {    get_all_args("create",args,"%i",&def);    if (def)    grm=gtk_recent_manager_get_default();    else    grm=gtk_recent_manager_new();    } else {    get_all_args("create",args,"%o",&o1);    grm=gtk_recent_manager_get_for_screen(GDK_SCREEN(get_gobject(o1)));    }    THIS->obj=G_OBJECT(grm);