4 Commits

Author SHA1 Message Date
Tristan Van Berkom
49f93cc5c8 glade-gtk-action-widgets.[ch]: Added a function to ensure action widget names
When saving dialogs and infobars, we just work around the problem and ensure
that buttons with response ids enabled in the action area have names, not undoably.
2016-01-28 16:18:41 +01:00
Tristan Van Berkom
f7d1f24604 GtkButton adaptor: Fix the response id property load and save
Make the response id optional in the UI. If the user never sets the
response ID, then it will not be serialized in <action-widgets> of
a dialog or info bar.

This is needed because some buttons added to the action are not
response widgets (for instance, the credits and licence pages of
GtkAboutDialog) so it's important to not serialize them as such
unless they are explicitly marked as response widgets.
2013-03-31 15:10:03 +09:00
Juan Pablo Ugarte
e0b4eb9ce6 * gladeui/glade-widget-adaptor.[ch]:
o Added support for reading internal children declaration in the catalog
   o Added GWA base class get_internal_child implementation using gtk_buildable_get_internal_child()
   o Create internal children as specified in catalog in glade_widget_adaptor_post_create()
     before calling deep_post_create() and post_create() methods
   o new API glade_widget_adaptor_has_internal_children()
     glade_widget_adaptor_get_internal_children()

 * gladeui/glade-widget.[ch]:
   o Made GladeWidget::reason property readable
   o Added new API glade_widget_find_child()

 * plugins/gtk+/glade-gtk-action-widgets.[ch]:
   o reworked code from GtkDialog support to read and write widget actions special tags
     found in GtkDialog and GtkInfoBar widgets

 * plugins/gtk+/glade-gtk-info-bar.c: support code for reading and writing GtkInfoBar special tags

 * plugins/gtk+/glade-gtk.c:
   o Removed GtkBox, GtkDialog, GtkComboBox and GtkTreeView unused get_internal_child functions
   o Removed creation of internal children of GtkDialog, GtkColorSelectionDialog,
     GtkFontSelectionDialog, GtkComboBox and GtkTreeView.
   o Implemented GtkDialog action-widgets tag support using common code.

 * plugins/gtk+/gtk+.xml.in:
   o Added support for GtkInfoBar widget.
   o Defined internal children of GtkDialog, GtkColorSelectionDialog,
     GtkFontSelectionDialog, GtkComboBox, GtkInfoBar and GtkTreeView.

 * gladeui/glade-xml-utils.h: Added GLADE_TAG_INTERNAL_CHILDREN and GLADE_TAG_ANARCHIST tags

 * plugins/glade-catalog.dtd: added new syntax to catalog description
2011-04-05 02:15:56 -03:00
Tristan Van Berkom
0fcf5ccc32 Moved GtkDialog action-widgets tag read/write support into a new file to use
as a generic implementation for GtkInfoBar too.
2011-04-05 02:15:56 -03:00