[gtranslator] translation-memory: do not use gtk_dialog_run
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator] translation-memory: do not use gtk_dialog_run
- Date: Sat, 24 Mar 2012 09:02:29 +0000 (UTC)
commit 40f8e98e0824e23ca541d37c3217772f6140aefb
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sat Mar 24 10:03:59 2012 +0100
translation-memory: do not use gtk_dialog_run
.../gtr-translation-memory-dialog.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/plugins/translation-memory/gtr-translation-memory-dialog.c b/plugins/translation-memory/gtr-translation-memory-dialog.c
index 02ed64f..0fd65f5 100644
--- a/plugins/translation-memory/gtr-translation-memory-dialog.c
+++ b/plugins/translation-memory/gtr-translation-memory-dialog.c
@@ -74,8 +74,9 @@ gtr_translation_memory_dialog_class_init (GtrTranslationMemoryDialogClass *klass
/***************Translation Memory pages****************/
static void
-response_filechooser_cb (GtkDialog *dialog,
- gint response_id, GtrTranslationMemoryDialog *dlg)
+response_filechooser_cb (GtkDialog *dialog,
+ gint response_id,
+ GtrTranslationMemoryDialog *dlg)
{
if (response_id == GTK_RESPONSE_YES)
{
@@ -110,7 +111,7 @@ on_search_button_clicked (GtkButton *button,
g_signal_connect (GTK_DIALOG (filechooser), "response",
G_CALLBACK (response_filechooser_cb), dlg);
- gtk_dialog_run (GTK_DIALOG (filechooser));
+ gtk_widget_show (filechooser);
}
typedef struct _IdleData
@@ -167,8 +168,9 @@ add_to_database (gpointer data_pointer)
gtk_message_dialog_set_markup (GTK_MESSAGE_DIALOG (dialog),
_("<span weight=\"bold\" size=\"large\">Strings added to database</span>"));
- gtk_dialog_run (GTK_DIALOG (dialog));
- gtk_widget_destroy (dialog);
+ g_signal_connect (dialog, "response",
+ G_CALLBACK (gtk_widget_destroy), NULL);
+ gtk_widget_show (dialog);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]