60 Commits

Author SHA1 Message Date
Vincent Geddes
d6cfd1e4c9 Fix "missing prototype" errors reported by gcc due to increased warning
* plugins/gnome/glade-gnome.h,
	  plugins/gtk+/glade-gtk.c
	  plugins/gtk+/glade-gtk.h
	  plugins/gtk+/Makefile.am,
	  plugins/gnome/glade-gnome.c,
	  plugins/gnome/Makefile.am,
	  src/glade-project-window.c,
	  gladeui/glade-editor-property.c,
	  gladeui/glade-parameter.c,
	  gladeui/glade-widget.c,
	  gladeui/glade-command.c,
	  gladeui/glade-palette.c,
	  gladeui/glade-utils.c,
	  gladeui/glade-accumulators.c,
	  gladeui/glade-palette.h,
	  gladeui/glade-binding.h,
	  gladeui/glade-app.c,
	  gladeui/glade-property.c,
	  gladeui/glade-builtins.c,
	  gladeui/glade-project.c,
	  gladeui/Makefile.am: Fix "missing prototype" errors reported by
	  gcc due to increased warning level (-Wmissing-prototypes). Added
	  glade-gnome.h with function prototypes as well.

svn path=/trunk/; revision=1384
2007-06-21 22:59:42 +00:00
Vincent Geddes
f764641c04 Fix and improve URL launching on win32.
* gladeui/glade-utils.c, src/glade-project-window.c: Fix and improve URL
          launching on win32.

svn path=/trunk/; revision=1352
2007-06-14 17:44:56 +00:00
Tristan Van Berkom
7b31634063 Fixed broken statement in glade_util_url_show_win32().
* gladeui/glade-utils.c: Fixed broken statement in
	  glade_util_url_show_win32().

	* gladeui/glade-app.c: Fixed names of global vars in
	  win32 code.


svn path=/trunk/; revision=1213
2007-03-13 16:27:22 +00:00
Vincent Geddes
cb6e4f5f23 Remove redundant call to `gtk_window_set_position()' in
* src/glade-utils.c: Remove redundant call to `gtk_window_set_position()'
          in `glade_util_file_dialog_new()'. Fixes #408879.

svn path=/trunk/; revision=1118
2007-02-20 21:08:37 +00:00
Tristan Van Berkom
cdcad13568 Fixed sources to build with gcc 2.95 (bug 406504)
* Fixed sources to build with gcc 2.95 (bug 406504)


svn path=/trunk/; revision=1105
2007-02-15 20:05:31 +00:00
Vincent Geddes
f81607b327 - Added a private initialisation function `glade_init_check()' for
* gladeui/glade.h, gladeui/glade-app.[ch]:
          - Added a private initialisation function `glade_init_check()' for
            libgladeui.
          - Removed the 'bad' public variables that defined various installation
            paths. These paths can now be obtained from static class methods on
            GladeApp (static as in the Java and C++ sense).        
        
        * src/main.c, src/glade-project-window.c, gladeui/glade-catalog.c,
          gladeui/glade-binding.c, gladeui/glade-cursor.c,
          gladeui/glade-palette.c gladeui/glade-widget-adaptor.c, 
          gladeui/glade-utils.c, bindings/python/glade-python.c: Use the new
          GladeApp methods for obtaining installation paths.
          
        * gladeui/glade-palette-box.[ch]: Use G_DEFINE_TYPE() and
          g_type_class_add_private().

svn path=/trunk/; revision=1090
2007-02-10 15:36:06 +00:00
Juan Pablo Ugarte
a545abf96d fixed bug in glade_util_have_devhelp() (devhelp 0.13 returns "Devhelp
* gladeui/glade-utils.c: fixed bug in glade_util_have_devhelp()
  (devhelp 0.13 returns "Devhelp 0.13" the 'h' is not capital anymore)

* gladeui/glade-binding.[ch], src/glade-project-window.c,
  bindings/python/glade-python.c: console striped out.

* bindings/python/glade-python-gwa.c: regenerated with pygtk-codegen-2.0


svn path=/trunk/; revision=1086
2007-02-09 20:23:38 +00:00
Tristan Van Berkom
086b27dc3b o Removed search algorythm for child widgets, removed
* gladeui/glade-widget.[ch]: 
	  o Removed search algorythm for child widgets, removed glade_widget_event_widget (), 
	    removed popup-menu signal handler, removed call to gtk_window_set_decorated() 
	    on toplevel project widgets, removed widget->setup_events(), removed hide_on_delete()
	  o Added glade_widget_event() to feed events directly to widgets from the design layout.
	  o Call glade_app_hierarchy_changed() upon add/remove/replace operations

	* gladeui/glade-utils.c: Removed glade_utils_deep_fixed_event() and the
	  hacky widget grab that went with it.

	* gladeui/glade-app.[ch]: Added glade_app_hierarchy_changed() and added
	  "hierarchy-changed" signal.
	
	* gladeui/glade-design-layout.c: 
	  o Make sure event window is always on top by trapping GladeApp's "hierarchy-changed"
	    signal
	  o Feed events directly to the proper GladeWidget, if its not handled then pass it
	    on to the underlying widgets (using gtk_widget_event() directly).

	* gladeui/glade-cursor.c: Removed the recursive cursor setting routine.

	* gladeui/glade-fixed.c: Simplified immensely by removing redundant code,
	  now there is only one GladeWidget to deal with, no searching and gropeing
	  for the appropriate widget to operate on.


svn path=/trunk/; revision=1065
2007-01-31 07:12:33 +00:00
Tristan Van Berkom
1934d006ed Set project properly in glade_command_remove() (this fixes undo/redo of
* gladeui/glade-command.c: Set project properly in glade_command_remove()
	  (this fixes undo/redo of add/remove commands in the menueditor... along
	  with the following fixes).

	* gladeui/glade-widget-adaptor.[ch], gladeui/glade-xml-utils.h: 
	  Added GWA_USE_PLACEHOLDERS(), a boolean on the GWA that is loaded 
	  from the catalog.

	* gladeui/glade-utils.[ch]: Removed glade_util_[any_]container_relation.

	* gladeui/glade-widget.[ch]: Added glade_widget_placeholder_relation

	* gladeui/glade-app.c, gladeui/glade-fixed.c: Adjusted callers for new
	  glade-widget api.

	* gladeui/glade-fixed.[ch]: Removed the "use-placehodlers" property
	  since it is now redundant with the new GWA_USE_PLACEHOLDERS (this
	  simplifies things a little).

	* gladeui/glade-binding.c: Fixed obnoxious startup errors (bug 399178),
	  glade_binding_get_all(), use g_list_prepend()/g_list_reverse() instead
	  of g_list_append() to build a list.

	* gladeui/glade-base-editor.c: Use the right adaptor for gwa_get_children
	  in glade_base_editor_change_type () (was using adaptor for the destination
	  type).
	
	* plugins/gtk/glade-gtk.c: Remove use of "use-placeholders" property
	  on GladeFixed objects.

	* plugins/gtk/gtk+.xml.in: Setup the "use-placeholders" attribute properly
	  (TRUE on GtkContainer, FALSE on GtkMenuShell, GtkMenuItem, GtkToolBar,
	  GtkFixed, GtkLayout).


svn path=/trunk/; revision=1057
2007-01-27 20:15:57 +00:00
Tristan Van Berkom
eb33dd583d Reorganised package structure, moved a lot of files and directories.
* Reorganised package structure, moved a lot of files
	  and directories. Modified the Makefile.am in most directories.

	* po/POTFILES.in, po/POTFILES.skip: Update for reorganisation.

	* configure.ac: Add files to AC_CONFIG_FILES. Change AC_CONFIG_SRCDIR.


svn path=/trunk/; revision=1050
2007-01-23 19:49:04 +00:00