gide.h cleanup patch



Below is the gide.h cleanup/removal patch. Note that gide.h should also be cvs removed.

(chema, you're cc'd cause I thought you'd want to know. The links sent to gnome-love is what got me into gIDE in the first place. ;) My first code submission! Code cleanup may not be the most l33t hacking job ever, but it's pretty awesome to be doing something useful.)

---------------------
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gIDE/ChangeLog,v
retrieving revision 1.121
diff -c -r1.121 ChangeLog
*** ChangeLog	2001/07/18 04:22:03	1.121
--- ChangeLog	2001/07/18 20:31:01
***************
*** 1,3 ****
--- 1,24 ----
+ 2001-07-18  Dave Fallon <davef tetsubo com>
+ 
+ 	* gide.h cleanup and removal
+ 
+ 	* plugins/evo-mail/mail-tool.c
+ 	  plugins/mail/mail-tool.c
+ 	  plugins/help/help.c
+ 	  src/Makefile.am
+ 	  src/gI_window.c
+ 	  src/gI_window.h
+ 	  src/gide-windows.c
+ 	  src/gide-windows.h
+ 	  src/gide.c
+ 	  src/dialog-prefs.c
+ 	removal of the gide.h include
+ 
+ 	* src/gI_window.h: Moved the GideWindow declaration here from gide.h
+ 	Moved the main_window extern declaration here from gide.h
+ 
+ 	* src/gide.c: Removed the *_path declarations
+ 
  2001-07-18  Dave Camp  <dave ximian com>
  
  	* libgide/gide-doc.c (gide_find_word_begin): New function.
Index: TODO
===================================================================
RCS file: /cvs/gnome/gIDE/TODO,v
retrieving revision 1.17
diff -c -r1.17 TODO
*** TODO	2001/07/18 06:28:00	1.17
--- TODO	2001/07/18 20:31:01
***************
*** 71,77 ****
    -> needs to be implemented by all controls
    * campd is doing this for scintilla
  - gI_run is out of date
- - check whether global vars in gide.c are used/needed
  - do we keep a history of open files/project when quitting?
    -> yes, but configurable (implement workspaces?)
  - add multiple projects per workspace?
--- 71,76 ----
***************
*** 112,118 ****
    -> remove
  - compile sets? is that in gnome-build?
    -> remove
- - gide.h can probably be removed
  - remove #include <gnome.h> and use more restrictive includes (to speed up
    compiling)
  - fix warnings (compile and gtk)
--- 111,116 ----
***************
*** 121,124 ****
  - determine plugin load order for menu merging (or other fix)
  - port to gtk+ 2.0 / gnome 2.0? when?
  - gnome-build.idl: use correct (studly?) caps
!   * jpr
\ No newline at end of file
--- 119,122 ----
  - determine plugin load order for menu merging (or other fix)
  - port to gtk+ 2.0 / gnome 2.0? when?
  - gnome-build.idl: use correct (studly?) caps
!   * jpr
Index: plugins/evo-mail/mail-tool.c
===================================================================
RCS file: /cvs/gnome/gIDE/plugins/evo-mail/mail-tool.c,v
retrieving revision 1.3
diff -c -r1.3 mail-tool.c
*** plugins/evo-mail/mail-tool.c	2001/07/11 06:09:33	1.3
--- plugins/evo-mail/mail-tool.c	2001/07/18 20:31:02
***************
*** 15,23 ****
  #include <libgnomevfs/gnome-vfs-mime-info.h>
  #include <libgnomevfs/gnome-vfs-mime-handlers.h>
  
- 
- #include "../../src/gide.h"
- 
  #define MAIL_COMPONENT_IID "OAFIID:GNOME_Development_Plugin:mail"
  #define PLUGIN_NAME			"gide-mail-plugin"
  #define PLUGIN_XML			"gide-mail-plugin.xml"
--- 15,20 ----
Index: plugins/help/help.c
===================================================================
RCS file: /cvs/gnome/gIDE/plugins/help/help.c,v
retrieving revision 1.2
diff -c -r1.2 help.c
*** plugins/help/help.c	2001/06/29 08:02:50	1.2
--- plugins/help/help.c	2001/07/18 20:31:03
***************
*** 11,17 ****
  #include <stdlib.h>
  #include <glade/glade.h>
  #include <libgide/libgide.h>
- #include "../../src/gide.h"
  #include "help.h"
  
  #define GLADE_FILE			"man_plugin.glade"
--- 11,16 ----
Index: plugins/mail/mail-tool.c
===================================================================
RCS file: /cvs/gnome/gIDE/plugins/mail/mail-tool.c,v
retrieving revision 1.4
diff -c -r1.4 mail-tool.c
*** plugins/mail/mail-tool.c	2001/07/11 06:09:35	1.4
--- plugins/mail/mail-tool.c	2001/07/18 20:31:04
***************
*** 16,22 ****
  #include <netinet/in.h>
  #include <arpa/inet.h>
  #include <netdb.h>
- #include "../../src/gide.h"
  
  #define MAIL_COMPONENT_IID "OAFIID:GNOME_Development_Plugin:mail"
  #define PLUGIN_NAME			"gide-mail-plugin"
--- 16,21 ----
Index: src/Makefile.am
===================================================================
RCS file: /cvs/gnome/gIDE/src/Makefile.am,v
retrieving revision 1.45
diff -c -r1.45 Makefile.am
*** src/Makefile.am	2001/07/17 04:27:24	1.45
--- src/Makefile.am	2001/07/18 20:31:04
***************
*** 24,30 ****
  	gI_window.c 			\
  	gI_window.h 			\
  	gide.c 				\
- 	gide.h 				\
  	gide-windows.h 			\
  	gide-windows.c  		\
  	e-splash.c 			\
--- 24,29 ----
Index: src/gI_window.c
===================================================================
RCS file: /cvs/gnome/gIDE/src/gI_window.c,v
retrieving revision 1.36
diff -c -r1.36 gI_window.c
*** src/gI_window.c	2001/07/04 23:52:24	1.36
--- src/gI_window.c	2001/07/18 20:31:05
***************
*** 25,31 ****
  #include <gal/e-paned/e-vpaned.h>
  #include <gal/e-paned/e-hpaned.h>
  #include "gI_window.h"
- #include "gide.h"
  
  #include <libgide/libgide.h>
  
--- 25,30 ----
Index: src/gI_window.h
===================================================================
RCS file: /cvs/gnome/gIDE/src/gI_window.h,v
retrieving revision 1.16
diff -c -r1.16 gI_window.h
*** src/gI_window.h	2001/07/04 22:54:59	1.16
--- src/gI_window.h	2001/07/18 20:31:05
***************
*** 22,28 ****
  #include <bonobo.h>
  #include <libgide/libgide.h>
  
- #include "gide.h"
  #define GIDE_WINDOW(o)          (GTK_CHECK_CAST ((o), gI_window_get_type(), GideWindow))
  #define GIDE_WINDOW_CLASS(k)    (GTK_CHECK_CLASS_CAST((k), gI_window_get_type(), GideWindowClass))
  #define IS_GIDE_WINDOW(o)       (GTK_CHECK_TYPE ((o), gI_window_get_type()))
--- 22,27 ----
***************
*** 33,38 ****
--- 32,39 ----
  	BonoboWindowClass   parent_class;
  };
  
+ typedef struct _GideWindow		GideWindow;
+ 
  struct _GideWindow {
  	BonoboWindow app;
  	BonoboUIComponent *uic;
***************
*** 67,72 ****
--- 68,76 ----
  
  	gint debug_id;
  };
+ 
+ /* Pointer to the main window. Obsolete, shouldn't be used */
+ extern GideWindow			*main_window;
  
  /*
   * Prototypes for 'gI_window.c'
Index: src/gide-windows.c
===================================================================
RCS file: /cvs/gnome/gIDE/src/gide-windows.c,v
retrieving revision 1.5
diff -c -r1.5 gide-windows.c
*** src/gide-windows.c	2001/07/01 21:58:48	1.5
--- src/gide-windows.c	2001/07/18 20:31:05
***************
*** 17,23 ****
   * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   */
  
- #include "gide.h"
  #include "gide-windows.h"
  #include "gI_window.h"
  #include "tools.h"
--- 17,22 ----
Index: src/gide-windows.h
===================================================================
RCS file: /cvs/gnome/gIDE/src/gide-windows.h,v
retrieving revision 1.4
diff -c -r1.4 gide-windows.h
*** src/gide-windows.h	2001/03/03 05:44:26	1.4
--- src/gide-windows.h	2001/07/18 20:31:05
***************
*** 20,26 ****
  #ifndef GIDE_WINDOWS_H
  #define GIDE_WINDOWS_H
  
- #include "gide.h"
  #include "gI_window.h"
  #include "e-splash.h"
  
--- 20,25 ----
Index: src/gide.c
===================================================================
RCS file: /cvs/gnome/gIDE/src/gide.c,v
retrieving revision 1.32
diff -c -r1.32 gide.c
*** src/gide.c	2001/07/04 22:54:59	1.32
--- src/gide.c	2001/07/18 20:31:05
***************
*** 33,43 ****
  /* Main window */
  GideWindow *main_window;
  
- /* Paths */
- gchar gide_path[MAXLEN];
- gchar tools_path[MAXLEN];
- gchar prj_path[MAXLEN];
- 
  static const struct poptOption gide_popt_options [] = {
  	{ NULL, '\0', 0, NULL, 0 }
  };
--- 33,38 ----
Index: src/dialogs/dialog-prefs.c
===================================================================
RCS file: /cvs/gnome/gIDE/src/dialogs/dialog-prefs.c,v
retrieving revision 1.3
diff -c -r1.3 dialog-prefs.c
*** src/dialogs/dialog-prefs.c	2001/03/03 05:44:31	1.3
--- src/dialogs/dialog-prefs.c	2001/07/18 20:31:06
***************
*** 5,11 ****
   *   JP Rosevear (jpr arcavia com)
   */
  #include <config.h>
- #include "gide.h"
  #include <glade/glade.h>
  #include "dialogs.h"
  #include <libgide/libgide.h>
--- 5,10 ----




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