~ubuntu-branches/ubuntu/lucid/epiphany-browser/lucid

« back to all changes in this revision

Viewing changes to src/ephy-main.c

  • Committer: Bazaar Package Importer
  • Author(s): Josselin Mouette, Gustavo Noronha Silva, Josselin Mouette
  • Date: 2009-11-13 19:28:48 UTC
  • mfrom: (1.3.10 sid)
  • Revision ID: james.westby@ubuntu.com-20091113192848-l1ktaulwcdb1cd2i
Tags: 2.29.1-2
[ Gustavo Noronha Silva ]
* debian/patches/04_set_prgname.patch:
- New patch, to make sure GNOME Shell is able to match the application
  windows to the .desktop file, and app well favourite.

[ Josselin Mouette ]
* Add a conflict with swfdec-mozilla, the plugin makes the browser 
  completely unusable on any website with Flash content.

Show diffs side-by-side

added added

removed removed

Lines of Context:
238
238
}
239
239
 
240
240
static void
241
 
shell_weak_notify (gpointer data,
242
 
                   GObject *zombie)
243
 
{
244
 
        if (gtk_main_level ())
245
 
        {
246
 
                gtk_main_quit ();
247
 
        }
248
 
}
249
 
 
250
 
static void
251
241
unref_proxy_reply_cb (DBusGProxy *proxy,
252
242
                      GError *error,
253
243
                      gpointer user_data)
468
458
        g_free (filename);
469
459
}
470
460
 
 
461
static void
 
462
shell_quit_cb (EphyShell *shell, gpointer data)
 
463
{
 
464
        gtk_main_quit ();
 
465
}
 
466
 
471
467
int
472
468
main (int argc,
473
469
      char *argv[])
767
763
 
768
764
        /* Now create the shell */
769
765
        _ephy_shell_create_instance ();
 
766
        g_signal_connect (ephy_shell, "quit", G_CALLBACK (shell_quit_cb), NULL);
770
767
 
771
768
        queue_commands (user_time);
772
769
 
773
 
        /* We'll release the initial reference on idle */
774
 
        g_object_weak_ref (G_OBJECT (ephy_shell), shell_weak_notify, NULL);
775
 
        ephy_object_idle_unref (ephy_shell);
776
 
 
777
770
#ifdef HAVE_LIBNOTIFY   
778
771
        /* Init notifications for the download manager */
779
772
        notify_init (PACKAGE);
782
775
        gtk_main ();
783
776
 
784
777
        /* Shutdown */
 
778
        g_object_unref (ephy_shell);
 
779
 
785
780
#ifdef HAVE_LIBNOTIFY   
786
781
        if (notify_is_initted ())
787
782
                notify_uninit ();