GWP doesn't compile (patch included)



Some API changes in gnome-dialog and gnome-app have made GWP fail to
compile. I've include a patch that corrects this, but I'm not sure that
it's correct.

	/Mattias
Index: wp_file_ops.C
===================================================================
RCS file: /cvs/gnome/gwp/wp_file_ops.C,v
retrieving revision 1.14
diff -c -r1.14 wp_file_ops.C
*** wp_file_ops.C	1998/10/18 01:41:23	1.14
--- wp_file_ops.C	1998/12/20 00:05:32
***************
*** 195,201 ****
    if (!fileop_frame)
      {
        GtkWidget *dialog = gnome_error_dialog (_("Can't pick frame?."));
!       gnome_dialog_run_modal (GNOME_DIALOG (dialog));
        return;
      }
  
--- 195,201 ----
    if (!fileop_frame)
      {
        GtkWidget *dialog = gnome_error_dialog (_("Can't pick frame?."));
!       gnome_dialog_run (GNOME_DIALOG (dialog));
        return;
      }
  
***************
*** 215,221 ****
    if (! load_file_plugin)
      {
        GtkWidget *dialog = gnome_error_dialog (_("Unknown File Type."));
!       gnome_dialog_run_modal (GNOME_DIALOG (dialog));
        return;
      }
  
--- 215,221 ----
    if (! load_file_plugin)
      {
        GtkWidget *dialog = gnome_error_dialog (_("Unknown File Type."));
!       gnome_dialog_run (GNOME_DIALOG (dialog));
        return;
      }
  
***************
*** 241,247 ****
    if (!fileop_frame)
      {
        GtkWidget *dialog = gnome_error_dialog (_("Can't pick frame?."));
!       gnome_dialog_run_modal (GNOME_DIALOG (dialog));
        return;
      }
  
--- 241,247 ----
    if (!fileop_frame)
      {
        GtkWidget *dialog = gnome_error_dialog (_("Can't pick frame?."));
!       gnome_dialog_run (GNOME_DIALOG (dialog));
        return;
      }
  
***************
*** 261,267 ****
    if (! save_file_plugin)
      {
        GtkWidget *dialog = gnome_error_dialog (_("Unknown File Type."));
!       gnome_dialog_run_modal (GNOME_DIALOG (dialog));
        return;
      }
  
--- 261,267 ----
    if (! save_file_plugin)
      {
        GtkWidget *dialog = gnome_error_dialog (_("Unknown File Type."));
!       gnome_dialog_run (GNOME_DIALOG (dialog));
        return;
      }
  
***************
*** 271,277 ****
    if (doc == NULL)
      {
        GtkWidget *dialog = gnome_error_dialog (_("No Document!"));
!       gnome_dialog_run_modal (GNOME_DIALOG (dialog));
        return;
      }
  
--- 271,277 ----
    if (doc == NULL)
      {
        GtkWidget *dialog = gnome_error_dialog (_("No Document!"));
!       gnome_dialog_run (GNOME_DIALOG (dialog));
        return;
      }
  
Index: wp_frame.C
===================================================================
RCS file: /cvs/gnome/gwp/wp_frame.C,v
retrieving revision 1.60
diff -c -r1.60 wp_frame.C
*** wp_frame.C	1998/11/28 07:15:03	1.60
--- wp_frame.C	1998/12/20 00:05:32
***************
*** 882,888 ****
  GtkWidget *
  wp_frame_get_view_parent(WPFrame *frame)
  {
!   return GNOME_APP(frame->window)->table;
  }
  
  
--- 882,888 ----
  GtkWidget *
  wp_frame_get_view_parent(WPFrame *frame)
  {
!   return GNOME_APP(frame->window)->vbox;
  }
  
  
***************
*** 1092,1098 ****
  
    gnome_dialog_set_close (GNOME_DIALOG (dialog), TRUE);
    gnome_dialog_close_hides (GNOME_DIALOG (dialog), TRUE);
!   gnome_dialog_run_modal (GNOME_DIALOG (dialog));
  }
  
  
--- 1092,1098 ----
  
    gnome_dialog_set_close (GNOME_DIALOG (dialog), TRUE);
    gnome_dialog_close_hides (GNOME_DIALOG (dialog), TRUE);
!   gnome_dialog_run (GNOME_DIALOG (dialog));
  }
  
  


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