[maemo-commits] [maemo-commits] r8704 - projects/haf/trunk/osso-application-installer/src
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Mon Dec 11 10:30:42 EET 2006
- Previous message: [maemo-commits] r8703 - projects/haf/tags/osso-gnome-vfs2
- Next message: [maemo-commits] r8705 - projects/haf/trunk/osso-application-installer
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: marivoll Date: 2006-12-11 10:30:41 +0200 (Mon, 11 Dec 2006) New Revision: 8704 Modified: projects/haf/trunk/osso-application-installer/src/repo.cc projects/haf/trunk/osso-application-installer/src/util.cc Log: * src/util.cc, src/repo.cc: Use get_dialog_parent, push_dialog_parent, and pop_dialog_parent for the rest of the dialogs. Modified: projects/haf/trunk/osso-application-installer/src/repo.cc =================================================================== --- projects/haf/trunk/osso-application-installer/src/repo.cc 2006-12-08 15:55:05 UTC (rev 8703) +++ projects/haf/trunk/osso-application-installer/src/repo.cc 2006-12-11 08:30:41 UTC (rev 8704) @@ -978,6 +978,7 @@ static void pill_response (GtkDialog *dialog, gint response, gpointer unused) { + pop_dialog_parent (); gtk_widget_destroy (GTK_WIDGET (dialog)); if (red_pill_mode != (response == GTK_RESPONSE_YES)) @@ -994,11 +995,12 @@ GtkWidget *dialog; dialog = - hildon_note_new_confirmation_add_buttons (get_main_window (), + hildon_note_new_confirmation_add_buttons (get_dialog_parent (), "Which pill?", "Red", GTK_RESPONSE_YES, "Blue", GTK_RESPONSE_NO, NULL); + push_dialog_parent (dialog); g_signal_connect (dialog, "response", G_CALLBACK (pill_response), NULL); gtk_widget_show_all (dialog); Modified: projects/haf/trunk/osso-application-installer/src/util.cc =================================================================== --- projects/haf/trunk/osso-application-installer/src/util.cc 2006-12-08 15:55:05 UTC (rev 8703) +++ projects/haf/trunk/osso-application-installer/src/util.cc 2006-12-11 08:30:41 UTC (rev 8704) @@ -145,7 +145,8 @@ c->details = NULL; c->data = data; - dialog = hildon_note_new_confirmation (get_main_window (), question); + dialog = hildon_note_new_confirmation (get_dialog_parent (), question); + push_dialog_parent (dialog); g_signal_connect (dialog, "response", G_CALLBACK (yes_no_response), c); @@ -166,11 +167,12 @@ c->data = data; dialog = hildon_note_new_confirmation_add_buttons - (get_main_window (), + (get_dialog_parent (), question, ok_label, GTK_RESPONSE_OK, cancel_label, GTK_RESPONSE_CANCEL, NULL); + push_dialog_parent (dialog); g_signal_connect (dialog, "response", G_CALLBACK (yes_no_response), c); @@ -252,6 +254,7 @@ static void annoy_user_response (GtkDialog *dialog, gint response, gpointer data) { + pop_dialog_parent (); gtk_widget_destroy (GTK_WIDGET (dialog)); currently_annoying_user = false; } @@ -264,7 +267,8 @@ GtkWidget *dialog; - dialog = hildon_note_new_information (get_main_window (), text); + dialog = hildon_note_new_information (get_dialog_parent (), text); + push_dialog_parent (dialog); g_signal_connect (dialog, "response", G_CALLBACK (annoy_user_response), NULL); gtk_widget_show_all (dialog); @@ -288,6 +292,7 @@ } else { + pop_dialog_parent (); gtk_widget_destroy (GTK_WIDGET (dialog)); currently_annoying_user = false; c->pi->unref (); @@ -305,7 +310,8 @@ GtkWidget *dialog; auwd_closure *c = new auwd_closure; - dialog = hildon_note_new_information (get_main_window (), text); + dialog = hildon_note_new_information (get_dialog_parent (), text); + push_dialog_parent (dialog); { // XXX - the buttons should be "Details" "Close", so we remove the @@ -341,6 +347,7 @@ annoy_user_with_log_response (GtkDialog *dialog, gint response, gpointer data) { + pop_dialog_parent (); gtk_widget_destroy (GTK_WIDGET (dialog)); currently_annoying_user = false; @@ -356,7 +363,8 @@ GtkWidget *dialog; - dialog = hildon_note_new_information (get_main_window (), text); + dialog = hildon_note_new_information (get_dialog_parent (), text); + push_dialog_parent (dialog); #if 0 gtk_dialog_add_button (GTK_DIALOG (dialog), "Log", 1); #endif @@ -529,6 +537,7 @@ { if (progress_dialog) { + pop_dialog_parent (); gtk_widget_destroy (progress_dialog); progress_dialog = NULL; progress_bar = NULL; @@ -548,9 +557,10 @@ gchar *longer_title = g_strconcat (title, "XXX", NULL); progress_bar = GTK_PROGRESS_BAR (gtk_progress_bar_new ()); progress_dialog = - hildon_note_new_cancel_with_progress_bar (get_main_window (), + hildon_note_new_cancel_with_progress_bar (get_dialog_parent (), longer_title, progress_bar); + push_dialog_parent (progress_dialog); g_free (longer_title); g_object_set (progress_dialog, "description", title, NULL);
- Previous message: [maemo-commits] r8703 - projects/haf/tags/osso-gnome-vfs2
- Next message: [maemo-commits] r8705 - projects/haf/trunk/osso-application-installer
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]