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

version» Context lines:

pike.git/src/post_modules/GTK2/source/global.pre:51:   #endif    return 1;   }      static void backend_callback(struct callback *_cb,    void *arg,    void *backend)   {    if(backend)    { -  struct timeval timeout = current_time; +  struct timeval timeout; +  INACCURATE_GETTIMEOFDAY(&timeout);    timeout.tv_usec += 20000;    if(timeout.tv_usec > 1000000)    {    timeout.tv_usec-=1000000;    timeout.tv_sec+=1;    }    backend_lower_timeout(backend, &timeout);    } else   #ifdef HAVE_GTK22    while(g_main_context_iteration(NULL,0));
pike.git/src/post_modules/GTK2/source/global.pre:256:    else {    data=g_malloc(sizeof(char *)*2);    if (data==NULL)    SIMPLE_OUT_OF_MEMORY_ERROR("setup_gtk",sizeof(char *)*2);    data[0]=g_strdup("Pike GTK");    argc=1;    }    pgtk2_is_setup=1;    gtk_set_locale();    gtk_init(&argc,&data); + #if GLIB_MAJOR_VERISON > 2 || GLIB_MINOR_VERSION < 36    g_type_init(); -  + #endif       backend_cb=(void *)add_backend_callback(backend_callback,0,0);    pgtk2_pop_n_elems(args);    push_and_free_argv(data,argc,0);   }      void flush()   //! Flush GDK. Not normally needed, can be useful while doing calculations.   {    gdk_flush();
pike.git/src/post_modules/GTK2/source/global.pre:322:   {    pgtk2_pop_n_elems(args);    push_int( gtk_main_level() );   }      int main_iteration_do(int block)   //! Run one iteration in the mainloop. If block is true, wait for an   //! event before returning.   {    INT_TYPE n; -  get_all_args( "gtk_main_iteration_do", args, "%i", &n ); +  get_all_args( "main_iteration_do", args, "%i", &n );    pgtk2_pop_n_elems(args);    push_int( g_main_iteration( n ) );   }      int true()   //! Always returns true.   {    pgtk2_pop_n_elems(args);    push_int(1);   }
pike.git/src/post_modules/GTK2/source/global.pre:345:   //! Always returns false.   {    pgtk2_pop_n_elems(args);    push_int(0);   }      void grab_add(GTK2.Widget widget)   //! Grab a widget.   {    struct object *o; -  get_all_args("gtk_grab_add",args,"%o",&o); +  get_all_args("grab_add",args,"%o",&o);    gtk_grab_add(GTK_WIDGET(get_gobject(o)));    pgtk2_pop_n_elems(args);   }      void grab_remove(GTK2.Widget widget)   //! Remove the grab.   {    struct object *o; -  get_all_args("gtk_grab_remove",args,"%o",&o); +  get_all_args("grab_remove",args,"%o",&o);    gtk_grab_remove(GTK_WIDGET(get_gobject(o)));    pgtk2_pop_n_elems(args);   }         require x11;      /* Low-level X11 related functions */   %{   #ifdef HAVE_XDPMS