summaryrefslogtreecommitdiff
path: root/widgets
Commit message (Collapse)AuthorAgeFilesLines
* - Ignore "enable-grid-lines" 2.10 property on treeview sinceTristan Van Berkom2006-09-221-0/+8
| | | | | it causes crashes on load (fixes bug 353611) - Added displayable values for "enable-grid-lines" 2.10 property
* Added GLADE_TYPE_STOCK_IMAGE (and standard pspec for it), this is stockTristan Van Berkom2006-09-221-5/+5
| | | | | | | | | | | | | | | * src/glade-builtins.[ch]: Added GLADE_TYPE_STOCK_IMAGE (and standard pspec for it), this is stock items plus the additional "stock images" from gtkstock.h (closing bug 353522). * src/glade-editor-property.c: recognize new stock image pspec type. * src/glade-gtk.c, widgets/gtk+.xml.in: - Bulletproofed toolbar code wrt stock images (also use stock "images" instead of items here) - Use stock "images" for GtkImage - GtkImage "type" property now defaults to "stock" - GtkImage stock id now defaults to "gtk-missing-image"
* o Added new member weight. o glade_property_class_get_displayable_value()Juan Pablo Ugarte2006-09-181-7/+10
| | | | | | | | | | | | | | | | | | | | | | * src/glade-property-class.[ch]: o Added new member weight. o glade_property_class_get_displayable_value() returns is now const. * src/glade-editor-property.c: adapted to the new glade_property_class_get_displayable_value() declaration. * src/glade-editor.c: Fixed bug 345893. "Need to order properties in the editor and widget-groups in the palette" * src/glade-widget-class.c: added glade_widget_class_properties_set_weight(). * src/glade-xml-utils.[ch]: added glade_xml_get_property_double(). * src/glade.h: added new tag GLADE_TAG_WEIGHT. * widgets/gtk+.xml.in: set weight in several properties. GtkWidget's tooltip, GtkBox packing properties, GtkButton GtkImage
* o added support for removing a BonoboDockItem from BonoboDock. o addedJuan Pablo Ugarte2006-09-131-0/+1
| | | | | | | | * src/glade-gnome.c: o added support for removing a BonoboDockItem from BonoboDock. o added missing g_return_if_fail() in several functions * widgets/bonobo.xml.in: added glade_gnome_bonobodock_remove_item()
* added glade_gnome_date_edit_post_create() Fixed bug 351589 "GnomeDateEditJuan Pablo Ugarte2006-09-081-0/+1
| | | | | | | * src/glade-gnome.c: added glade_gnome_date_edit_post_create() Fixed bug 351589 "GnomeDateEdit widget displays time when it shouldn't" * widgets/gnome.xml.in: added GnomeDateEdit's post-create-function
* added glade_gtk_combo_box_entry_get_internal_child() Fixed bug 354716Juan Pablo Ugarte2006-09-081-0/+1
| | | | | | | | * src/glade-gtk.c: added glade_gtk_combo_box_entry_get_internal_child() Fixed bug 354716 "cut&paste ComboBoxEntry crashes Glade" * widgets/gtk+.xml.in: added GtkComboBoxEntry's get-internal-child-function.
* Fixed bug 345075 "GtkPaned is invisible on load". added new functionsJuan Pablo Ugarte2006-08-281-0/+9
| | | | | | | | | | | | | | | | | | | | | * src/glade-gtk.c: Fixed bug 345075 "GtkPaned is invisible on load". added new functions glade_gtk_paned_set_child_property() and glade_gtk_paned_get_child_property(). * src/glade-editor.c: do not load invisible packing properties in glade_editor_load_packing_page(). * widgets/gtk+.xml.in: GtkPaned support improved. o Added new virtual child property "first". o Added child-set-property-function and child-get-property-function * src/glade-utils.[ch]: added convenience function glade_util_object_is_loading() * src/glade-editor-property.c: Fixed bug 352825 "segmentation fault when saving after adding multiple accelerators to buttons" set ACCEL_COLUMN_REAL_SIGNAL in key_edited() when a new slot is appended and free string allocated by gtk_tree_model_get().
* translatable label in menu items.Tristan Van Berkom2006-08-221-1/+1
|
* Fixed non-translatable strings on many properties: title ofTristan Van Berkom2006-08-222-3/+38
| | | | | | | | * widgets/gtk+.xml.in, widgets/gnome.xml.in: Fixed non-translatable strings on many properties: title of GtkFileChooserButton, GtkColorButton and GtkFontButton, text of GtkEntry, GtkProgressBar and GnomeDruidPageStandard, title and text of GnomeDruidPageEdge, all text properties of GtkAboutDialog. (reported by Olivier Rolland)
* Fixed missing translatable attribute on some properties.Tristan Van Berkom2006-08-211-5/+5
|
* Fixed expanders, now there's always a placehodler when needed.Tristan Van Berkom2006-08-181-0/+1
| | | | | * src/glade-gtk.c, widgets/gtk+.xml.in: Fixed expanders, now there's always a placehodler when needed.
* fixed bug 345604 "Pasting a widget does not paste the packing options"Juan Pablo Ugarte2006-08-161-3/+14
| | | | | | | | | | | | | | | * 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.
* Fixed glade_util_get_placeholder_from_pointer to work for notebook tabs.Tristan Van Berkom2006-08-101-1/+0
| | | | | | | | | | | * src/glade-utils.c: Fixed glade_util_get_placeholder_from_pointer to work for notebook tabs. * src/glade-gtk.c, widgets/gtk+.xml.in: Reworked to simplify code and reduce alot of code. * src/glade-utils.c: Now use the toplevel to get the mouse coordinates for the placeholder searching.
* augmenting notebook code...Tristan Van Berkom2006-08-101-0/+3
|
* Now check if placeholders are GTK_WIDGET_MAPPED() before returning them,Tristan Van Berkom2006-08-101-0/+3
| | | | | | | | | | | | | * 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).
* Fixed spelling and formatting typos.Tristan Van Berkom2006-08-042-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | * doc/catalogintro.sgml, doc/children.sgml, doc/gladeui-docs.sgml, doc/tmpl/glade-app.sgml, doc/tmpl/glade-fixed.sgml, doc/tmpl/glade-palette.sgml, doc/tmpl/glade-project.sgml, src/glade-editor.c: Fixed spelling and formatting typos. * src/glade-palette.c: Add documentation. * widgets/glade-catalog.dtd: Removed xml document tag (DTD expressions are not xml). Add 'toplevel' attribute to 'glade-widget-class' attribute list. * widgets/gtk+.xml.in: Change default widget properties (in line with HIG). o The scrolling policies of GtkScrolledWindow are now GTK_POLICY_AUTOMATIC. o The GtkDialog 'has-separator' property is now set to FALSE. o The GtkFrame 'shadow-type' property is now GTK_SHADOW_NONE. * src/glade-gtk.c: Changed glade_gtk_frame_post_create(). By default, GtkFrame's are now more HIG compliant. * pixmaps/22x22/Makefile.am: Another icon.
* Fixed a GtkImage loading bug. (more cleanup)Juan Pablo Ugarte2006-07-281-2/+2
| | | | | | | * src/glade-gtk.c: Fixed a GtkImage loading bug. (more cleanup) * widgets/gtk+.xml.in: renamed GtkImage "glade-stock" and "stock" set-functions to make it more understandable.
* adapted to the new glade_command_set_property() prototype.Juan Pablo Ugarte2006-07-271-2/+2
| | | | | | | | | | | | | | | * 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.
* Fixed bug 347850 "Selection Bug consequence"Juan Pablo Ugarte2006-07-251-0/+2
| | | | | | | | | * src/glade-gtk.c: Fixed bug 347850 "Selection Bug consequence" * src/glade_widget.c: check added in glade_widget_event_private () Some synthetic events (like focus-change) dont come with a window. * widgets/gtk+.xml.in: ignore GtkEntry editable property
* Added text-view handling of virtual "text" property (bug 347961)Tristan Van Berkom2006-07-221-1/+8
| | | | | | | * src/glade-gtk.c, widgets/gtk+.xml.in: Added text-view handling of virtual "text" property (bug 347961) * doc/gladeui-sections.txt, doc/gladeui-docs.sgml: updated.
* expose internal entry of GtkComboBoxEntry.Tristan Van Berkom2006-07-201-1/+3
| | | | * src/glade-gtk.c, widgets/gtk+.xml.in: expose internal entry of GtkComboBoxEntry.
* added files glade-base-editor.[ch]Juan Pablo Ugarte2006-07-131-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Added 'default-palette-state' element and attribute declarations.Tristan Van Berkom2006-06-253-1/+16
| | | | | | | | | | | | | | | | | | * widgets/glade-catalog.dtd: Added 'default-palette-state' element and attribute declarations. * widgets/gtk+.xml.in, widgets/gnome.xml.in: o Obsolete widget groups are now marked as unexpanded in the palette by default. o Add support for GtkIconView. * src/glade-catalog.[ch], src/glade-palette.c: o Add support for parsing 'default-palette-state' catalog tag. o GladePalette now sets the expanded state for widget groups from glade_widget_group_get_expanded(). * glade-3.desktop.in: Add "GenericName" field, set to "User Interface Designer".
* 's/g_return_if_fail/g_return_val_if_fail/'Tristan Van Berkom2006-06-221-2/+2
| | | | | | | | | | * src/glade-palette.c: 's/g_return_if_fail/g_return_val_if_fail/' * src/glade.h, src/glade-builtins.h: Only the forward declaration goes in glade.h. * src/glade-widget-class.c, widgets/gtk+.xml.in: Fixed inheritance of the "->fixed" member in glade_widget_class_merge().
* Used the gtknotebook page property to negotiate pages when editing tablessTristan Van Berkom2006-06-191-2/+6
| | | | | | | * src/glade-gtk.c, widgets/gtk+.xml.in: Used the gtknotebook page property to negotiate pages when editing tabless notebooks (this property is not used correctly by libglade anyway... as it would be set before any pages are added).
* Added glade_property_[push/pop]_superuser()Tristan Van Berkom2006-06-171-4/+4
| | | | | | | | | | | | | | | | * 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
* fixed typosTristan Van Berkom2006-06-141-423/+0
| | | | | | | | | | | | | | | | | | | | * 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
* o Made widgets visible by default and toplevels invisible by defaultTristan Van Berkom2006-06-121-3/+4
| | | | * TODO: Updated.
* Vincent pointed out compile errors on gcc 4.x, fixed.Tristan Van Berkom2006-06-121-49/+52
| | | | | | | | | | | | | | * src/glade-widget-class.c: Vincent pointed out compile errors on gcc 4.x, fixed. * src/glade-gtk.c: Simplified table code a little bit, improved table rezising when shrinking left/up with full-table widgets. * src/glade-utils.c: Fixed the module load code to report errors better (and dont check system paths for the module, only the glade-3 modules dir. * widgets/gtk+.xml.in: Reorganized groups to be more usefull and logical (inspired by gazpacho ordering).
* updatedTristan Van Berkom2006-06-111-2/+2
| | | | | | | | | | | | | | * doc/tmpl/*: updated * src/glade-fixed.[ch], src/glade-widget.[ch]: Improved, now made replace_child a vfunc... fixed some event related bugs. * src/glade-gtk.c, widgets/gtk+.xml.in: Added free-form placement for GtkTable widget. * src/glade-utils.c: added glade_util_deep_fixed_event(), used to propagate events down to fixed containers that dont have windows.
* Made changes for changed files.Tristan Van Berkom2006-06-091-6/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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'.
* o Reverting the simplification of gtkbox, the regression was that the boxBEFORE_GWIDGET_MADNESSTristan Van Berkom2006-06-071-0/+18
| | | | | | | | | | | * src/glade-gtk.c, widgets/gtk+.xml.in: o Reverting the simplification of gtkbox, the regression was that the box placeholders were not adjusting properly on undo/redo of create/delete/cut/paste commands. o Fixing GtkFixed/GtkLayout to not call glade_gtk_container_add/remove_child for its children. * src/glade-command.c: Slight simplifications made.
* o Fixed segfaults on color-button o Fixed color-button & font-buttonTristan Van Berkom2006-06-061-3/+19
| | | | | | | * src/glade-gtk.c, widgets/gtk+.xml.in: o Fixed segfaults on color-button o Fixed color-button & font-button (dropped unused properties) o Fixed initial label text on buttons (and subclass defaults)
* Added GtkToolItem child support to GtkToolbar and new widgets classesTristan Van Berkom2006-06-051-8/+56
| | | | | | | | | | | | | * widgets/gtk+.xml.in: Added GtkToolItem child support to GtkToolbar and new widgets classes GtkToolItem, GtkSeparatorToolItem, GtkToolButton, GtkMenuToolButton, GtkToggleToolButton and GtkRadioToolButton. * src/glade-gtk.c: o added GtkToolbar support functions. o cleanup glade_gtk_menu_shell_get_child_property() and glade_gtk_menu_shell_set_child_property() functions. o tried to make Menu editor UI prettier separating a bit name/type from properties.
* Added autogenerated keysyms (but not autogenerating them at the moment).Tristan Van Berkom2006-06-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | * src/Makefile.am, src/glade-keysyms.c: Added autogenerated keysyms (but not autogenerating them at the moment). * src/glade-builtins.[ch]: Added GLADE_TYPE_ACCEL_GLIST, GLADE_PARAM_SPEC_ACCEL and some convenience funcs. * src/glade-editor-property.c: Added GladeEpropAccel. * src/glade-editor.c: take accel props into account * src/glade-parser.c: Make strings for GdkModifierType in dump_widget. * src/glade-property-class.c, src/glade-widget-class.c: o Now you can get the GladeWidgetClass from the GladePropertyClass o Added string conversion from GladeParamSpecAccel properties (but vise versa) o GladeWidgetClassSignal --> GladeSignalClass, not GSignalQuery struct is included too. * src/glade-property.c, src/glade-widget.c: Load/save support for accel properties.
* Fixed segfault on widget copying.Tristan Van Berkom2006-06-021-2/+0
| | | | | | | | | | | 2006-06-02 Tristan Van Berkom <tvb@gnome.org> * src/glade-widget.c: Fixed segfault on widget copying. 2006-06-02 Juan Pablo Ugarte <juanpablougarte@gmail.com> * src/glade-gtk.c, widgets/gtk+.xml.in: removed support functions from GtkBox... it all still works.
* completing the commitTristan Van Berkom2006-06-022-3/+3
|
* Installed unwanted garbage to pass distcheck.Tristan Van Berkom2006-05-221-2/+2
| | | | | | | | | | | | | | | | | | | | | * src/Makefile.am, widgets/Makefile.am: Installed unwanted garbage to pass distcheck. * src/glade-devhelp.c: Navigational buttons insensitive at startup. * src/glade-catalog.c: Unexposed a private function. * src/glade-xml-utils.c: made alloc_string glade_xml_alloc_string, alloc_propname: ditto. * src/glade-property.c, src/glade-signal.c: Adjustemtnts made for glade-xml api above * src/glade-widget.c: o Adjustemtnts made for glade-xml api above o Properties applied to new objects in two steps now, code around build_object cleaned up... now build_object used also in load code.
* catalog book specifications now on widget classesTristan Van Berkom2006-05-183-3/+3
| | | | | | | | | | | | | | * src/glade.h, src/glade-catalog.c, src/glade-widget-class.[ch]: catalog book specifications now on widget classes * src/glade-editor.c, src/glade-editor-property.c: Now get the book name directly from the widget class. * doc/catalogintro.sgml: documented added "book" property. * widgets/bonobo.xml.in: added gnome catalog dependancy * widgets/gnome.xml.in, widgets/gtk+.xml.in: Added book specifications.
* added check for GnomeUI libs (PKG_CHECK_MODULES)Tristan Van Berkom2006-05-185-2/+631
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in: added check for GnomeUI libs (PKG_CHECK_MODULES) * widgets/Makefile.am: New catalogs added (bonobo.xml gnome.xml) * widgets/bonobo.xml.in: Created new catalog for libbonoboui. * widgets/gnome.xml.in: Created new catalog for libgnomeui. * widgets/canvas.xml.in: empty file just to declare the module. GnomeCanvas is declared in gnome catalog. * widgets/gtk+.xml.in: added GtkMenuItem "stock-item" property. o added glade_gtk_box_get_internal_child() o disabled GtkLayout's hadjustment and vadjustment properties. * src/Makefile.am: added gladegnome conditional build. * src/glade-builtins.[ch]: added glade_standard_pixbuf_spec(), glade_standard_gdkcolor_spec() and glade_standard_uint_spec(). Fixed stock order in glade_standard_stock_get_type() * src/glade-editor-property.c: added G_PARAM_SPEC_VALUE_ARRAY support to GladeEPropText. * src/glade-gnome.c: New support file for gnome/bonobo catalogs. * src/glade-gtk.h: Created to include it in others plugings. * src/glade-gtk.c: o added GtkMenuItem stock-item property. o Moved GladeGtkImageType and GladeGtkButtonType to glade-gtk.h o Moved GLADE_CREATE_USER block from idle function to glade_gtk_button_post_create() * src/glade-project.c: fixed bug in glade_project_resource_fullpath() project->path could be NULL. * src/glade-property-class.c: added G_PARAM_SPEC_VALUE_ARRAY support in glade_property_class_make_string_from_gvalue() and glade_property_class_make_gvalue_from_string()
* added atk.xpm to $(libgladeuiinclude_HEADERS)Tristan Van Berkom2006-04-261-22/+104
| | | | | | | | | | | | | | | | | | * src/Makefile.am: added atk.xpm to $(libgladeuiinclude_HEADERS) * doc/gladeui-sections.txt: Updated with new apis. * widgets/gtk+.xml.in: Listed all atk action properties needed for the gtk catalog. * src/glade-property-class.c, src/glade.h: o Added GLADE_TAG_ATK_ACTION & GLADE_TAG_ATK_PROPERTY tag support and stripped out introspection on atk properties. o Synonymous '-' and '_' in property names at catalog load time. * src/main.c: backed out the "GTK_MODULES=$GTK_MODULES:gail" module loading thing. * src/glade-widget.c: Synonymous '-' and '_' in glade_widget_get_[packing_]property().
* Allowed negative custom integer specs.Tristan Van Berkom2006-04-251-9/+9
| | | | | | | | | | * src/glade-builtins.c: Allowed negative custom integer specs. * src/glade-palette.c: Removed notion of class->in_palette * src/glade-widget-class.[ch]: Removed notion of class->in_palette and cleaned up the parsing of generic_name and widget titles. (modifies muntyan's patch on bug 336594).
* UpdatedTristan Van Berkom2006-04-241-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * TODO: Updated * doc/gladeui-sections.txt updated * src/glade-app.[ch]: Majorly reduced the api, now GladeApp is a singleton. Added "active-project" signal. * src/glade-builtins.[ch]: Removed unused variable. Enhanced objects pspec type to recognize interfaces. Added glade_param_spec_objects_get_type() * src/glade-clipboard-view.c: Trying a cute border. * src/glade-command.c, src/glade-fixed-manager.c, src/glade-placehodler.c, src/glade-popup.c, src/glade-project-view.c, src/glade-project-window.c: Updated for glade-app changes * src/glade-editor-property.c: Implemented objects pspec * src/glade-editor.[ch]: Added atk tab, added cuteness. * src/glade-gtk.c: o Translated image type names o Added button types (translated) o Support for button label & use-underline properties * src/glade-parser.c: o Updated for glade-app changes o Added save support for atk actions and relations. * src/glade-project.c: o Updated for glade-app changes o Fixed glade_project_fix_object_props for object lists * src/glade-property-class.[ch]: o Hardcoded atk relations and action names o Added glade_property_class_make_gvalue(), glade_property_class_get_from_gvalue(), glade_property_class_new_atk_action(), glade_property_class_list_atk_relations(), glade_property_class_atk_realname() o Fixed glade_property_class_is_object() (object lists qualify) * src/glade-property.[ch]: o Integrated property load proceedure into glade-property, loading code much cleaner and less redundant. (Added glade_property_read()) o Implemented atk properties (save/load) * src/glade-utils.[ch]: Added glade_util_read_prop_name(), glade_util_added_in_list(), glade_util_removed_from_list(), glade_util_class_implements_interface() * src/glade-widget-class.c: Introspect atk properties * src/glade-widget.c: Simplified load code, moved property load code to glade-property, save atk props properly. * src/glade.h: Removed the unused atk-relation tag. * src/main.c: Load gail (for atk action introspection) * src/atk.xpm: New atk icon * widgets/gtk+.xml.in: o GtkLabel label property --> translatable o GtkButton label property --> translatable, multi-line o Added GtkButton "type" property and GtkButton remove-child-function
* Disabled some pointless/obsolete properties.Tristan Van Berkom2006-04-191-0/+8
| | | | * widgets/gtk+.xml.in: Disabled some pointless/obsolete properties.
* Open file in "a+" mode and not "w", which was truncating the file only toTristan Van Berkom2006-04-181-2/+3
| | | | | | | | | | | | | | | | | * src/glade-utils.c: Open file in "a+" mode and not "w", which was truncating the file only to check if it was writable ( ! doh ! ) * src/glade-widget.[ch]: o Added GladeCreateReason argument to glade_widget_new_for_internal_child(), now internal children get post create functions called for them. o Fixed bug 336581 (apply internal widget names at load time). * src/glade-gtk.c: Added per dialog support for dialog buttons (get_children(), get_internal_child() && create internals in post_create()) (Fixing bug 337196) * widgets/gtk+.xml.in: Removed redundant declaration of glade_gtk_dialog_post_create() in the GtkMessageDialog, added "get-children-function" support to GtkDialog.
* new GladeEditorProperty class GladeEPropAdjustment.Tristan Van Berkom2006-04-051-0/+11
| | | | | | | | | | | | | | | * src/glade-editor-property.c: new GladeEditorProperty class GladeEPropAdjustment. * src/glade-gtk.c: removed old GtkSpinButton adjustment support. added glade_gtk_spin_button_set_adjustment (). * src/glade-property-class.c: added support for GtkAdjustment properties. * widgets/gtk+.xml.in: added default adjustment values for GtkSpinButton and GtkRange. Disabled GtkViewport and GtkScrolledWindow adjustment properties.
* glade_project_open() fixed segfault on open faiure.TRISTAN_MERGING_HERETristan Van Berkom2006-03-291-1/+1
| | | | | | | | | | | | | | | | | * src/glade_project.c: glade_project_open() fixed segfault on open faiure. * src/glade-property-class.[ch]: Added glade_property_class_void_value() * src/glade-widget.c: when creating new objects; ignore voided defaults using glade_property_class_void_value() (and finally added myself as an author). * src/glade-editor-property.c: Fixed segfaults & assertions when dealing with NULL colors in GladeEPropColor. * widgets/gtk+.xml.in: Dont save virtual "pages" property on notebook, if we dont need it in glade-2 files we dont need it period.
* Added a bit about anarchist childrenTristan Van Berkom2006-03-201-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/children.sgml: Added a bit about anarchist children * doc/widgetclasses.sgml: Removed the notion of get_anarchist_children() * doc/gladeui-sections.txt: removed undefined symbols * doc/tmpl/*: auto-updates templates. * src/glade-gtk.c: Updated to use the new glade_widget_new_for_internal_child API * src/glade-widget-class.[ch], src/glade.h: Removed notion of anarchist children * src/glade-widget.[ch]: Added "anarchist" property and "anarchist" argument to glade_widget_new_for_internal_child() (only internal children can be anarchists). * src/glade-project-view.[ch]: Dramaticly reworked, now each project has its own metadata struct where signal ids and project view state is stored, project signals now are only disconnected at project close time. The open treeview leafs and scrollbar positions are now saved/restored when switching active projects. * src/glade-project-window.c: o Translated window title o Fixed a bug where the loaded project title apears as unsaved. * src/glade-utils.c: Added comments. * widgets/gtk+.xml.in: Removed mention of the get_anarchist_children func, override the get_children func for GtkCombo to additionally return the combo->list member (which is an anarchist child). Also added a gtk_container_remove remove-function for GtkListItem since it seemed to be empty and causing errors.
* Removed glade_widget_class_get_all_children, nowTristan Van Berkom2006-03-161-4/+1
| | | | | | | | | | | | | | | | | | * src/glade-widget-class.[ch], src/glade.h: Removed glade_widget_class_get_all_children, now glade_widget_class_get_children returns all desired children, including orphan ararchist internal children. * src/glade-editor-property.c, src/glade-project-view.c, src/glade-project.c, src/glade-widget.c, src/glade-utils.c: Adjusted callers for glade_widget_class_get_children. * src/glade-gtk.c, widgets/gtk+.xml.in: Adjusted backend, removed obsolete get_internal_children funcs and added the appropriate get_anarchist_children. * doc/tmpl/*, doc/gladeui-sections.txt: Added new symbols... removed old ones. * doc/widgetclasses.sgml: added a bit about get-anarchist-children-function
* Added "catalog_default" arg to glade_property_new() and adjusted callers.Tristan Van Berkom2006-03-011-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | * src/glade-property.[ch], src/glade-widget.[ch]: Added "catalog_default" arg to glade_property_new() and adjusted callers. * src/glade-property-class.[ch]: Ensure that there are always ->def and ->orig_def members resolved. * src/glade-gtk.c: o GtkBox loading issues fixed. o Removed unused code from: glade_gtk_table_has_child and glade_gtk_table_refresh_placeholders. * src/glade-widget.c: o Ignore properties properly when creating the object. (glade_widget_params_from_widget_info and glade_widget_build_object functions) o Use the introspected default value for properties when loading a project. glade_widget_properties_from_widget_info * widgets/gtk+.xml.in: Avoid warnings. o Ignore GtkWidget has-default property. o Ignore GtkComboBox active, column-span-column and row-span-column properties.