1. 19 Sep, 2008 1 commit
    • Tristan Van Berkom's avatar
      Now we have a conversion routine that is run in the plugin to convert some · 351a89ed
      Tristan Van Berkom authored
      
      	Now we have a conversion routine that is run in the plugin to
      	convert some data for one format to another (builder on the way...)
      	In this patch we use it to handle GtkAdjustment property conversions.
      	(NOTE: Completely undoable)
      	
      	* gladeui/glade-editor-property.c: Made adjustment eprop fallback on
      	  object dialog in builder cases.
      
      	* gladeui/glade-command.[ch]: Added glade_command_set_project_format()
      
      	* gladeui/gldae-catalog.c, gladeui/glade-xml-utils.h: Added GladeProjectConvertFunc
      
      	* plugins/gtk+/Makefile.am, plugins/gtk+/glade-convert.c,
      	plugins/gtk+/gtk+.xml.in: New file to handle conversion routines, 
      	added some objects.
      
      
      svn path=/trunk/; revision=1935
      351a89ed
  2. 18 Sep, 2008 2 commits
    • Tristan Van Berkom's avatar
      - Show glade widgets in the workspace on selection changes in the project · 745b2193
      Tristan Van Berkom authored
      
      	* src/glade-window.c: 
      	  - Show glade widgets in the workspace on selection changes in the project 
      	    and not on item-activated.
      	  - Rename "Dock Editor" -> "Dock Properties" as per bug 487613.
      	
      	* gladeui/glade-design-layout.c: Fixed expose event to chain to parent class
      	  after drawing an orange box (non window widgets are usualy GTK_NO_WINDOW).
      
      	* gladeui/glade-widget.c: Made glade_widget_show() show the toplevel of any
      	  GtkWidget object, also now shows toplevel non window glade widgets in the
      	  workspace, if the widget is referenced by a property that as a result parents
      	  the widget (i.e. bears a "parentless-widget" property reference), then the
      	  referencing widget is shown instead.
      
      	* gladeui/glade-popup.c: Added devhelp icon to documentation menu item, added
      	  docs icon to normal menu.
      
      
      svn path=/trunk/; revision=1928
      745b2193
    • Christian Persch's avatar
      Replace the deprecated G_GNUC_PRETTY_FUNCTION with G_STRFUNC. Bug #512559. · 5a3e0443
      Christian Persch authored
      	* gladeui/glade-app.c: (glade_app_show_properties),
      	(glade_app_hide_properties):
      	* gladeui/glade-command.c: (glade_command_pop_group): Replace the
      	deprecated G_GNUC_PRETTY_FUNCTION with G_STRFUNC. Bug #512559.
      
      svn path=/trunk/; revision=1927
      5a3e0443
  3. 16 Sep, 2008 1 commit
    • Pavel Kostyuchenko's avatar
      Creating toplevel widget through unified glade-palette interface. Removed · 7a250eda
      Pavel Kostyuchenko authored
      2008-09-16  Pavel Kostyuchenko <ShprotX@gmail.com>
      
              * gladeui/glade-app.c:
                Creating toplevel widget through unified glade-palette interface.
                Removed error message when pasting non-toplevel widgets without
                a parent.
      
              * gladeui/glade-command.h: A new function for getting depth of command recursion
      
              * gladeui/glade-command.c:
                A new function for getting depth of command recursion.
                A return value of glade_command_set_property_execute function is valid
                and is respected by glade_command_set_properties_list.
                indicate success/failure of their execution.
                Glade-command can be unified to null.
                Setting property command is always executed as a group, so if there is
                any recursive command, they will be added to that group.
                Removed parentless widget message level lowered from critical to
                message.
                Widget is treated as toplevel only if it has no parent.
                Removed an assertion from glade_command_create that doesn't allow
                creation of non-GtkWindow parentless widgets
      
              * gladeui/glade-editor-property.c:
                Object selection dialog will be optionally filled by parentless
                non-GtkWindow widgets only
                Unparenting root widgets before setting another property to them
      
              * gladeui/glade-inspector.c:
                Popup for clicking even on empty part of widget list
      
              * gladeui/glade-palette.h:
                A unified function for creating root widgets
      
              * gladeui/glade-palette.c:
                A unified function for creating root widgets
                A new button for creating root widgets
      
              * gladeui/glade-placeholder.[ch]:
                glade_placeholder_get_project has been made public for using in
                glade-popup
      
              * gladeui/glade-popup.c:
                A new function glade_popup_simple_pop for creating a context menu on
                an empty space of glade-inspector
                New context menu items for adding widgets
      
              * gladeui/glade-popup.h:
                A new function glade_popup_simple_pop for creating a context menu on
                an empty space of glade-inspector
      
              * gladeui/glade-project.c:
                Unifying command even if there's redo items.
                Unifying atomic commands only.
                Unifying to null
      
              * gladeui/glade-property-class.[ch]:
                A new field for making properties that points to parentless widgets
      
              * gladeui/glade-property.h:
                Added a return value to glade_property_set* functions to indicate
                success/failure that is used in glade-command
      
              * gladeui/glade-property.c:
                Ignoring parentless_widget properties while duplicating properties.
                Additional check while adding/removing property reference
                Added a return value to glade_property_set* functions to indicate
                success/failure that is used in glade-command.
                Determining that property is changed using glade-proproperty method
                instead of direct comparing GValue.
                Loading properties through glade-widget-adaptor interface instead of
                getting them directly.
                remove_object method now unsets referencing property instead of
                setting it.
                Removed dummy duplicated setting of property while unsetting
                referencing property.
      
              * gladeui/glade-property.h:
                Added a return value to glade_property_set* functions to indicate
                success/failure that is used in glade-command.
      
              * gladeui/glade-widget.c:
                Removed setting widget properties to template/default values while
                building a new object, because they will be set later in constructor.
                Reloading properties after duplicating a widget.
                A new function for removing parent reference, that was made by setting
                parentless_widget property to the widget.
                Saving and loading parentless_widget properties while rebuilding,
                because they cannot be duplicated.
                Corrected destroying of an old widget while rebuilding. Seems like
                it's not fully correct still.
      
              * gladeui/glade-widget.h:
                A new function for removing parent reference, that was made by setting
                parentless_widget property to the widget.
      
              * gladeui/glade-xml-utils.h:
                A new tag "parentless-widget" as a property attribute
      
              * plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in:
                Removed an old hack for "image" property of GtkMessageDialog.
                A new implementation of "image" property using parentless_widget
                kind of property.
                Added an ability of working with parentless widgets using
                "remove parent" and "add parent" items of context menu
      
      
      svn path=/trunk/; revision=1908
      7a250eda
  4. 09 Apr, 2008 1 commit
    • Tristan Van Berkom's avatar
      Filled in all since, deprecated and builder-unsupported properties. · 1dd08365
      Tristan Van Berkom authored
      
      	* plugins/gtk+/gtk+.xml.in: Filled in all since, deprecated and
      	  builder-unsupported properties.
      
      	* gladeui/glade-widget.c, gladeui/glade-widget.h, gladeui/glade-widget-adaptor.c,
      	gladeui/glade-command.c, gladeui/glade-widget-adaptor.h,
      	gladeui/glade-utils.h, gladeui/glade-catalog.c, 
      	gladeui/glade-catalog.h, gladeui/glade-app.c, gladeui/glade-app.h, 
      	gladeui/glade-property-class.c, gladeui/glade-property-class.h, 
      	gladeui/glade-project.c, gladeui/glade-project.h:
      	Added versioning support, you can always chose the target version of
      	your project starting with gtk+ 2.8 - a project preferences dialog has
      	been added where you can switch your format, switch your target version
      	and test for incompatabilities. incompatability error dialogs are also
      	launched on save as. Target versions are saved to the glade file; 
      	TODO: patch GtkBuilder to test the required gtk+ version from
      	<requires lib="gtk+" version="2.8"> and at least warn, also let
      	third party widget developers test thier own versions using builder.
      
      	* gladeui/glade-xml-utils.h, gladeui/glade-xml-utils.c: routines
      	for parsing version numbers.
      
      
      	* gladeui/glade-utils.c: glade_util_ui_message() takes a widget to
      	embed arg now.
      
      
      svn path=/trunk/; revision=1780
      1dd08365
  5. 07 Apr, 2008 1 commit
    • Tristan Van Berkom's avatar
      Run gtkdocize with --flavour=no-tmpl · c43aaea0
      Tristan Van Berkom authored
      
      
      	* autogen.sh: Run gtkdocize with --flavour=no-tmpl
      	
      	* configure.ac: Require gtk-doc 1.9 and bump to 3.5.0 dev version.
      	
      	* doc/gladeui-overrides.txt, doc/children.sgml, doc/tmpl/*: Removed unneeded.
      
      	* doc/gladeui-docs.sgml, doc/widgetclasses.sgml,
      	doc/catalogintro.sgml, doc/Makefile.am: Mega docs update, added new
      	files and completely rediscribed the catalog in its new form.
      
      	* gladeui/glade-design-view.c, gladeui/glade-widget.c, 
      	gladeui/glade-widget-adaptor.c, gladeui/glade-command.c,
      	gladeui/glade-widget-adaptor.h, gladeui/glade-base-editor.c,
      	gladeui/glade-widget-action.c, gladeui/glade-xml-utils.c,
      	gladeui/glade-utils.c, gladeui/glade-catalog.c, gladeui/glade-property.c,
      	gladeui/glade-project.c: Added some description statements to newly 
      	documented files, fixed some warnings in other sources.
      
      M    ChangeLog
      M    configure.ac
      M    doc/gladeui-docs.sgml
      M    doc/widgetclasses.sgml
      M    doc/catalogintro.sgml
      D    doc/gladeui-overrides.txt
      M    doc/Makefile.am
      D    doc/children.sgml
      D    doc/tmpl
      M    doc/gladeui-sections.txt
      M    doc/gladeui.types
      M    doc/properties.sgml
      M    gladeui/glade-design-view.c
      M    gladeui/glade-widget.c
      M    gladeui/glade-widget-adaptor.c
      M    gladeui/glade-command.c
      M    gladeui/glade-widget-adaptor.h
      M    gladeui/glade-base-editor.c
      M    gladeui/glade-widget-action.c
      M    gladeui/glade-xml-utils.c
      M    gladeui/glade-utils.c
      M    gladeui/glade-catalog.c
      M    gladeui/glade-property.c
      M    gladeui/glade-project.c
      M    autogen.sh
      
      svn path=/trunk/; revision=1775
      c43aaea0
  6. 03 Apr, 2008 1 commit
    • Tristan Van Berkom's avatar
      merging builder branch into trunk · 64bb8141
      Tristan Van Berkom authored
      
      A    plugins/gtk+/glade-keysyms.c
      M    plugins/gtk+/glade-gtk.c
      M    plugins/gtk+/gtk+.xml.in
      A    plugins/gtk+/glade-accels.c
      M    plugins/gtk+/Makefile.am
      A    plugins/gtk+/glade-accels.h
      M    ChangeLog
      M    gladeui/glade-editor.c
      M    gladeui/glade-editor-property.c
      M    gladeui/glade-editor-property.h
      M    gladeui/glade-widget.c
      M    gladeui/glade-widget.h
      M    gladeui/glade-widget-adaptor.c
      M    gladeui/glade-command.c
      M    gladeui/glade-widget-adaptor.h
      M    gladeui/glade-parser.c
      M    gladeui/glade-xml-utils.c
      M    gladeui/glade-base-editor.c
      M    gladeui/glade-utils.c
      D    gladeui/glade-parser.h
      M    gladeui/glade-signal-editor.c
      M    gladeui/glade-xml-utils.h
      D    gladeui/glade-keysyms.c
      M    gladeui/glade-property.c
      M    gladeui/glade-property-class.c
      M    gladeui/glade-property.h
      M    gladeui/glade-builtins.c
      M    gladeui/glade-property-class.h
      M    gladeui/glade-builtins.h
      M    gladeui/glade-project.c
      M    gladeui/glade-signal.c
      M    gladeui/Makefile.am
      M    gladeui/glade-signal.h
      
      svn path=/trunk/; revision=1764
      64bb8141
  7. 30 Jul, 2007 1 commit
    • Juan Pablo Ugarte's avatar
      removed every extra documentation, we keep them empty just because · 2d57d53f
      Juan Pablo Ugarte authored
      * doc/tmpl/*.sgml: removed every extra documentation, we keep them empty just
        because otherwise the build fails.
      
      * doc/gladeui-docs.sgml, doc/gladeui-sections.txt, doc/gladeui.types: updated
        (GladeWidgetClass  replaced by GladeWidgetAdaptor)
      
      * gladeui/glade-editor.c, gladeui/glade-editor-property.c, gladeui/glade-parameter.c,
        gladeui/glade-widget.c, gladeui/glade-fixed.c, gladeui/glade-clipboard.c,
        gladeui/glade-inspector.[ch], gladeui/glade-widget-adaptor.[ch], gladeui/glade-command.c,
        gladeui/glade-command.h, gladeui/glade-base-editor.[ch], gladeui/glade-palette.[ch],
        gladeui/glade-utils.c, gladeui/glade-signal-editor.c, gladeui/glade-app.c,
        gladeui/glade-placeholder.c, gladeui/glade-property.c, gladeui/glade-property-class.c,
        gladeui/glade-project.c, gladeui/glade-clipboard-view.c:
        Added section's short and long description. (moved from tmpl)
      
      
      svn path=/trunk/; revision=1523
      2d57d53f
  8. 23 Jul, 2007 1 commit
  9. 18 Jul, 2007 1 commit
    • Tristan Van Berkom's avatar
      fixed memory leaks of description strings in usage of · a19c419e
      Tristan Van Berkom authored
      
      	* gladeui/glade-command.[ch]: 
      	  fixed memory leaks of description strings in usage of glade_command_push_group()
      	  
      	* gladeui/glade-widget.[ch]: Added convenience apis to set sensitivity on
      	  GladeWidgetActions.
      
      	* gladeui/glade-widget-adaptor.[ch], gladeui/glade-xml-utils.c: Added
      	  deep_post_create() vfunc, in this one you must always chain up to the parent.
      
      	* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Added "Add/Remove" parent
      	  feature (bug 343786), implemented types: Alignment, Viewport, Event Box, Frame,
      	  Aspect Frame, Scrolled Window, Expander, Table, Horizontal Box, Vertical Box,
      	  Horizontal Panes, Vertical Panes
      
      
      svn path=/trunk/; revision=1492
      a19c419e
  10. 21 Jun, 2007 1 commit
    • Vincent Geddes's avatar
      Fix "missing prototype" errors reported by gcc due to increased warning · d6cfd1e4
      Vincent Geddes authored
      	* 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
      d6cfd1e4
  11. 17 Jun, 2007 1 commit
  12. 13 Jun, 2007 1 commit
    • Tristan Van Berkom's avatar
      - Fixed cut/paste inside notebooks (widgets wanted to stay on the same · f5342df7
      Tristan Van Berkom authored
      
      	* gladeui/glade-command.c: 
      	  - Fixed cut/paste inside notebooks (widgets wanted to stay on the same page they 
      	    were cut from)
      	  - Fixed special-child-type handling, dont stomp on the special child type for a
      	    delete/undo combination (a tab widget deleted and brought back was showing up
      	    in the page).
      
      
      svn path=/trunk/; revision=1347
      f5342df7
  13. 01 May, 2007 1 commit
    • Tristan Van Berkom's avatar
      Added 'exact' argument to glade_widget_dup() and added · 1d28bf2c
      Tristan Van Berkom authored
      
      	* gladeui/glade-widget.[ch]: Added 'exact' argument to glade_widget_dup() and
      	  added glade_widget_copy_signals()
      
      	* gladeui/glade-command.c: dup the widget "exactly" when pasting widgets that
      	  were cut (not copied), fixing bug 432519
      
      
      svn path=/trunk/; revision=1287
      1d28bf2c
  14. 06 Feb, 2007 1 commit
    • Tristan Van Berkom's avatar
      changed glade_eprop_text_show_i18n_dialog() to call a command to change · d33826b6
      Tristan Van Berkom authored
      
      	* gladeui/glade-editor-property.c: changed glade_eprop_text_show_i18n_dialog()
      	  to call a command to change the i18n metadata on the label property
      	  instead of changing it directly.  This allows the change to be
      	  un-/re-done (bug 352454).
      
      	* gladeui/glade-command.[ch]: added the glade_command_set_i18n command.
      
      
      svn path=/trunk/; revision=1071
      d33826b6
  15. 28 Jan, 2007 1 commit
    • Tristan Van Berkom's avatar
      Made 'pasting' an explicit arg of glade_command_add(), this fixes the · 593dbc26
      Tristan Van Berkom authored
      
      	* gladeui/glade-command.c: Made 'pasting' an explicit arg of glade_command_add(),
      	  this fixes the broken clipboard selection search (since we now use dupped 
      	  widgets only in pastes), now packing defaults and packing property tranfers
      	  on paste both work.
      
      	* gladeui/glade-widget.c: Removed redundant code.
      
      
      svn path=/trunk/; revision=1058
      593dbc26
  16. 27 Jan, 2007 1 commit
    • Tristan Van Berkom's avatar
      Set project properly in glade_command_remove() (this fixes undo/redo of · 1934d006
      Tristan Van Berkom authored
      
      	* 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
      1934d006
  17. 23 Jan, 2007 1 commit
  18. 22 Jan, 2007 1 commit
    • Tristan Van Berkom's avatar
      Fix for bug 345603: · 6273d283
      Tristan Van Berkom authored
      	* src/glade-command.c, src/glade-command.h:
      	  - Redesigned the implementation of the following commands:
      	    - glade_command_delete
      	    - glade_command_create
      	    - glade_command_cut
      	    - glade_command_copy
      	    - glade_command_paste
                  These are now command aliases.
      	    - Added a new drag-and-drop command, glade_command_dnd, to replace former
      	      glade_command_cut/glade_command_paste command pairs.
      	    - Added the following set of canonical commands which comprise the implementation
      	      of the command aliases:
      	    - glade_command_add
      	    - glade_command_remove
      	    - glade_command_clipboard_add
      	    - glade_command_clipboard_remove
      
      	* src/glade-gtk.c:
      	  Replaced the cut/paste command pair with the dnd command in 
      	  glade_gtk_menu_shell_move_child().
      	
      	* src/glade-base-editor.c:
      	  Replaced the cut/paste command pair with the dnd command in 
      	  glade_base_editor_change_type() and glade_base_editor_move_child(). 
      
      
      svn path=/trunk/; revision=1048
      6273d283
  19. 12 Dec, 2006 1 commit
    • Tristan Van Berkom's avatar
      src/glade-base-editor.c src/glade-clipboard-view.c src/glade-command.c · c1fabcc8
      Tristan Van Berkom authored
      
      	* src/glade-base-editor.c src/glade-clipboard-view.c src/glade-command.c
      	src/glade-command.h src/glade-design-layout.c src/glade-design-view.c
      	src/glade-editor-property.c src/glade-editor-property.h
      	src/glade-editor.c src/glade-gnome.c src/glade-gtk.c
      	src/glade-palette-box.c src/glade-palette-item.c src/glade-palette.c
      	src/glade-project-view.c src/glade-project-window.c
      	src/glade-project.c src/glade-property-class.c
      	src/glade-property-class.h src/glade-property.c src/glade-property.h
      	src/glade-python-gwa.c src/glade-python.c src/glade-utils.c
      	src/glade-utils.h src/glade-widget-adaptor.c
      	src/glade-widget-adaptor.h src/glade-widget.c src/glade-widget.h
      
      	Renamed reserved C++ keywords "new", "class", "virtual", "template" and "this"
      	as a prerequisite for adding gtkmm bindings
      c1fabcc8
  20. 19 Oct, 2006 1 commit
  21. 06 Sep, 2006 1 commit
  22. 05 Sep, 2006 1 commit
  23. 17 Aug, 2006 1 commit
  24. 16 Aug, 2006 1 commit
    • Juan Pablo Ugarte's avatar
      fixed bug 345604 "Pasting a widget does not paste the packing options" · 37b805c4
      Juan Pablo Ugarte authored
      * src/glade-command.c: fixed bug 345604
        "Pasting a widget does not paste the packing options"
      
      * src/glade-property-class.[ch]: added transfer_on_paste property to
        GladePropertyClass.
      
      * src/glade-widget.[ch]: exported glade_widget_dup_properties()
      
      * src/glade.h added GLADE_TAG_TRANSFER_ON_PASTE tag.
      
      * widgets/gtk+.xml.in: set transfer-on-paste on corresponding packing
        properties.
      37b805c4
  25. 11 Aug, 2006 1 commit
  26. 10 Aug, 2006 1 commit
    • Tristan Van Berkom's avatar
      Now check if placeholders are GTK_WIDGET_MAPPED() before returning them, · 99c063d1
      Tristan Van Berkom authored
      
      	* src/glade-utils.c: Now check if placeholders are GTK_WIDGET_MAPPED()
      	  before returning them, since placeholders "overlap" inside notebooks.
      
      	* src/glade-command.c: bookkeeping on "special-child-type" for cut/copy/paste
      	  consistancy.
      
      	* src/glade-gtk.c, widgets/gtk+.xml.in: Tons of code added to manage notebooks.
      
      	* src/glade-widget.c: Change the order of an if statement (avoid
      	  comparing irrelevent memory).
      99c063d1
  27. 08 Aug, 2006 1 commit
    • Juan Pablo Ugarte's avatar
      reworked glade_app_command_paste () placeholders can not be selected · f02782c5
      Juan Pablo Ugarte authored
      * src/glade-app.c: reworked glade_app_command_paste () placeholders can
        not be selected anymore.
      
      * src/glade-command.c: in glade_command_cut_copy_paste_common () we try
        to use the placeholder which has the pointer over it first.
      
      * src/glade-fixed.[ch]: add new property "use-placeholders".
      
      * src/glade-gtk.c: set "use-placeholders" for GtkBox and GtkTable.
      
      * src/glade-popup.c: reworked glade_popup_create_placeholder_menu () and
        glade_popup_placeholder_paste_cb (), placeholders do not get selected
        anymore.
      
      * src/glade-utils.[ch] glade_util_selected_placeholder () removed,
        added glade_util_get_placeholder_from_pointer ().
      f02782c5
  28. 27 Jul, 2006 1 commit
    • Juan Pablo Ugarte's avatar
      adapted to the new glade_command_set_property() prototype. · 4067fc15
      Juan Pablo Ugarte authored
      * src/glade-base-editor.c, src/glade-editor-property.c:
        adapted to the new glade_command_set_property() prototype.
      
      * src/glade-command.[ch]: changed prototype of
        glade_command_set_property(), added glade_command_set_property_value()
      
      * src/glade-fixed.c: do not call gtk_widget_grab_focus() in
        glade_fixed_event() it makes widgets fight for the focus on some
        situations.
      
      * src/glade-gtk.c: GtkEntry and GtkTextView support improved.
        Now text property can be edited from the instance itself.
      4067fc15
  29. 26 Jul, 2006 1 commit
    • Tristan Van Berkom's avatar
      Reset cursor after creating a widget. · eeb31902
      Tristan Van Berkom authored
      
      	* src/glade-placeholder.c: Reset cursor after creating a widget.
      
      	* src/glade-command.c: glade_command_push_group () now formats its own string.
      
      	* src/glade-base-editor.c: simplify code by letting glade_command_push_group ()
      	  format its own string.
      
      	* src/glade-fixed.c, src/glade-gtk.c: Added cuter names for undo/redo items
      	  pertaining to drag/resize.
      eeb31902
  30. 22 Jul, 2006 1 commit
    • Tristan Van Berkom's avatar
      Use gtk_widget_get_pointer on the event widget to retrieve the mouse · 47dee8c0
      Tristan Van Berkom authored
      
      	* src/glade-widget.c: Use gtk_widget_get_pointer on the event widget
      	  to retrieve the mouse position, not gdk_window_get_pointer on any
      	  arbitrary event widget of that window.
      
      	* src/glade-fixed.c: Use gtk_widget_get_pointer() where we were using
      	  gdk_window_get_pointer().
      
      	* src/glade-command.c: disabling the debug print.
      
      	* TODO: Updated
      47dee8c0
  31. 13 Jul, 2006 1 commit
    • Juan Pablo Ugarte's avatar
      added files glade-base-editor.[ch] · 0c4e3578
      Juan Pablo Ugarte authored
      	* src/Makefile.am: added files glade-base-editor.[ch]
      
      	* src/glade-accumulators.[ch]: new accumulators
      	  glade_string_accumulator() and glade_stop_emission_accumulator ()
      
      	* src/glade-app.c, src/glade-project.c and src/glade-command.c:
      	  use of GladeWidgetClass toplevel flag.
      
      	* src/glade-gtk.c: Use of GladeBaseEditor for GtkMenuBar, GtkToolBar
      	  and GtkMenu editors.
      
      	* src/glade-marshallers.list: added OBJECT:OBJECT,UINT
      	  BOOLEAN:OBJECT,UINT BOOLEAN:OBJECT,OBJECT and STRING:OBJECT
      
      	* src/glade-property.[ch]: Added old_value parameter to GladeProject
      	  "value_changed" signal.
      
      	* src/glade-widget-class.[ch]: added toplevel flag to GladeWidgetClass
      
      	* src/glade.h: added GLADE_XML_TAG_TOPLEVEL
      
      	* src/glade-base-editor.[ch]: Created GladeBaseEditor class from
      	  GtkMenuBarEditor code from glade-gtk.c
      
      	* widgets/gtk+.xml.in:
      	  o added launch-editor-function for GtkToolbar and GtkMenu.
      	  o Set GtkTextView post-create-function to empty (we do not need a
      	    placeholder in it).
      	  o Set toplevel="True" in GtkWindow and GtkMenu.
      
      	* doc/widgetclasses.sgml: added toplevel property docs
      
      	* po/POTFILES.in: added src/glade-base-editor.c
      0c4e3578
  32. 30 Jun, 2006 1 commit
    • Tristan Van Berkom's avatar
      o Added "#if 0" debugging code and removed an old comment that doesnt make · 65730f85
      Tristan Van Berkom authored
      
      	* src/glade-command.c:
      	  o Added "#if 0" debugging code and removed an old comment that doesnt make
      	    sence anymore.
      	  o Now refresh packing properties in set-property commands, as we keep a
      	    reference to the GladeProperty, which may be reset on the GladeWidget in
      	    question when added to a child.
      
      	* src/glade-gtk.c: Removed a large complex code segment in
      	  glade_gtk_table_set_child_property() that in the end wasnt needed at all.
      65730f85
  33. 29 Jun, 2006 1 commit
    • Tristan Van Berkom's avatar
      Major rework underway, phase one complete: Move undo/redo stack logic from · 3d2ccb52
      Tristan Van Berkom authored
      
      	* src/glade-project.[ch], src/glade-command.[ch]: Major rework underway,
      	  phase one complete: Move undo/redo stack logic from glade-command to glade-project
      	  and add a "changed" signal on the project ("update-ui" is fired also anytime
      	  the "changed" signal is fired).
      
      	* src/glade-app.c, src/glade-project-window.c: small changes to accomadated afore
      	  mentioned api changes.
      
      	* src/glade-marshallers.list: Added new signal VOID:OBJECT,BOOLEAN
      3d2ccb52
  34. 25 Jun, 2006 1 commit
    • Tristan Van Berkom's avatar
      o gtk_window_set_decorated() all GtkWindows (bug 344817) o Fixed · 36d1b086
      Tristan Van Berkom authored
      
      	* src/glade-widget.[ch]:
      	  o gtk_window_set_decorated() all GtkWindows (bug 344817)
      	  o Fixed glade_widget_rebuild(), now properties of internal widgets to composite
      	    widgets' properties get transported along.
      	  o Fixed popups to only get spawned by the widget in question
      	    and not an unknown internal child.
      	  o Added widget superuser modes (used by the backend to check when
      	    its responsable for maintaining container sizes).
      	  o glade_widget_rebuild () fixed so that properties on rebuilt internal
      	    children are transfered.
      
      	* src/glade-project.c: let glade-widget take care of property superuser mode
      	  at load time.
      
      	* src/glade-fixed.ch: connect_after on button_press to give a chance to
      	  the selection
      
      	* src/glade-command.c: Fixed unifies for properties (check that they
      	  are on the same widgets).
      
      	* src/glade-gtk.c:
      	  o GtkBox check superuser mode to adjust box size
      36d1b086
  35. 24 Jun, 2006 1 commit
    • Tristan Van Berkom's avatar
      Dont call verify funcs in superuser mode · 95edd61e
      Tristan Van Berkom authored
      
      	* src/glade-property.c: Dont call verify funcs in superuser mode
      
      	* src/glade-command.c: Now unification/collapse of multiple properties
      	  works seemlessly
      
      	* src/glade-editor.c, src/glade-editor-property.c: Added docs.
      
      	* src/glade-property-class.c: compare 'packing' in glade_property_class_match().
      
      	* src/glade-widget-class.c: Fix compiler warnings.
      95edd61e
  36. 18 Jun, 2006 1 commit
  37. 17 Jun, 2006 1 commit
    • Tristan Van Berkom's avatar
      Added glade_property_[push/pop]_superuser() · d3038a8e
      Tristan Van Berkom authored
      
      	* src/glade-property.[ch]: Added glade_property_[push/pop]_superuser()
      
      	* src/glade-command.c: refined set_property_execute() and started using
      	  glade_property_push/pop_superuser().
      
      	* src/glade-project.c: super-user property mode at load time.
      
      	* src/glade-fixed.c: Added "can-resize" property
      
      	* src/glade-widget-class.c: Made sure to parse a "Fixed" if there are no
      	  other child tags.
      
      	* src/glade-gtk.c, widgets/gtk+.xml.in: Implemented drag on GtkBox children
      d3038a8e
  38. 14 Jun, 2006 1 commit
    • Tristan Van Berkom's avatar
      fixed typos · acb6a548
      Tristan Van Berkom authored
      
      	* doc/catalogintro.sgml: fixed typos
      
      	* src/glade-command.c: Removed unneeded "if"
      
      	* src/glade-fixed.[ch]: connect/disconnect child now takes GObject arg
      	  instead of GladeWidget (for cases of widget rebuilds), removed redundant
      	  variables
      
      	* src/glade-gnome.c, src/glade-gtk.c: changed glade_widget_class_container_add
      	  to glade_widget_add_child()
      
      	* src/glade-widget.c:
      	  o Fixed glade_widget_rebuild() in regards to using the
      	    _add_child()/_remove_child() api and visibility.
      	  o Fixed more event related selection bugs (by retrieving the mouse
      	    pointer with window_get_pointer())
      	  o Fixed GladeWidgetDataTag to use the quark everywhere
      acb6a548
  39. 09 Jun, 2006 1 commit
    • Tristan Van Berkom's avatar
      Made changes for changed files. · 16743369
      Tristan Van Berkom authored
      
      	* src/Makefile.am, po/POTFILES.in: Made changes for changed files.
      
      	* src/glade-fixed.[ch]: The new GladeWidget derived free form placement
      	  support object.
      
      	* src/glade-fixed-manager.[ch]: Removed.
      
      	* doc/catalogintro.sgml: made mention of new 'fixed' property on
      	  'glade-widget-class' tag
      
      	* doc/gladeui-sections.txt, doc/Makefile.am,
      	  doc/tmpl/*, doc/gladeui.types: Updated for file changes.
      
      	* src/glade-app.c, src/glade-command.c, src/glade-gnome.c, src/glade.h:
      	  Changed for new apis in glade-widget and glade-fixed.
      
      	* src/glade-gtk.c:
      	  o Changed for new apis in glade-widget and glade-fixed.
      	  o Restructured, now *all* class supports are listed class
      	    by class
      
      	* src/glade-property-class.h: Fixed docs.
      
      	* src/glade-widget-class.[ch]:
      	  o Added glade_widget_class_query ()
      	  o Added glade_widget_class_create_widget ()
      	  o Added glade_widget_class_create_internal ()
      
      	* src/glade-widget.[ch]: API is stablizing now... lots of cleanup done,
      	  added construct properties used in the constructor to create properties and
      	  runtime instances.
      
      	* widgets/gtk+.xml.in:
      	  o Toolbars expand=False by default in GtkVBoxes
      	  o GtkPaned now works a little stabler
      	  o GtkFixed/GtkLayout marked 'fixed'.
      16743369