Instead of loading the GtkBuilder .ui file we now create all widgets in code. Added several support functions to reduce code copy/pasting and making additional widgets and supporting more metadata easier. The overall layout should still look the same, with a few exceptions: - Each notebook page only uses one grid. This makes it possible to align all data entry widgets. - Featured Organization and it's code were two treeviews next to each other. These are now organized below each other to make automatic code generation easier. - Since we needed to touch this code anyway, I also fixed Xmp.dc.creator and Xmp.iptcExt.ModelAge to be multiline. This closes #7286. - The old icons used for the date button, add, and remove row buttons were replaced by gimp-grid, list-add and list-remove. Since this was the last .ui file used in GIMP plug-ins, we remove all files from the .ui subdirectory and references to that. Note that there are several more places where GtkBuilder is used, but those cases uses strings defined in code instead of .ui files.
30 lines
1.3 KiB
C
30 lines
1.3 KiB
C
/* GIMP - The GNU Image Manipulation Program
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
*
|
|
* Copyright (C) 2016, 2017 Ben Touchette
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef __METADATA_EDITOR_H__
|
|
#define __METADATA_EDITOR_H__
|
|
|
|
void metadata_editor_write_callback (GtkWidget *dialog,
|
|
metadata_editor *meta_info,
|
|
GimpImage *image);
|
|
|
|
GtkWidget * metadata_editor_get_widget (metadata_editor *meta_info,
|
|
const gchar *name);
|
|
|
|
#endif /* __METADATA_EDITOR_H__ */
|