~ubuntu-branches/ubuntu/precise/empathy/precise-proposed-201205180810

« back to all changes in this revision

Viewing changes to src/empathy-debugger.c

  • Committer: Bazaar Package Importer
  • Author(s): Brian Curtis, Brian Curtis, Ken VanDine
  • Date: 2011-06-01 10:35:24 UTC
  • mfrom: (1.1.70 upstream) (6.3.44 experimental)
  • Revision ID: james.westby@ubuntu.com-20110601103524-wx3wgp71394730jt
Tags: 3.1.1-1ubuntu1
[ Brian Curtis ]
* Merge with Debian experimental, remaining Ubuntu changes:
* debian/control:
  - Drop geoclue/mapping build-depends (they are in Universe)
  - Add Vcz-Bzr link
  - Add Suggests on telepathy-idle
  - Bump telepathy-butterfly, telepathy-haze to recommends
  - Don't recommend the freedesktop sound theme we have an ubuntu one
  - Add build depend for libunity-dev
* debian/rules:
  - Use autoreconf.mk
  - Disable map and location
* debian/empathy.install:
  - Install message indicator configuration
* debian/indicators/empathy:
  - Message indicator configuration
* debian/patches/01_lpi.patch:
  - Add Launchpad integration
* debian/patches/10_use_notify_osd_icons.patch:
  - Use the notify-osd image for new messages
* debian/patches/34_start_raised_execpt_in_session.patch
  - If not started with the session, we should always raise
* debian/patches/36_chat_window_default_size.patch:
  - Make the default chat window size larger
* debian/patches/37_facebook_default.patch:
  - Make facebook the default chat account type
* debian/patches/38_lp_569289.patch
  - Set freenode as default IRC network for new IRC accounts 
* debian/patches/41_unity_launcher_progress.patch
  - Display file transfer progress in the unity launcher

[ Ken VanDine ]
* debian/control
  - build depend on libgcr-3-dev instead of libgcr-dev
  - dropped build depends for libindicate, we will use telepathy-indicator
  - Depend on dconf-gsettings-backend | gsettings-backend
  - Added a Recommends for telepathy-indicator
* +debian/empathy.gsettings-override
  - Added an override for notifications-focus
* debian/patches/series
  - commented out 23_idomessagedialog_for_voip_and_ft.patch, until ido has 
    been ported to gtk3

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
#include "empathy-debug-window.h"
29
29
 
 
30
#define EMPATHY_DEBUGGER_DBUS_NAME "org.gnome.Empathy.Debugger"
 
31
 
 
32
static GtkWidget *window = NULL;
 
33
 
 
34
static void
 
35
activate_cb (GApplication *app)
 
36
{
 
37
  if (window == NULL)
 
38
    {
 
39
      window = empathy_debug_window_new (NULL);
 
40
      g_signal_connect (window, "destroy", gtk_main_quit, NULL);
 
41
 
 
42
      /* don't let this application exit automatically */
 
43
      g_application_hold (G_APPLICATION (app));
 
44
    }
 
45
  else
 
46
    {
 
47
      gtk_window_present (GTK_WINDOW (window));
 
48
    }
 
49
}
 
50
 
30
51
int
31
52
main (int argc,
32
53
    char **argv)
33
54
{
34
 
  GtkWidget *window;
 
55
  GtkApplication *app;
 
56
  gint retval;
35
57
 
36
58
  g_thread_init (NULL);
37
59
  gtk_init (&argc, &argv);
38
60
  empathy_gtk_init ();
39
61
 
 
62
  app = gtk_application_new (EMPATHY_DEBUGGER_DBUS_NAME,
 
63
      G_APPLICATION_FLAGS_NONE);
 
64
  g_signal_connect (app, "activate", G_CALLBACK (activate_cb), NULL);
 
65
 
40
66
  g_set_application_name (_("Empathy Debugger"));
41
67
 
 
68
  /* Make empathy and empathy-debugger appear as the same app in gnome-shell */
 
69
  gdk_set_program_class ("Empathy");
42
70
  gtk_window_set_default_icon_name ("empathy");
43
71
  textdomain (GETTEXT_PACKAGE);
44
72
 
45
 
  window = empathy_debug_window_new (NULL);
46
 
  g_signal_connect (window, "destroy", gtk_main_quit, NULL);
47
 
 
48
 
  gtk_main ();
49
 
 
50
 
  return EXIT_SUCCESS;
 
73
  retval = g_application_run (G_APPLICATION (app), argc, argv);
 
74
 
 
75
  g_object_unref (app);
 
76
 
 
77
  return retval;
51
78
}