[gtk-list] Patch for gtk_dialog



I've tried to get this patch put in the main distribution several
times, but I can't seem to even get a response from anyone.
gtk_dialog_new creates a new top_level window (according to Xlib), not
a dialog, so I wrote a patch so that people like me who are picky
about what type of window X thinks something is would be happy

*** gtk/gtkdialog.c~	Thu Jan 15 19:49:30 1998
--- gtk/gtkdialog.c	Wed Mar 18 18:05:29 1998
***************
*** 77,81 ****
  GtkWidget*
  gtk_dialog_new ()
  {
!   return GTK_WIDGET (gtk_type_new (gtk_dialog_get_type ()));
  }
--- 77,88 ----
  GtkWidget*
  gtk_dialog_new ()
  {
!   GtkDialog *dialog;
! 
!   dialog = gtk_type_new (gtk_dialog_get_type ());
! 
!   GTK_WINDOW(dialog)->type = GTK_WINDOW_DIALOG;
! 
!   return GTK_WIDGET (dialog);
! 
  }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]