mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Reformat source files gnc-plugin-page.*
Change tabs for spaces and change some space positioning.
This commit is contained in:
parent
ba1af5504d
commit
832ad7e85e
@ -178,14 +178,10 @@ gnc_plugin_page_show_summarybar (GncPluginPage *page,
|
||||
return;
|
||||
|
||||
if (visible)
|
||||
{
|
||||
gtk_widget_show (page->summarybar);
|
||||
}
|
||||
else
|
||||
{
|
||||
gtk_widget_hide (page->summarybar);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Call the plugin specific function that will save the state of a
|
||||
@ -550,10 +546,13 @@ gnc_plugin_page_finalize (GObject *object)
|
||||
priv = GNC_PLUGIN_PAGE_GET_PRIVATE(page);
|
||||
if (priv->page_name)
|
||||
g_free (priv->page_name);
|
||||
|
||||
if (priv->page_color)
|
||||
g_free (priv->page_color);
|
||||
|
||||
if (priv->uri)
|
||||
g_free (priv->uri);
|
||||
|
||||
if (priv->statusbar_text)
|
||||
g_free (priv->statusbar_text);
|
||||
|
||||
@ -787,6 +786,7 @@ gnc_plugin_page_set_page_name (GncPluginPage *page, const gchar *name)
|
||||
priv = GNC_PLUGIN_PAGE_GET_PRIVATE(page);
|
||||
if (priv->page_name)
|
||||
g_free (priv->page_name);
|
||||
|
||||
priv->page_name = g_strdup (name);
|
||||
|
||||
/* Perform page specific actions */
|
||||
@ -825,6 +825,7 @@ gnc_plugin_page_set_page_long_name (GncPluginPage *page, const gchar *name)
|
||||
priv = GNC_PLUGIN_PAGE_GET_PRIVATE(page);
|
||||
if (priv->page_long_name)
|
||||
g_free (priv->page_long_name);
|
||||
|
||||
priv->page_long_name = g_strdup (name);
|
||||
}
|
||||
|
||||
@ -853,6 +854,7 @@ gnc_plugin_page_set_page_color (GncPluginPage *page, const gchar *color)
|
||||
priv = GNC_PLUGIN_PAGE_GET_PRIVATE(page);
|
||||
if (priv->page_color)
|
||||
g_free (priv->page_color);
|
||||
|
||||
if (color)
|
||||
priv->page_color = g_strdup (color);
|
||||
}
|
||||
@ -986,6 +988,7 @@ gnc_plugin_page_set_uri (GncPluginPage *page, const gchar *name)
|
||||
priv = GNC_PLUGIN_PAGE_GET_PRIVATE(page);
|
||||
if (priv->uri)
|
||||
g_free (priv->uri);
|
||||
|
||||
priv->uri = g_strdup (name);
|
||||
}
|
||||
|
||||
@ -1014,6 +1017,7 @@ gnc_plugin_page_set_statusbar_text (GncPluginPage *page, const gchar *message)
|
||||
priv = GNC_PLUGIN_PAGE_GET_PRIVATE(page);
|
||||
if (priv->statusbar_text)
|
||||
g_free (priv->statusbar_text);
|
||||
|
||||
priv->statusbar_text = g_strdup (message);
|
||||
}
|
||||
|
||||
@ -1073,6 +1077,7 @@ gnc_plugin_page_set_ui_description (GncPluginPage *page,
|
||||
priv = GNC_PLUGIN_PAGE_GET_PRIVATE(page);
|
||||
if (priv->ui_description)
|
||||
g_free (priv->ui_description);
|
||||
|
||||
priv->ui_description = g_strdup (ui_filename);
|
||||
}
|
||||
|
||||
@ -1097,6 +1102,7 @@ gnc_plugin_page_get_action_group(GncPluginPage *page)
|
||||
GncPluginPagePrivate *priv;
|
||||
|
||||
g_return_val_if_fail (GNC_IS_PLUGIN_PAGE(page), NULL);
|
||||
|
||||
priv = GNC_PLUGIN_PAGE_GET_PRIVATE(page);
|
||||
return priv->action_group;
|
||||
}
|
||||
@ -1121,11 +1127,13 @@ gnc_plugin_page_finish_pending (GncPluginPage *page)
|
||||
{
|
||||
if (!page)
|
||||
return TRUE;
|
||||
|
||||
if (!GNC_IS_PLUGIN_PAGE(page))
|
||||
return TRUE;
|
||||
|
||||
if (!GNC_PLUGIN_PAGE_GET_CLASS(page)->finish_pending)
|
||||
return TRUE;
|
||||
|
||||
return (GNC_PLUGIN_PAGE_GET_CLASS(page)->finish_pending)(page);
|
||||
}
|
||||
|
||||
|
@ -105,6 +105,7 @@ typedef struct
|
||||
*
|
||||
* @return A displayable gtk widget. */
|
||||
GtkWidget *(* create_widget) (GncPluginPage *plugin_page);
|
||||
|
||||
/** Function called to destroy the display widget for a
|
||||
* particular type of plugin.
|
||||
*
|
||||
@ -219,7 +220,8 @@ GType gnc_plugin_page_get_type (void);
|
||||
* @param plugin_page A pointer to the plugin for which a display
|
||||
* widget should be created.
|
||||
*
|
||||
* @return A displayable gtk widget. */
|
||||
* @return A displayable gtk widget.
|
||||
*/
|
||||
GtkWidget *gnc_plugin_page_create_widget (GncPluginPage *plugin_page);
|
||||
|
||||
|
||||
@ -228,7 +230,8 @@ GtkWidget *gnc_plugin_page_create_widget (GncPluginPage *plugin_page);
|
||||
* code when a page is closed.
|
||||
*
|
||||
* @param plugin_page A pointer to the plugin whose display widget
|
||||
* should be destroyed. */
|
||||
* should be destroyed.
|
||||
*/
|
||||
void gnc_plugin_page_destroy_widget (GncPluginPage *plugin_page);
|
||||
|
||||
|
||||
@ -251,7 +254,8 @@ void gnc_plugin_page_show_summarybar (GncPluginPage *page, gboolean visible);
|
||||
* @param key_file A pointer to the GKeyFile data structure where the
|
||||
* page information should be written.
|
||||
*
|
||||
* @param group_name The group name to use when saving data. */
|
||||
* @param group_name The group name to use when saving data.
|
||||
*/
|
||||
void gnc_plugin_page_save_page (GncPluginPage *page,
|
||||
GKeyFile *key_file,
|
||||
const gchar *group_name);
|
||||
@ -268,7 +272,8 @@ void gnc_plugin_page_save_page (GncPluginPage *page,
|
||||
* @param key_file A pointer to the GKeyFile data structure where the
|
||||
* page information should be read.
|
||||
*
|
||||
* @param group_name The group name to use when restoring data. */
|
||||
* @param group_name The group name to use when restoring data.
|
||||
*/
|
||||
GncPluginPage *gnc_plugin_page_recreate_page (GtkWidget *window,
|
||||
const gchar *page_type,
|
||||
GKeyFile *key_file,
|
||||
@ -281,7 +286,8 @@ GncPluginPage *gnc_plugin_page_recreate_page (GtkWidget *window,
|
||||
* added to the user interface.
|
||||
*
|
||||
* @param merge A pointer to the UI manager data structure for a
|
||||
* window. */
|
||||
* window.
|
||||
*/
|
||||
void gnc_plugin_page_merge_actions (GncPluginPage *plugin_page,
|
||||
GtkUIManager *merge);
|
||||
|
||||
@ -292,7 +298,8 @@ void gnc_plugin_page_merge_actions (GncPluginPage *plugin_page,
|
||||
* removed from the user interface.
|
||||
*
|
||||
* @param merge A pointer to the UI manager data structure for a
|
||||
* window. */
|
||||
* window.
|
||||
*/
|
||||
void gnc_plugin_page_unmerge_actions (GncPluginPage *plugin_page,
|
||||
GtkUIManager *merge);
|
||||
|
||||
@ -303,7 +310,8 @@ void gnc_plugin_page_unmerge_actions (GncPluginPage *plugin_page,
|
||||
* should be retrieved.
|
||||
*
|
||||
* @return The name of this plugin. This string is owned by the
|
||||
* plugin. */
|
||||
* plugin.
|
||||
*/
|
||||
const gchar *gnc_plugin_page_get_plugin_name (GncPluginPage *plugin_page);
|
||||
|
||||
|
||||
@ -530,7 +538,8 @@ GtkUIManager *gnc_plugin_page_get_ui_merge (GncPluginPage *page);
|
||||
* @param page The page whose menu/toolbar action group should be
|
||||
* retrieved.
|
||||
*
|
||||
* @return A pointer to the GtkActionGroup object for this page. */
|
||||
* @return A pointer to the GtkActionGroup object for this page.
|
||||
*/
|
||||
GtkActionGroup *gnc_plugin_page_get_action_group (GncPluginPage *page);
|
||||
|
||||
|
||||
@ -544,7 +553,8 @@ GtkActionGroup *gnc_plugin_page_get_action_group (GncPluginPage *page);
|
||||
* be consistent across all pages of the same type.
|
||||
*
|
||||
* @return A pointer to the newly created GtkActionGroup object for
|
||||
* this page. */
|
||||
* this page.
|
||||
*/
|
||||
GtkActionGroup * gnc_plugin_page_create_action_group (GncPluginPage *page,
|
||||
const gchar *group_name);
|
||||
|
||||
@ -555,7 +565,8 @@ GtkActionGroup * gnc_plugin_page_create_action_group (GncPluginPage *page,
|
||||
*
|
||||
* @param name The name of the GtkAction to find.
|
||||
*
|
||||
* @return A pointer to the retuested GtkAction object or NULL. */
|
||||
* @return A pointer to the retuested GtkAction object or NULL.
|
||||
*/
|
||||
GtkAction *gnc_plugin_page_get_action (GncPluginPage *page, const gchar *name);
|
||||
|
||||
/* Signals */
|
||||
@ -569,7 +580,8 @@ void gnc_plugin_page_unselected (GncPluginPage *plugin_page);
|
||||
* @param plugin_page A page.
|
||||
*
|
||||
* @return FALSE if the page could not or would not comply, which
|
||||
* should cancel the pending operation. TRUE otherwise */
|
||||
* should cancel the pending operation. TRUE otherwise
|
||||
*/
|
||||
gboolean gnc_plugin_page_finish_pending (GncPluginPage *plugin_page);
|
||||
|
||||
G_END_DECLS
|
||||
|
Loading…
Reference in New Issue
Block a user