[Gnucash-changes] Remove the remnants of the gtk1/gnome1 MDI code.

David Hampton hampton at cvs.gnucash.org
Tue Jul 19 22:52:11 EDT 2005


Log Message:
-----------
Remove the remnants of the gtk1/gnome1 MDI code.

Tags:
----
gnucash-gnome2-dev

Modified Files:
--------------
    gnucash/src/app-utils:
        prefs.scm
    gnucash/src/gnome-utils:
        dialog-utils.c
        dialog-utils.h

Revision Data
-------------
Index: prefs.scm
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/app-utils/prefs.scm,v
retrieving revision 1.28.4.8
retrieving revision 1.28.4.9
diff -Lsrc/app-utils/prefs.scm -Lsrc/app-utils/prefs.scm -u -r1.28.4.8 -r1.28.4.9
--- src/app-utils/prefs.scm
+++ src/app-utils/prefs.scm
@@ -513,32 +513,6 @@
   (N_ "_+Advanced") (N_ "Save Window Geometry")
   "a" (N_ "Save window sizes and positions.") #t))
 
-(gnc:register-configuration-option
- (gnc:make-multichoice-option
-  (N_ "_+Advanced") (N_ "Application MDI mode")
-  "ba" (N_ "Choose how new windows are created for reports and account trees.")
-  'mdi-notebook
-  (list (list->vector
-         (list 'mdi-notebook
-               (N_ "Notebook")
-               (N_ "New windows are created as notebook tabs in the \
-current top-level window")))
-        (list->vector
-         (list 'mdi-toplevel
-               (N_ "Top-level")
-               (N_ "Create a new top-level window for each report \
-or account tree")))
-        (list->vector
-         (list 'mdi-modal
-               (N_ "Single window")
-               (N_ "One window is used for all displays (select contents \
-through Window menu)")))
-        (list->vector
-         (list 'mdi-default
-               (N_ "Use GNOME default")
-               (N_ "Default MDI mode can be set in the GNOME \
-Control Center"))))))
-
 (gnc:register-configuration-option     
  (gnc:make-simple-boolean-option
   (N_ "_+Advanced") (N_ "Auto-Raise Lists")
Index: dialog-utils.h
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnome-utils/dialog-utils.h,v
retrieving revision 1.6.4.7
retrieving revision 1.6.4.8
diff -Lsrc/gnome-utils/dialog-utils.h -Lsrc/gnome-utils/dialog-utils.h -u -r1.6.4.7 -r1.6.4.8
--- src/gnome-utils/dialog-utils.h
+++ src/gnome-utils/dialog-utils.h
@@ -52,7 +52,6 @@
 				   gint num_options);
 
 
-GnomeMDIMode    gnc_get_mdi_mode(void);
 GtkToolbarStyle gnc_get_toolbar_style (void);
 void gnc_get_deficit_color (GdkColor *color);
 void gnc_set_label_color (GtkWidget *label, gnc_numeric value);
Index: dialog-utils.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnome-utils/dialog-utils.c,v
retrieving revision 1.13.4.14
retrieving revision 1.13.4.15
diff -Lsrc/gnome-utils/dialog-utils.c -Lsrc/gnome-utils/dialog-utils.c -u -r1.13.4.14 -r1.13.4.15
--- src/gnome-utils/dialog-utils.c
+++ src/gnome-utils/dialog-utils.c
@@ -167,34 +167,6 @@
   return tbstyle;
 }
 
-/********************************************************************
- * gnc_get_mdi_mode                                                 *
- * returns the current Gnome MDI mode preference                    *
- ********************************************************************/
-GnomeMDIMode 
-gnc_get_mdi_mode(void) {
-  GnomeMDIMode mode = GNOME_MDI_DEFAULT_MODE;
-  char * mode_string = gnc_lookup_multichoice_option("_+Advanced",
-                                                     "Application MDI mode",
-                                                     "");
-  if(!safe_strcmp(mode_string, "mdi-notebook")) {
-    mode = GNOME_MDI_NOTEBOOK;
-  }
-  else if(!safe_strcmp(mode_string, "mdi-toplevel")) {
-    mode = GNOME_MDI_TOPLEVEL;    
-  }
-  else if(!safe_strcmp(mode_string, "mdi-modal")) {
-    mode = GNOME_MDI_MODAL;    
-  }
-  else if(!safe_strcmp(mode_string, "mdi-default")) {
-    mode = GNOME_MDI_DEFAULT_MODE;    
-  }
-
-  if(mode_string) free(mode_string);
-  return mode;
-}
-
-
 /********************************************************************\
  * gnc_get_deficit_color                                            *
  *   fill in the 3 color values for the color of deficit values     *


More information about the gnucash-changes mailing list