Bug 763358. Avoid early gtk initialization on webapprt that can happen when invoked from the command line. r=karlt

This commit is contained in:
Marco Castelluccio 2012-06-13 14:25:52 -03:00
Родитель ab9abb3572
Коммит 8e2fa0f09c
1 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -64,9 +64,9 @@ void SetAllocatedString(const char *&str, const char *newvalue)
// Function to open a dialog box displaying the message provided
void ErrorDialog(const char* message)
{
GtkWidget* dialog;
gtk_init(pargc, pargv);
dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, "%s", message);
GtkWidget* dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, "%s", message);
gtk_dialog_run(GTK_DIALOG(dialog));
gtk_widget_destroy(dialog);
}
@ -222,8 +222,6 @@ void CopyAndRelaunch(const char* firefoxDir, const char* curExePath)
int main(int argc, char *argv[])
{
gtk_init(&argc, &argv);
pargc = &argc;
pargv = &argv;