Skip to content

Commit

Permalink
libnemo-extension: Refactor a bit, replace a lot of boilerplate with
Browse files Browse the repository at this point in the history
macros, simplify doc generation.  Documentation needs more work at
some point.
  • Loading branch information
mtwebster committed Jul 21, 2018
1 parent c7c577f commit 49abde5
Show file tree
Hide file tree
Showing 42 changed files with 365 additions and 1,642 deletions.
17 changes: 12 additions & 5 deletions docs/reference/libnemo-extension/libnemo-extension-docs.xml
Expand Up @@ -17,18 +17,25 @@
<chapter>
<title>Extension Interfaces</title>
<xi:include href="xml/nemo-column-provider.xml" />
<xi:include href="xml/nemo-column.xml" />
<xi:include href="xml/nemo-extension-types.xml" />
<xi:include href="xml/nemo-file-info.xml" />
<xi:include href="xml/nemo-info-provider.xml" />
<xi:include href="xml/nemo-location-widget-provider.xml" />
<xi:include href="xml/nemo-menu-provider.xml" />
<xi:include href="xml/nemo-menu.xml" />
<xi:include href="xml/nemo-name-and-desc-provider.xml" />
<!-- <xi:include href="xml/nemo-name-and-desc-provider.xml" /> -->
<xi:include href="xml/nemo-property-page-provider.xml" />
</chapter>

<chapter>
<title>Classes</title>
<xi:include href="xml/nemo-column.xml" />
<xi:include href="xml/nemo-file-info.xml" />
<xi:include href="xml/nemo-menu.xml" />
<xi:include href="xml/nemo-property-page.xml" />
<xi:include href="xml/nemo-simple-button.xml" />
</chapter>

<xi:include href="xml/nemo-extension-types.xml" />


</part>
<index>
<title id="index-all">Index</title>
Expand Down
69 changes: 25 additions & 44 deletions docs/reference/libnemo-extension/libnemo-extension-sections.txt
@@ -1,29 +1,17 @@
<SECTION>
<FILE>nemo-location-widget-provider</FILE>
NemoLocationWidgetProvider
NemoLocationWidgetProviderIface
NemoLocationWidgetProviderInterface
nemo_location_widget_provider_get_widget
<SUBSECTION Standard>
NEMO_LOCATION_WIDGET_PROVIDER
NEMO_IS_LOCATION_WIDGET_PROVIDER
NEMO_TYPE_LOCATION_WIDGET_PROVIDER
nemo_location_widget_provider_get_type
NEMO_LOCATION_WIDGET_PROVIDER_GET_IFACE
</SECTION>

<SECTION>
<FILE>nemo-menu-provider</FILE>
NemoMenuProvider
NemoMenuProviderIface
NemoMenuProviderInterface
nemo_menu_provider_get_file_items
nemo_menu_provider_get_background_items
nemo_menu_provider_emit_items_updated_signal
<SUBSECTION Standard>
NEMO_MENU_PROVIDER
NEMO_IS_MENU_PROVIDER
NEMO_TYPE_MENU_PROVIDER
nemo_menu_provider_get_type
NEMO_MENU_PROVIDER_GET_IFACE
</SECTION>

<SECTION>
Expand Down Expand Up @@ -61,40 +49,22 @@ NEMO_MENU_GET_CLASS
<SECTION>
<FILE>nemo-column-provider</FILE>
NemoColumnProvider
NemoColumnProviderIface
NemoColumnProviderInterface
nemo_column_provider_get_columns
<SUBSECTION Standard>
NEMO_COLUMN_PROVIDER
NEMO_IS_COLUMN_PROVIDER
NEMO_TYPE_COLUMN_PROVIDER
nemo_column_provider_get_type
NEMO_COLUMN_PROVIDER_GET_IFACE
</SECTION>

<SECTION>
<FILE>nemo-name-and-desc-provider</FILE>
NemoNameAndDescProvider
NemoNameAndDescProviderIface
NemoNameAndDescProviderInterface
nemo_name_and_desc_provider_get_name_and_desc
<SUBSECTION Standard>
NEMO_NAME_AND_DESC_PROVIDER
NEMO_IS_NAME_AND_DESC_PROVIDER
NEMO_TYPE_NAME_AND_DESC_PROVIDER
nemo_name_and_desc_provider_get_type
NEMO_NAME_AND_DESC_PROVIDER_GET_IFACE
</SECTION>

<SECTION>
<FILE>nemo-property-page-provider</FILE>
NemoPropertyPageProvider
NemoPropertyPageProviderIface
NemoPropertyPageProviderInterface
nemo_property_page_provider_get_pages
<SUBSECTION Standard>
NEMO_PROPERTY_PAGE_PROVIDER
NEMO_IS_PROPERTY_PAGE_PROVIDER
NEMO_TYPE_PROPERTY_PAGE_PROVIDER
nemo_property_page_provider_get_type
NEMO_PROPERTY_PAGE_PROVIDER_GET_IFACE
</SECTION>

<SECTION>
Expand Down Expand Up @@ -145,28 +115,22 @@ NemoColumn
nemo_column_new
<SUBSECTION Standard>
NEMO_COLUMN
NEMO_INFO_IS_COLUMN
NEMO_IS_COLUMN
NEMO_TYPE_COLUMN
nemo_column_get_type
NEMO_COLUMN_CLASS
NEMO_INFO_IS_COLUMN_CLASS
NEMO_IS_COLUMN_CLASS
NEMO_COLUMN_GET_CLASS
</SECTION>

<SECTION>
<FILE>nemo-info-provider</FILE>
NemoInfoProvider
NemoInfoProviderIface
NemoInfoProviderInterface
NemoInfoProviderUpdateComplete
nemo_info_provider_update_file_info
nemo_info_provider_cancel_update
nemo_info_provider_update_complete_invoke
<SUBSECTION Standard>
NEMO_INFO_PROVIDER
NEMO_IS_INFO_PROVIDER
NEMO_TYPE_INFO_PROVIDER
nemo_info_provider_get_type
NEMO_INFO_PROVIDER_GET_IFACE
</SECTION>

<SECTION>
Expand Down Expand Up @@ -198,3 +162,20 @@ nemo_module_list_types
<FILE>nemo-menu-item</FILE>
</SECTION>

<SECTION>
<FILE>nemo-simple-button</FILE>
<TITLE>NemoSimpleButton</TITLE>
NemoSimpleButton
nemo_simple_button_new
nemo_simple_button_new_from_icon_name
nemo_simple_button_new_from_stock
nemo_simple_button_new_from_file
<SUBSECTION Standard>
NEMO_SIMPLE_BUTTON
NEMO_IS_SIMPLE_BUTTON
NEMO_TYPE_SIMPLE_BUTTON
nemo_simple_button_get_type
NEMO_SIMPLE_BUTTON_CLASS
NEMO_IS_SIMPLE_BUTTON_CLASS
NEMO_SIMPLE_BUTTON_GET_CLASS
</SECTION>
12 changes: 0 additions & 12 deletions docs/reference/libnemo-extension/libnemo-extension.types

This file was deleted.

11 changes: 6 additions & 5 deletions docs/reference/libnemo-extension/meson.build
Expand Up @@ -10,11 +10,12 @@ configure_file(

gnome.gtkdoc('libnemo-extension',
main_xml: 'libnemo-extension-docs.xml',
src_dir: nemo_extension_incdir,
dependencies: [ nemo_extension ],
src_dir: join_paths(meson.source_root(), 'libnemo-extension'),
dependencies: nemo_extension,
install: true,
gobject_typesfile: 'libnemo-extension.types',
install_dir: 'libnemo-extension',
scan_args: [ '--deprecated-guards="G_DISABLE_DEPRECATED"' ],
scanobjs_args: [ '--type-init-func="g_type_init()"', '--ignore-headers="config.h"' ],
mkdb_args: [ '--xml-mode', '--output-format=xml' ],
scan_args: [
'--rebuild-types',
'--ignore-headers="config.h"' ]
)

This file was deleted.

45 changes: 0 additions & 45 deletions docs/reference/libnemo-extension/tmpl/nemo-column-provider.sgml

This file was deleted.

76 changes: 0 additions & 76 deletions docs/reference/libnemo-extension/tmpl/nemo-column.sgml

This file was deleted.

69 changes: 0 additions & 69 deletions docs/reference/libnemo-extension/tmpl/nemo-extension-types.sgml

This file was deleted.

0 comments on commit 49abde5

Please sign in to comment.