app: Have only one GimpDialogFactoryEntry member in GimpSessionInfo

Simplify the code a bit by replacing the 'toplevel_entry' and
'dockable_entry' members in GimpSessionInfo with a single
'factory_entry'. We compensate for this by adding a 'dockable'
gboolean to GimpDialogFactoryEntry.
This commit is contained in:
Martin Nordholts
2009-09-20 12:17:22 +02:00
parent 44d5728d7b
commit 4ab58d2e77
6 changed files with 49 additions and 53 deletions

View File

@ -59,9 +59,10 @@ struct _GimpSessionInfo
GtkWidget *widget;
/* only one of these is valid */
GimpDialogFactoryEntry *toplevel_entry;
GimpDialogFactoryEntry *dockable_entry;
/* the dialog factory entry for object we have session info for
* note that pure "dock" entries don't have any factory entry
*/
GimpDialogFactoryEntry *factory_entry;
/* list of GimpSessionInfoBook */
GList *books;