Diff for /np2/x11/gtk2/gtk_main.c between versions 1.6 and 1.7

version 1.6, 2007/01/12 19:09:58 version 1.7, 2007/01/23 15:48:20
Line 62 Line 62
                          | GDK_LEAVE_NOTIFY_MASK        \                           | GDK_LEAVE_NOTIFY_MASK        \
                          | GDK_EXPOSURE_MASK)                           | GDK_EXPOSURE_MASK)
   
   /*
    - Signal: gboolean GtkWidget::destroy_event (GtkWidget *widget,
             GdkEventAny *event, gpointer user_data)
   */
 static gboolean  static gboolean
 destroy_evhandler(GtkWidget *w)  destroy_evhandler(GtkWidget *w, GdkEventAny *ev, gpointer p)
 {  {
   
         UNUSED(w);          UNUSED(w);
           UNUSED(ev);
           UNUSED(p);
   
           taskmng_exit();
         toolkit_widget_quit();          toolkit_widget_quit();
   
         return TRUE;          return TRUE;
 }  }
   
Line 86  configure_evhandler(GtkWidget *w, GdkEve Line 93  configure_evhandler(GtkWidget *w, GdkEve
   
         gdk_draw_rectangle(w->window, w->style->black_gc, TRUE,          gdk_draw_rectangle(w->window, w->style->black_gc, TRUE,
             0, 0, w->allocation.width, w->allocation.height);              0, 0, w->allocation.width, w->allocation.height);
   
         return TRUE;          return TRUE;
 }  }
   
Line 220  motion_notify_evhandler(GtkWidget *w, Gd Line 226  motion_notify_evhandler(GtkWidget *w, Gd
 /*  /*
  * misc   * misc
  */   */
   static gint
   main_widget_quit(gpointer p)
   {
           BYTE orig_scrnmode;
   
           UNUSED(p);
   
           /* change to window mode */
           orig_scrnmode = scrnmode;
           xmenu_select_screen(scrnmode & ~SCRNMODE_FULLSCREEN);
           scrnmode = orig_scrnmode;
   
           return 0;
   }
   
 static void  static void
 set_icon_bitmap(GtkWidget *w)  set_icon_bitmap(GtkWidget *w)
 {  {
Line 368  gui_gtk_widget_mainloop(void) Line 389  gui_gtk_widget_mainloop(void)
 {  {
   
         install_idle_process();          install_idle_process();
           gtk_quit_add(1, main_widget_quit, NULL);
         gtk_main();          gtk_main();
         uninstall_idle_process();          uninstall_idle_process();
 }  }

Removed from v.1.6  
changed lines
  Added in v.1.7


RetroPC.NET-CVS <cvs@retropc.net>