gtranslator r3600 - trunk/src
- From: icq svn gnome org
- To: svn-commits-list gnome org
- Subject: gtranslator r3600 - trunk/src
- Date: Mon, 22 Sep 2008 09:38:33 +0000 (UTC)
Author: icq
Date: Mon Sep 22 09:38:33 2008
New Revision: 3600
URL: http://svn.gnome.org/viewvc/gtranslator?rev=3600&view=rev
Log:
Fixed problems with application.c in the last commit
Modified:
trunk/src/application.c
Modified: trunk/src/application.c
==============================================================================
--- trunk/src/application.c (original)
+++ trunk/src/application.c Mon Sep 22 09:38:33 2008
@@ -47,7 +47,7 @@
GList *profiles;
GtranslatorProfile *active_profile;
- GtranslatorPreferencesDialog *preferences_dialog;
+ GtranslatorPreferencesDialog *preferences_dialog;
gchar *toolbars_file;
EggToolbarsModel *toolbars_model;
@@ -407,6 +407,70 @@
}
/**
+ * gtranslator_application_get_active_profile:
+ * @app: a #GtranslatorApplication
+ *
+ * Return value: the active #GtranslatorProfile
+ **/
+GtranslatorProfile *
+gtranslator_application_get_active_profile (GtranslatorApplication *app)
+{
+ return app->priv->active_profile;
+}
+
+/**
+ * gtranslator_application_set_profiles:
+ * @app: a #GtranslatorApplication
+ * @profiles: a #GList
+ *
+ **/
+void
+gtranslator_application_set_active_profile (GtranslatorApplication *app,
+ GtranslatorProfile *profile) {
+ app->priv->active_profile = profile;
+}
+
+/**
+ * gtranslator_application_get_profiles:
+ * @app: a #GtranslatorApplication
+ *
+ * Return value: a list of all profiles.
+ **/
+GList *
+gtranslator_application_get_profiles (GtranslatorApplication *app)
+{
+ g_return_val_if_fail (GTR_IS_APPLICATION (app), NULL);
+
+ return app->priv->profiles;
+}
+
+/**
+ * gtranslator_application_set_profiles:
+ * @app: a #GtranslatorApplication
+ * @profiles: a #GList
+ *
+ **/
+void
+gtranslator_application_set_profiles (GtranslatorApplication *app,
+ GList *profiles) {
+ app->priv->profiles = profiles;
+}
+
+GtranslatorPreferencesDialog *
+gtranslator_application_get_preferences_dialog (GtranslatorApplication *app)
+{
+ return app->priv->preferences_dialog;
+}
+
+void
+gtranslator_application_set_preferences_dialog (GtranslatorApplication *app,
+ GtranslatorPreferencesDialog *dlg)
+{
+ app->priv->preferences_dialog = dlg;
+}
+
+
+/**
* gtranslator_application_register_icon:
* @app: a #GtranslatorApplication
* @icon: the name of the icon
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]