[gtranslator] Remove profiles from GtrApplication
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator] Remove profiles from GtrApplication
- Date: Wed, 17 Feb 2010 17:34:44 +0000 (UTC)
commit 6e60ea0af61f882e6f21cdf6c97288a5bb061590
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Tue Feb 16 16:02:25 2010 +0100
Remove profiles from GtrApplication
src/gtr-application.c | 58 -------------------------------------------------
src/gtr-application.h | 11 ---------
2 files changed, 0 insertions(+), 69 deletions(-)
---
diff --git a/src/gtr-application.c b/src/gtr-application.c
index f9f3b43..2d7d8dd 100644
--- a/src/gtr-application.c
+++ b/src/gtr-application.c
@@ -55,9 +55,6 @@ struct _GtrApplicationPrivate
GList *windows;
GtrWindow *active_window;
- GList *profiles;
- GtrProfile *active_profile;
-
gchar *toolbars_file;
EggToolbarsModel *toolbars_model;
@@ -185,7 +182,6 @@ gtr_application_init (GtrApplication *application)
priv->windows = NULL;
priv->last_dir = NULL;
priv->first_run = FALSE;
- priv->profiles = NULL;
/* Creating config folder */
ensure_user_config_dir (); /* FIXME: is this really needed ? */
@@ -469,60 +465,6 @@ gtr_application_get_windows (GtrApplication * app)
}
/**
- * gtr_application_get_active_profile:
- * @app: a #GtrApplication
- *
- * Return value: the active #GtrProfile
- **/
-GtrProfile *
-gtr_application_get_active_profile (GtrApplication * app)
-{
- return app->priv->active_profile;
-}
-
-/**
- * gtr_application_set_profiles:
- * @app: a #GtrApplication
- * @profiles: a #GList
- *
- **/
-void
-gtr_application_set_active_profile (GtrApplication * app,
- GtrProfile * profile)
-{
- app->priv->active_profile = profile;
-}
-
-/**
- * gtr_application_get_profiles:
- * @app: a #GtrApplication
- *
- * Return value: a list of all profiles.
- **/
-GList *
-gtr_application_get_profiles (GtrApplication * app)
-{
- g_return_val_if_fail (GTR_IS_APPLICATION (app), NULL);
-
- return app->priv->profiles;
-}
-
-/**
- * gtr_application_set_profiles:
- * @app: a #GtrApplication
- * @profiles: a #GList
- *
- **/
-void
-gtr_application_set_profiles (GtrApplication *app, GList *profiles)
-{
- g_return_if_fail (GTR_IS_APPLICATION (app));
- g_return_if_fail (profiles != NULL);
-
- app->priv->profiles = profiles;
-}
-
-/**
* gtr_application_register_icon:
* @app: a #GtrApplication
* @icon: the name of the icon
diff --git a/src/gtr-application.h b/src/gtr-application.h
index 89bd2d1..f4a846c 100644
--- a/src/gtr-application.h
+++ b/src/gtr-application.h
@@ -28,7 +28,6 @@
#include <gtk/gtk.h>
#include <unique/uniqueapp.h>
-#include "gtr-profile.h"
#include "gtr-window.h"
G_BEGIN_DECLS
@@ -87,16 +86,6 @@ GtrWindow *gtr_application_get_active_window (GtrApplication *app);
const GList *gtr_application_get_windows (GtrApplication *app);
-GtrProfile *gtr_application_get_active_profile (GtrApplication *app);
-
-void gtr_application_set_active_profile (GtrApplication *app,
- GtrProfile * profile);
-
-GList *gtr_application_get_profiles (GtrApplication *app);
-
-void gtr_application_set_profiles (GtrApplication *app,
- GList * profiles);
-
void gtr_application_register_icon (GtrApplication *app,
const gchar *icon,
const gchar *stock_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]