Refactor all methods from gtranslator* to gtr*

parent deaf4dae
......@@ -45,7 +45,7 @@
GtrAssistantPrivate))
G_DEFINE_TYPE (GtrAssistant, gtranslator_assistant,
G_DEFINE_TYPE (GtrAssistant, gtr_assistant,
GTK_TYPE_ASSISTANT)
struct _GtrAssistantPrivate
......@@ -102,25 +102,25 @@ add_to_database (gpointer data_pointer)
GError *error = NULL;
GtrPo *po;
po = gtranslator_po_new ();
po = gtr_po_new ();
location = (GFile *) l->data;
gtranslator_po_parse (po, location, &error);
gtr_po_parse (po, location, &error);
if (error)
return TRUE;
msg_list = gtranslator_po_get_messages (po);
msg_list = gtr_po_get_messages (po);
for (l2 = msg_list; l2; l2 = g_list_next (l2))
{
GtrMsg *msg;
msg = GTR_MSG (l2->data);
if (gtranslator_msg_is_translated (msg))
gtranslator_translation_memory_store (data->tm,
gtranslator_msg_get_msgid
if (gtr_msg_is_translated (msg))
gtr_translation_memory_store (data->tm,
gtr_msg_get_msgid
(msg),
gtranslator_msg_get_msgstr
gtr_msg_get_msgstr
(msg));
}
......@@ -197,56 +197,56 @@ on_assistant_apply (GtkAssistant * assistant)
GList *profiles_list;
gulong close_signal_id;
profile = gtranslator_profile_new ();
profile = gtr_profile_new ();
gtranslator_profile_set_name (profile,
gtr_profile_set_name (profile,
gtk_entry_get_text (GTK_ENTRY
(as->priv->
profile_name)));
gtranslator_profile_set_author_name (profile,
gtr_profile_set_author_name (profile,
gtk_entry_get_text (GTK_ENTRY
(as->priv->name)));
gtranslator_profile_set_author_email (profile,
gtr_profile_set_author_email (profile,
gtk_entry_get_text (GTK_ENTRY
(as->priv->
email)));
gtranslator_profile_set_language_name (profile,
gtr_profile_set_language_name (profile,
gtk_entry_get_text (GTK_ENTRY
(as->priv->
language)));
gtranslator_profile_set_language_code (profile,
gtr_profile_set_language_code (profile,
gtk_entry_get_text (GTK_ENTRY
(as->priv->
lang_code)));
gtranslator_profile_set_group_email (profile,
gtr_profile_set_group_email (profile,
gtk_entry_get_text (GTK_ENTRY
(as->priv->
team_email)));
gtranslator_profile_set_charset (profile,
gtr_profile_set_charset (profile,
gtk_entry_get_text (GTK_ENTRY
(as->priv->charset)));
gtranslator_profile_set_encoding (profile,
gtr_profile_set_encoding (profile,
gtk_entry_get_text (GTK_ENTRY
(as->priv->
trans_enc)));
gtranslator_profile_set_plurals (profile,
gtr_profile_set_plurals (profile,
gtk_entry_get_text (GTK_ENTRY
(as->priv->
plural_form)));
gtranslator_application_set_active_profile (GTR_APP, profile);
gtr_application_set_active_profile (GTR_APP, profile);
profiles_list = gtranslator_application_get_profiles (GTR_APP);
profiles_list = gtr_application_get_profiles (GTR_APP);
gtranslator_application_set_profiles (GTR_APP,
gtr_application_set_profiles (GTR_APP,
g_list_append (profiles_list,
profile));
......@@ -267,10 +267,10 @@ on_assistant_apply (GtkAssistant * assistant)
po_name = gtk_entry_get_text (GTK_ENTRY (as->priv->po_name));
gtranslator_utils_scan_dir (dir, &data->list, po_name);
gtr_utils_scan_dir (dir, &data->list, po_name);
data->tm =
GTR_TRANSLATION_MEMORY (gtranslator_application_get_translation_memory
GTR_TRANSLATION_MEMORY (gtr_application_get_translation_memory
(GTR_APP));
data->progress = GTK_PROGRESS_BAR (as->priv->add_db_progressbar);
data->parent = GTK_WINDOW (as);
......@@ -796,7 +796,7 @@ create_finish_page (GtrAssistant * as)
}
static void
gtranslator_assistant_init (GtrAssistant * as)
gtr_assistant_init (GtrAssistant * as)
{
as->priv = GTR_ASSISTANT_GET_PRIVATE (as);
......@@ -812,20 +812,20 @@ gtranslator_assistant_init (GtrAssistant * as)
}
static void
gtranslator_assistant_finalize (GObject * object)
gtr_assistant_finalize (GObject * object)
{
G_OBJECT_CLASS (gtranslator_assistant_parent_class)->finalize (object);
G_OBJECT_CLASS (gtr_assistant_parent_class)->finalize (object);
}
static void
gtranslator_assistant_class_init (GtrAssistantClass * klass)
gtr_assistant_class_init (GtrAssistantClass * klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
GtkAssistantClass *assistant_class = GTK_ASSISTANT_CLASS (klass);
g_type_class_add_private (klass, sizeof (GtrAssistantPrivate));
object_class->finalize = gtranslator_assistant_finalize;
object_class->finalize = gtr_assistant_finalize;
assistant_class->prepare = on_assistant_prepare;
assistant_class->apply = on_assistant_apply;
assistant_class->cancel = on_assistant_cancel;
......@@ -833,7 +833,7 @@ gtranslator_assistant_class_init (GtrAssistantClass * klass)
}
void
gtranslator_show_assistant (GtrWindow * window)
gtr_show_assistant (GtrWindow * window)
{
static GtrAssistant *assist = NULL;
......
......@@ -29,7 +29,7 @@ G_BEGIN_DECLS
/*
* Type checking and casting macros
*/
#define GTR_TYPE_ASSISTANT (gtranslator_assistant_get_type ())
#define GTR_TYPE_ASSISTANT (gtr_assistant_get_type ())
#define GTR_ASSISTANT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTR_TYPE_ASSISTANT, GtrAssistant))
#define GTR_ASSISTANT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GTR_TYPE_ASSISTANT, GtrAssistantClass))
#define GTR_IS_ASSISTANT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTR_TYPE_ASSISTANT))
......@@ -65,12 +65,12 @@ struct _GtrAssistantClass
* Public methods
*/
GType
gtranslator_assistant_get_type (void)
gtr_assistant_get_type (void)
G_GNUC_CONST;
GType gtranslator_assistant_register_type (GTypeModule * module);
GType gtr_assistant_register_type (GTypeModule * module);
void gtranslator_show_assistant (GtrWindow * window);
void gtr_show_assistant (GtrWindow * window);
G_END_DECLS
#endif /* __ASSISTANT_H__ */
/*
* gtranslator-close-confirmation-dialog.c
* gtr-close-confirmation-dialog.c
* This file is part of gtranslator
*
* Copyright (C) 2004-2005 GNOME Foundation
......@@ -80,7 +80,7 @@ struct _GtrCloseConfirmationDialogPrivate
SINGLE_DOC_MODE : MULTIPLE_DOCS_MODE)
G_DEFINE_TYPE (GtrCloseConfirmationDialog,
gtranslator_close_confirmation_dialog, GTK_TYPE_DIALOG)
gtr_close_confirmation_dialog, GTK_TYPE_DIALOG)
static void set_unsaved_document (GtrCloseConfirmationDialog *
dlg, const GList * list);
......@@ -136,7 +136,7 @@ set_logout_mode (GtrCloseConfirmationDialog * dlg,
}
static void
gtranslator_close_confirmation_dialog_init (GtrCloseConfirmationDialog
gtr_close_confirmation_dialog_init (GtrCloseConfirmationDialog
* dlg)
{
AtkObject *atk_obj;
......@@ -162,7 +162,7 @@ gtranslator_close_confirmation_dialog_init (GtrCloseConfirmationDialog
}
static void
gtranslator_close_confirmation_dialog_finalize (GObject * object)
gtr_close_confirmation_dialog_finalize (GObject * object)
{
GtrCloseConfirmationDialogPrivate *priv;
......@@ -175,12 +175,12 @@ gtranslator_close_confirmation_dialog_finalize (GObject * object)
g_list_free (priv->selected_documents);
/* Call the parent's destructor */
G_OBJECT_CLASS (gtranslator_close_confirmation_dialog_parent_class)->
G_OBJECT_CLASS (gtr_close_confirmation_dialog_parent_class)->
finalize (object);
}
static void
gtranslator_close_confirmation_dialog_set_property (GObject * object,
gtr_close_confirmation_dialog_set_property (GObject * object,
guint prop_id,
const GValue * value,
GParamSpec * pspec)
......@@ -206,7 +206,7 @@ gtranslator_close_confirmation_dialog_set_property (GObject * object,
}
static void
gtranslator_close_confirmation_dialog_get_property (GObject * object,
gtr_close_confirmation_dialog_get_property (GObject * object,
guint prop_id,
GValue * value,
GParamSpec * pspec)
......@@ -232,16 +232,16 @@ gtranslator_close_confirmation_dialog_get_property (GObject * object,
}
static void
gtranslator_close_confirmation_dialog_class_init
gtr_close_confirmation_dialog_class_init
(GtrCloseConfirmationDialogClass * klass)
{
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
gobject_class->set_property =
gtranslator_close_confirmation_dialog_set_property;
gtr_close_confirmation_dialog_set_property;
gobject_class->get_property =
gtranslator_close_confirmation_dialog_get_property;
gobject_class->finalize = gtranslator_close_confirmation_dialog_finalize;
gtr_close_confirmation_dialog_get_property;
gobject_class->finalize = gtr_close_confirmation_dialog_finalize;
g_type_class_add_private (klass,
sizeof
......@@ -294,7 +294,7 @@ get_selected_docs (GtkTreeModel * store)
}
GList *
gtranslator_close_confirmation_dialog_get_selected_documents
gtr_close_confirmation_dialog_get_selected_documents
(GtrCloseConfirmationDialog * dlg)
{
g_return_val_if_fail (GTR_IS_CLOSE_CONFIRMATION_DIALOG (dlg), NULL);
......@@ -303,7 +303,7 @@ gtranslator_close_confirmation_dialog_get_selected_documents
}
GtkWidget *
gtranslator_close_confirmation_dialog_new (GtkWindow * parent,
gtr_close_confirmation_dialog_new (GtkWindow * parent,
GList * unsaved_documents,
gboolean logout_mode)
{
......@@ -324,7 +324,7 @@ gtranslator_close_confirmation_dialog_new (GtkWindow * parent,
}
GtkWidget *
gtranslator_close_confirmation_dialog_new_single (GtkWindow * parent,
gtr_close_confirmation_dialog_new_single (GtkWindow * parent,
GtrPo * doc,
gboolean logout_mode)
{
......@@ -334,7 +334,7 @@ gtranslator_close_confirmation_dialog_new_single (GtkWindow * parent,
unsaved_documents = g_list_prepend (NULL, doc);
dlg = gtranslator_close_confirmation_dialog_new (parent,
dlg = gtr_close_confirmation_dialog_new (parent,
unsaved_documents,
logout_mode);
......@@ -371,7 +371,7 @@ build_single_doc_dialog (GtrCloseConfirmationDialog * dlg)
gtk_misc_set_alignment (GTK_MISC (primary_label), 0.0, 0.5);
gtk_label_set_selectable (GTK_LABEL (primary_label), TRUE);
location = gtranslator_po_get_location (doc);
location = gtr_po_get_location (doc);
doc_name = g_file_get_path (location);
g_object_unref (location);
......@@ -419,7 +419,7 @@ populate_model (GtkTreeModel * store, GList * docs)
po = GTR_PO (docs->data);
location = gtranslator_po_get_location (po);
location = gtr_po_get_location (po);
name = g_file_get_path (location);
g_object_unref (location);
......@@ -631,7 +631,7 @@ set_unsaved_document (GtrCloseConfirmationDialog * dlg,
}
const GList *
gtranslator_close_confirmation_dialog_get_unsaved_documents
gtr_close_confirmation_dialog_get_unsaved_documents
(GtrCloseConfirmationDialog * dlg)
{
g_return_val_if_fail (GTR_IS_CLOSE_CONFIRMATION_DIALOG (dlg), NULL);
......
/*
* gtranslator-close-confirmation-dialog.h
* gtr-close-confirmation-dialog.h
* This file is part of gtranslator
*
* Copyright (C) 2004-2005 GNOME Foundation
......@@ -21,8 +21,8 @@
*/
/*
* Modified by the gtranslator Team, 2004-2005. See the AUTHORS file for a
* list of people on the gtranslator Team.
* Modified by the gedit Team, 2004-2005. See the AUTHORS file for a
* list of people on the gtr Team.
* See the ChangeLog files for a list of changes.
*/
......@@ -34,7 +34,7 @@
#include "gtr-po.h"
#define GTR_TYPE_CLOSE_CONFIRMATION_DIALOG (gtranslator_close_confirmation_dialog_get_type ())
#define GTR_TYPE_CLOSE_CONFIRMATION_DIALOG (gtr_close_confirmation_dialog_get_type ())
#define GTR_CLOSE_CONFIRMATION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTR_TYPE_CLOSE_CONFIRMATION_DIALOG, GtrCloseConfirmationDialog))
#define GTR_CLOSE_CONFIRMATION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTR_TYPE_CLOSE_CONFIRMATION_DIALOG, GtrCloseConfirmationDialogClass))
#define GTR_IS_CLOSE_CONFIRMATION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTR_TYPE_CLOSE_CONFIRMATION_DIALOG))
......@@ -62,15 +62,15 @@ struct _GtrCloseConfirmationDialogClass
};
GType
gtranslator_close_confirmation_dialog_get_type (void)
gtr_close_confirmation_dialog_get_type (void)
G_GNUC_CONST;
GtkWidget *gtranslator_close_confirmation_dialog_new (GtkWindow * parent,
GtkWidget *gtr_close_confirmation_dialog_new (GtkWindow * parent,
GList *
unsaved_documents,
gboolean
logout_mode);
GtkWidget *gtranslator_close_confirmation_dialog_new_single (GtkWindow *
GtkWidget *gtr_close_confirmation_dialog_new_single (GtkWindow *
parent,
GtrPo
* doc,
......@@ -78,11 +78,11 @@ gtranslator_close_confirmation_dialog_get_type (void)
logout_mode);
const GList
*gtranslator_close_confirmation_dialog_get_unsaved_documents
*gtr_close_confirmation_dialog_get_unsaved_documents
(GtrCloseConfirmationDialog * dlg);
GList
*gtranslator_close_confirmation_dialog_get_selected_documents
*gtr_close_confirmation_dialog_get_selected_documents
(GtrCloseConfirmationDialog * dlg);
#endif /* __GTR_CLOSE_CONFIRMATION_DIALOG_H__ */
......@@ -39,7 +39,7 @@
GtrCommentDialogPrivate))
G_DEFINE_TYPE (GtrCommentDialog, gtranslator_comment_dialog,
G_DEFINE_TYPE (GtrCommentDialog, gtr_comment_dialog,
GTK_TYPE_DIALOG)
struct _GtrCommentDialogPrivate
{
......@@ -56,15 +56,15 @@ G_DEFINE_TYPE (GtrCommentDialog, gtranslator_comment_dialog,
GtrPo *po;
GList *msg;
tab = gtranslator_window_get_active_tab (window);
po = gtranslator_tab_get_po (tab);
msg = gtranslator_po_get_current_message (po);
tab = gtr_window_get_active_tab (window);
po = gtr_tab_get_po (tab);
msg = gtr_po_get_current_message (po);
gtk_text_buffer_get_bounds (buffer, &start, &end);
text = gtk_text_buffer_get_text (buffer, &start, &end, TRUE);
gtranslator_msg_set_comment (msg->data, text);
gtranslator_po_set_state (po, GTR_PO_STATE_MODIFIED);
gtr_msg_set_comment (msg->data, text);
gtr_po_set_state (po, GTR_PO_STATE_MODIFIED);
}
static void
......@@ -78,7 +78,7 @@ dialog_response_handler (GtkDialog * dlg, gint res_id)
}
static void
gtranslator_comment_dialog_init (GtrCommentDialog * dlg)
gtr_comment_dialog_init (GtrCommentDialog * dlg)
{
gboolean ret;
GtkWidget *error_widget;
......@@ -110,8 +110,8 @@ gtranslator_comment_dialog_init (GtrCommentDialog * dlg)
"response", G_CALLBACK (dialog_response_handler), NULL);
/*Glade */
path = gtranslator_dirs_get_ui_file ("gtr-comment-dialog.ui");
ret = gtranslator_utils_get_ui_objects (path,
path = gtr_dirs_get_ui_file ("gtr-comment-dialog.ui");
ret = gtr_utils_get_ui_objects (path,
root_objects,
&error_widget,
"main_box", &dlg->priv->main_box,
......@@ -136,29 +136,29 @@ gtranslator_comment_dialog_init (GtrCommentDialog * dlg)
}
static void
gtranslator_comment_dialog_finalize (GObject * object)
gtr_comment_dialog_finalize (GObject * object)
{
G_OBJECT_CLASS (gtranslator_comment_dialog_parent_class)->finalize (object);
G_OBJECT_CLASS (gtr_comment_dialog_parent_class)->finalize (object);
}
static void
gtranslator_comment_dialog_class_init (GtrCommentDialogClass * klass)
gtr_comment_dialog_class_init (GtrCommentDialogClass * klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
g_type_class_add_private (klass, sizeof (GtrCommentDialogPrivate));
object_class->finalize = gtranslator_comment_dialog_finalize;
object_class->finalize = gtr_comment_dialog_finalize;
}
void
gtranslator_show_comment_dialog (GtrWindow * window)
gtr_show_comment_dialog (GtrWindow * window)
{
static GtrCommentDialog *dlg = NULL;
static GtkTextBuffer *buf;
GtrTab *tab = gtranslator_window_get_active_tab (window);
GtrPo *po = gtranslator_tab_get_po (tab);
GList *msg = gtranslator_po_get_current_message (po);
GtrTab *tab = gtr_window_get_active_tab (window);
GtrPo *po = gtr_tab_get_po (tab);
GList *msg = gtr_po_get_current_message (po);
g_return_if_fail (GTR_IS_WINDOW (window));
......@@ -174,7 +174,7 @@ gtranslator_show_comment_dialog (GtrWindow * window)
gtk_widget_show (GTK_WIDGET (dlg));
}
gtk_text_buffer_set_text (buf, gtranslator_msg_get_comment (msg->data), -1);
gtk_text_buffer_set_text (buf, gtr_msg_get_comment (msg->data), -1);
if (GTK_WINDOW (window) != gtk_window_get_transient_for (GTK_WINDOW (dlg)))
{
......
......@@ -30,7 +30,7 @@ G_BEGIN_DECLS
/*
* Type checking and casting macros
*/
#define GTR_TYPE_COMMENT_DIALOG (gtranslator_comment_dialog_get_type ())
#define GTR_TYPE_COMMENT_DIALOG (gtr_comment_dialog_get_type ())
#define GTR_COMMENT_DIALOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTR_TYPE_COMMENT_DIALOG, GtrCommentDialog))
#define GTR_COMMENT_DIALOG_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GTR_TYPE_COMMENT_DIALOG, GtrCommentDialogClass))
#define GTR_IS_COMMENT_DIALOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTR_TYPE_COMMENT_DIALOG))
......@@ -67,12 +67,12 @@ struct _GtrCommentDialogClass
* Public methods
*/
GType
gtranslator_comment_dialog_get_type (void)
gtr_comment_dialog_get_type (void)
G_GNUC_CONST;
GType gtranslator_comment_dialog_register_type (GTypeModule * module);
GType gtr_comment_dialog_register_type (GTypeModule * module);
void gtranslator_show_comment_dialog (GtrWindow * window);
void gtr_show_comment_dialog (GtrWindow * window);
G_END_DECLS
#endif /* __COMMENT_DIALOG_H__ */
......@@ -29,7 +29,7 @@
* File chooser dialog
*/
GtkWidget *
gtranslator_file_chooser_new (GtkWindow * parent,
gtr_file_chooser_new (GtkWindow * parent,
FileselMode mode,
const gchar * title, const gchar * dir)
{
......
......@@ -29,7 +29,7 @@ typedef enum
FILESEL_SAVE
} FileselMode;
GtkWidget *gtranslator_file_chooser_new (GtkWindow * parent,
GtkWidget *gtr_file_chooser_new (GtkWindow * parent,
FileselMode mode,
const gchar * title,
const gchar * dir);
......
......@@ -39,7 +39,7 @@
GTR_TYPE_HEADER_DIALOG, \
GtrHeaderDialogPrivate))
G_DEFINE_TYPE (GtrHeaderDialog, gtranslator_header_dialog,
G_DEFINE_TYPE (GtrHeaderDialog, gtr_header_dialog,
GTK_TYPE_DIALOG)
struct _GtrHeaderDialogPrivate
......@@ -69,19 +69,19 @@ struct _GtrHeaderDialogPrivate
};
static void
gtranslator_header_dialog_finalize (GObject *object)
gtr_header_dialog_finalize (GObject *object)
{
G_OBJECT_CLASS (gtranslator_header_dialog_parent_class)->finalize (object);
G_OBJECT_CLASS (gtr_header_dialog_parent_class)->finalize (object);
}
static void
gtranslator_header_dialog_class_init (GtrHeaderDialogClass *klass)
gtr_header_dialog_class_init (GtrHeaderDialogClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
g_type_class_add_private (klass, sizeof (GtrHeaderDialogPrivate));
object_class->finalize = gtranslator_header_dialog_finalize;
object_class->finalize = gtr_header_dialog_finalize;
}
static void
......@@ -94,7 +94,7 @@ take_my_options_checkbutton_toggled (GtkToggleButton *button,
active = gtk_toggle_button_get_active (button);
gtranslator_prefs_manager_set_use_profile_values (active);
gtr_prefs_manager_set_use_profile_values (active);
gtk_widget_set_sensitive (dlg->priv->translator, !active);
gtk_widget_set_sensitive (dlg->priv->tr_email, !active);
......@@ -115,7 +115,7 @@ prj_comment_changed (GtkTextBuffer * buffer,
if (text)
{
gtranslator_header_set_comments (dlg->priv->header, text);
gtr_header_set_comments (dlg->priv->header, text);
g_free (text);
}
}
......@@ -129,7 +129,7 @@ prj_id_version_changed (GtkWidget *widget,
text = gtk_entry_get_text (GTK_ENTRY (widget));
if (text)
gtranslator_header_set_prj_id_version (dlg->priv->header, text);
gtr_header_set_prj_id_version (dlg->priv->header, text);
}
static void
......@@ -141,7 +141,7 @@ rmbt_changed (GtkWidget *widget,
text = gtk_entry_get_text (GTK_ENTRY (widget));
if (text)
gtranslator_header_set_rmbt (dlg->priv->header, text);
gtr_header_set_rmbt (dlg->priv->header, text);
}
static void
......@@ -154,7 +154,7 @@ translator_changed (GtkWidget *widget,
email = gtk_entry_get_text (GTK_ENTRY (dlg->priv->tr_email));
if (name && email)
gtranslator_header_set_translator (dlg->priv->header, name, email);
gtr_header_set_translator (dlg->priv->header, name, email);
}
static void
......@@ -167,11 +167,11 @@ language_changed (GtkWidget *widget,
lg_email = gtk_entry_get_text (GTK_ENTRY (dlg->priv->lg_email));
if (language && lg_email)
gtranslator_header_set_language (dlg->priv->header, language, lg_email);
gtr_header_set_language (dlg->priv->header, language, lg_email);
}
static void
gtranslator_header_dialog_fill_from_header (GtrHeaderDialog * dlg)
gtr_header_dialog_fill_from_header (GtrHeaderDialog * dlg)
{
GtrHeader *header;
GtkTextBuffer *buffer;
......@@ -181,63 +181,63 @@ gtranslator_header_dialog_fill_from_header (GtrHeaderDialog * dlg)
/* Project Information */
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (dlg->priv->prj_comment));
gtk_text_buffer_set_text (buffer, gtranslator_header_get_comments (header),
gtk_text_buffer_set_text (buffer, gtr_header_get_comments (header),
-1);
text = gtranslator_header_get_prj_id_version (header);
text = gtr_header_get_prj_id_version (header);
gtk_entry_set_text (GTK_ENTRY (dlg->priv->prj_id_version),
text);
g_free (text);
text = gtranslator_header_get_pot_date (header);
text = gtr_header_get_pot_date (header);
gtk_entry_set_text (GTK_ENTRY (dlg->priv->pot_date),
text);
g_free (text);
text = gtranslator_header_get_po_date (header);
text = gtr_header_get_po_date (header);
gtk_entry_set_text (GTK_ENTRY (dlg->priv->po_date),
text);
g_free (text);
text = gtranslator_header_get_rmbt (header);
text = gtr_header_get_rmbt (header);
gtk_entry_set_text (GTK_ENTRY (dlg->priv->rmbt),
text);
g_free (text);
/* Translator and Language Information */
text = gtranslator_header_get_translator (header);
text = gtr_header_get_translator (header);
gtk_entry_set_text (GTK_ENTRY (dlg->priv->translator),
text);
g_free (text);
text = gtranslator_header_get_tr_email (header);
text = gtr_header_get_tr_email (header);
gtk_entry_set_text (GTK_ENTRY (dlg->priv->tr_email),
text);
g_free (text);
text = gtranslator_header_get_language (header);
text = gtr_header_get_language (header);
gtk_entry_set_text (GTK_ENTRY (dlg->priv->language),
text);
g_free (text);
text = gtranslator_header_get_lg_email (header);
text = gtr_header_get_lg_email (header);
gtk_entry_set_text (GTK_ENTRY (dlg->priv->lg_email),
text);
g_free (text);
text = gtranslator_header_get_charset (header);
text = gtr_header_get_charset (header);
gtk_entry_set_text (GTK_ENTRY (dlg->priv->charset),
text);
g_free (text);
text = gtranslator_header_get_encoding (header);
text = gtr_header_get_encoding (header);
gtk_entry_set_text (GTK_ENTRY (dlg->priv->encoding),
text);
g_free (text);
}
static void
gtranslator_header_dialog_init (GtrHeaderDialog * dlg)
gtr_header_dialog_init (GtrHeaderDialog * dlg)
{
gboolean ret;
GtkWidget *error_widget;
......@@ -265,8 +265,8 @@ gtranslator_header_dialog_init (GtrHeaderDialog * dlg)
g_signal_connect (dlg, "response", G_CALLBACK (gtk_widget_destroy), NULL);
path = gtranslator_dirs_get_ui_file ("gtr-header-dialog.ui");
ret = gtranslator_utils_get_ui_objects (path,
path = gtr_dirs_get_ui_file ("gtr-header-dialog.ui");
ret = gtr_utils_get_ui_objects (path,
root_objects,
&error_widget,
"main_box", &dlg->priv->main_box,
......@@ -306,14 +306,14 @@ gtranslator_header_dialog_init (GtrHeaderDialog * dlg)
gtk_container_set_border_width (GTK_CONTAINER (dlg->priv->notebook), 5);
if (gtranslator_application_get_profiles (GTR_APP) == NULL)
if (gtr_application_get_profiles (GTR_APP) == NULL)
{
gtk_widget_set_sensitive (dlg->priv->take_my_options, FALSE);
}
else
{
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (dlg->priv->take_my_options),
gtranslator_prefs_manager_get_use_profile_values ());