mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-24 05:44:10 +00:00
Bug 763358. Avoid early gtk initialization on webapprt that can happen when invoked from the command line. r=karlt
This commit is contained in:
parent
ab9abb3572
commit
8e2fa0f09c
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user