[gtk-list] Patch for gtk_dialog
- From: Christopher Craig <ccraig cc gatech edu>
- To: gtk-list redhat com
- Subject: [gtk-list] Patch for gtk_dialog
- Date: Wed, 8 Apr 1998 14:30:22 -0400 (EDT)
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]