After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 345893 - Need to order properties in the editor and widget-groups in the palette
Need to order properties in the editor and widget-groups in the palette
Status: RESOLVED FIXED
Product: glade
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Glade 3 Maintainers
Glade 3 Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-06-25 18:39 UTC by Tristan Van Berkom
Modified: 2006-09-18 20:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (16.49 KB, patch)
2006-08-22 23:32 UTC, Juan Pablo Ugarte
none Details | Review
New proposed patch (18.85 KB, patch)
2006-09-12 22:41 UTC, Juan Pablo Ugarte
none Details | Review

Description Tristan Van Berkom 2006-06-25 18:39:11 UTC
This feature has two (three ?) parts:

    o Widget groups should be ordered in the catalog, gtk+ should
      always be on top, then gnome, then any user installed catalogs
      (user installed catalogs can use the same mechanism to order themselves
      when there are multiple installed).

    o Properties should be ordered by hand in some cases in the editor
      tables, so that for example, the "tooltip" property lands near the top

    o Introduce property groups; it should be easy to group logical
      properties together in the editor, with a group name, so that
      the group name comes up in the editor as a header for that
      group... an example for the use of this feature would be to
      group together the image/stock stuff in GtkButton/GtkImage

I think that we can use a "float" value for this... widget catalogs;
properties and widget groups can all use a value.. so that the greatest
value "floats" to the top.
Comment 1 Thomas Rydzynski 2006-08-19 18:14:29 UTC
If talking about grouping properties I suggest to merge Common and Packing into General page at the same time. Accessibility can be merged too.

Signals and Style will probably have different interaction scheme and they are less related to other settings so it is good to leave them on their own pages.

I think users should be able to move groups in the palette. Additional ability to create custom group with favourite widgets would be awesome.
Comment 2 Juan Pablo Ugarte 2006-08-22 23:32:40 UTC
Created attachment 71413 [details] [review]
Proposed patch
Comment 3 Juan Pablo Ugarte 2006-09-12 22:41:18 UTC
Created attachment 72649 [details] [review]
New proposed patch

	* src/glade-property-class.[ch]:
	  o GladePropertyClass handle member declared as GladeWidgetClass.
	  o Added new member weight.

	* src/glade-editor.c: Fixed bug 345893. "Need to order
	  properties in the editor and widget-groups in the palette"

	* src/glade-widget-class.[ch]:
	  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
Comment 4 Juan Pablo Ugarte 2006-09-18 20:33:46 UTC
commited