Commit 8c17c0c2 authored by Alberts Muktupāvels's avatar Alberts Muktupāvels

remove panel-globals.h

parent 4fb91d25
......@@ -57,7 +57,6 @@ panel_sources = \
panel_headers = \
panel-types.h \
panel-widget.h \
panel-globals.h \
button-widget.h \
panel-session.h \
panel.h \
......
......@@ -26,9 +26,6 @@
#include "panel-layout.h"
#include "panel-schemas.h"
/* globals */
GSList *panels = NULL;
static gboolean replace = FALSE;
static gboolean version = FALSE;
......
......@@ -39,7 +39,6 @@
#include "panel-action-button.h"
#include "panel-menu-button.h"
#include "panel-menu-items.h"
#include "panel-globals.h"
#include "panel-run-dialog.h"
#include "panel-lockdown.h"
#include "panel-icon-names.h"
......
......@@ -30,7 +30,6 @@
#include "menu.h"
#include "applet.h"
#include "panel-globals.h"
#include "panel-toplevel.h"
#include "panel-util.h"
#include "panel-force-quit.h"
......@@ -47,6 +46,7 @@ static void
panel_action_protocol_main_menu (GdkScreen *screen,
guint32 activate_time)
{
GSList *panels;
PanelWidget *panel_widget;
GtkWidget *menu;
AppletInfo *info;
......@@ -65,6 +65,7 @@ panel_action_protocol_main_menu (GdkScreen *screen,
return;
}
panels = panel_widget_get_panels ();
panel_widget = panels->data;
menu = create_main_menu (panel_widget);
......
/*
* panel-globals.h: panel global variables
*
* Copyright (C) 2003 Sun Microsystems, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*
* Authors:
* Mark McLoughlin <mark@skynet.ie>
*/
#ifndef __PANEL_GLOBALS_H__
#define __PANEL_GLOBALS_H__
#include <gtk/gtk.h>
G_BEGIN_DECLS
extern GSList *panels;
G_END_DECLS
#endif /* __PANEL_GLOBALS_H__ */
......@@ -23,7 +23,6 @@
#include "panel-util.h"
#include "panel-typebuiltins.h"
#include "panel-applet-frame.h"
#include "panel-globals.h"
#include "panel-lockdown.h"
typedef enum {
......@@ -47,6 +46,8 @@ enum {
static guint panel_widget_signals [LAST_SIGNAL] = {0};
static GSList *panels = NULL;
/*define for some debug output*/
#undef PANEL_WIDGET_DEBUG
......@@ -2658,3 +2659,8 @@ panel_widget_register_open_dialog (PanelWidget *panel,
panel,
G_CONNECT_SWAPPED);
}
GSList *panel_widget_get_panels (void)
{
return panels;
}
......@@ -202,6 +202,8 @@ void panel_widget_set_applet_size_hints (PanelWidget *panel,
void panel_widget_register_open_dialog (PanelWidget *panel,
GtkWidget *dialog);
GSList *panel_widget_get_panels (void);
G_END_DECLS
#endif /* PANEL_WIDGET_H */
......@@ -36,7 +36,6 @@
#include "panel-multiscreen.h"
#include "panel-toplevel.h"
#include "panel-menu-button.h"
#include "panel-globals.h"
#include "panel-lockdown.h"
#include "panel-icon-names.h"
#include "panel-layout.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment