~ubuntu-branches/ubuntu/oneiric/gnome-panel/oneiric

« back to all changes in this revision

Viewing changes to .pc/11_compat_options.patch/gnome-panel/main.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher, Sebastien Bacher, Jeremy Bicha
  • Date: 2011-05-30 11:04:49 UTC
  • mfrom: (1.13.10 upstream) (2.2.5 experimental)
  • Revision ID: james.westby@ubuntu.com-20110530110449-hinl17kxkcefjw6x
Tags: 1:3.0.2-0ubuntu1
[ Sebastien Bacher ]
* New upstream version
* debian/control.in:
  - the new libgweather version is in oneiric, use it
  - drop the python and python-gconf depends, 
    they were added for gnome-panel-add which is still using gconf and buggy
* debian/gnome-panel-data.install:
  - don't install the apport hook, it's only getting gconf datas which 
    doesn't work since gnome-panel uses gsettings
* debian/patches/90_build_fixes.patch:
  - restore build fix from git not applied in the new serie
* debian/patches/01_panel_submenus.patch:
  - don't take that Debian diff, the .menus use the upstream naming in Ubuntu
* debian/patches/06_no_resize_grip.patch:
  - dropped, the issue is fixed in the new version
* debian/patches/50_fix-potfiles.patch:
  - dropped, the issue is fixed in the new version
* debian/watch:
  - track unstable series as well

Drop those delta, since gnome-panel is not the default Ubuntu session now we
can go back to an experience closer to the upstream one: 
* debian/control.in:
  - drop the indicators recommends, unity-2d is the ubuntu fallback session
    so we can get back to use an upstream config for gnome-panel and reduce
    the delta we carry
* debian/patches/04_default_panel_config.patch:
  - don't modify the upstream layout
* debian/patches/05_no_session_delay.patch:
  - no need to tweak the upstream session to optimize it
* debian/patches/16_compiz_workspace_switcher.patch:
  - go back to the upstream switcher behaviour    
* debian/patches/25_dynamic_fusa_detection.patch:
  - not needed since we use the upstream layout, could be ported if someone
    is wanting to do the work though
* debian/patches/30_disable-initial-animation.patch, debian/rules:
  - drop the --disable-initial-animation, that was some login optimization
    but since it's not the default desktop you should go back to the 
    upstream behaviour

[ Jeremy Bicha ]   
* New upstream version
* Merge from Debian experimental, remaining Ubuntu changes:
* debian/control:
  - Recommends gnome-settings-daemon which has the timezone polkit service
* debian/rules:
  - Update translations template.
* debian/gnome-panel-data.install:
  - Install apport hook
  - Install the "About Ubuntu" menu item.
* debian/patches/01_layout.patch:
  - Disabled, Help & About Ubuntu don't fit as well in Gnome Panel 3
* debian/patches/01_panel_submenus.patch.
  - Dropped
* debian/patches/03_dnd_places_link.patch:
  - Disabled, when using Drag'n'Drop from Places menu, install a link launcher
    (.desktop file) instead of copying the entire directory.
* debian/patches/17_about-ubuntu-translation.patch:
  - List ubuntu-about.desktop for translation.
* debian/patches/40_unset_menuproxy.patch:
  - Make sure gnome-panel and the applets don't pick up menu proxies.
* debian/patches/50_fix-potfiles.patch
  - Fix i18n
* debian/patches/85_disable_shutdown_on_ltsp.patch:
  - Suppress the shutdown option in the panel if LTSP_CLIENT is set.
* debian/patches/71_change_bookmark_submenu_limit_value.patch
  - Dropped, picked up by Debian
* debian/patches/18_lockdown_lock_editor.patch:
* debian/patches/90_git_wnck_show_realize.patch:
* debian/patches/90_fix_linking_DSO_link.patch:
* debian/patches/91_gir_annotations.patch
* debian/patches/92_git_calendar_day.patch
* debian/patches/92_git_fix_applets_in_multiscreen.patch:
  - Dropped, applied upstream
* debian/watch:
  - watch unstable versions

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Gnome panel: Initialization routines
 
2
 * (C) 1997,1998,1999,2000 the Free Software Foundation
 
3
 * (C) 2000 Eazel, Inc.
 
4
 *
 
5
 * Authors: Federico Mena
 
6
 *          Miguel de Icaza
 
7
 *          George Lebl
 
8
 */
 
9
 
 
10
#include <config.h>
 
11
#include <string.h>
 
12
#include <signal.h>
 
13
#include <sys/wait.h>
 
14
 
 
15
#include <glib/gi18n.h>
 
16
 
 
17
#include <libegg/eggdesktopfile.h>
 
18
#include <libegg/eggsmclient.h>
 
19
 
 
20
#include <libpanel-util/panel-cleanup.h>
 
21
#include <libpanel-util/panel-glib.h>
 
22
 
 
23
#include "panel-shell.h"
 
24
#include "panel-multiscreen.h"
 
25
#include "panel-session.h"
 
26
#include "panel-stock-icons.h"
 
27
#include "panel-action-protocol.h"
 
28
#include "panel-icon-names.h"
 
29
#include "panel-layout.h"
 
30
#include "xstuff.h"
 
31
 
 
32
#include "nothing.cP"
 
33
 
 
34
/* globals */
 
35
GSList *panels = NULL;
 
36
GSList *panel_list = NULL;
 
37
 
 
38
static gboolean  replace = FALSE;
 
39
 
 
40
static const GOptionEntry options[] = {
 
41
  { "replace", 0, 0, G_OPTION_ARG_NONE, &replace, N_("Replace a currently running panel"), NULL },
 
42
  { NULL }
 
43
};
 
44
 
 
45
int
 
46
main (int argc, char **argv)
 
47
{
 
48
        char           *desktopfile;
 
49
        GOptionContext *context;
 
50
        GError         *error;
 
51
 
 
52
        bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
 
53
        bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
 
54
        textdomain (GETTEXT_PACKAGE);
 
55
 
 
56
        /* We will register explicitly when we're ready -- see panel-session.c */
 
57
        egg_sm_client_set_mode (EGG_SM_CLIENT_MODE_DISABLED);
 
58
 
 
59
        g_set_prgname ("gnome-panel");
 
60
 
 
61
        desktopfile = panel_g_lookup_in_applications_dirs ("gnome-panel.desktop");
 
62
        if (desktopfile) {
 
63
                egg_set_desktop_file (desktopfile);
 
64
                g_free (desktopfile);
 
65
        }
 
66
 
 
67
        context = g_option_context_new ("");
 
68
        g_option_context_add_group (context,
 
69
                                    egg_sm_client_get_option_group ());
 
70
        g_option_context_add_group (context, gtk_get_option_group (TRUE));
 
71
        g_option_context_add_main_entries (context, options, GETTEXT_PACKAGE);
 
72
 
 
73
        gtk_init (&argc, &argv);
 
74
 
 
75
        error = NULL;
 
76
        if (!g_option_context_parse (context, &argc, &argv, &error)) {
 
77
                g_printerr ("%s\n", error->message);
 
78
                g_error_free (error);
 
79
                g_option_context_free (context);
 
80
 
 
81
                return 1;
 
82
        }
 
83
 
 
84
        g_option_context_free (context);
 
85
 
 
86
        if (!egg_get_desktop_file ()) {
 
87
                g_set_application_name (_("Panel"));
 
88
                gtk_window_set_default_icon_name (PANEL_ICON_PANEL);
 
89
        }
 
90
 
 
91
        if (!panel_shell_register (replace)) {
 
92
                panel_cleanup_do ();
 
93
                return 1;
 
94
        }
 
95
 
 
96
        panel_action_protocol_init ();
 
97
        panel_multiscreen_init ();
 
98
        panel_init_stock_icons_and_items ();
 
99
 
 
100
        if (!panel_layout_load ()) {
 
101
                panel_cleanup_do ();
 
102
                return 1;
 
103
        }
 
104
 
 
105
        xstuff_init ();
 
106
 
 
107
        /* Flush to make sure our struts are seen by everyone starting
 
108
         * immediate after (eg, the nautilus desktop). */
 
109
        gdk_flush ();
 
110
 
 
111
        /* Do this at the end, to be sure that we're really ready when
 
112
         * connecting to the session manager */
 
113
        panel_session_init ();
 
114
 
 
115
        gtk_main ();
 
116
 
 
117
        panel_cleanup_do ();
 
118
 
 
119
        return 0;
 
120
}