Browse Source

Remove handle.[ch]. Code moved to panel.c.

(Old svn revision: 3518)
tags/xfce4-panel-4.10.0
Jasper Huijsmans 19 years ago
parent
commit
4ffcb947b3
5 changed files with 177 additions and 302 deletions
  1. +1
    -2
      panel/Makefile.am
  2. +6
    -43
      panel/Makefile.in
  3. +0
    -213
      panel/handle.c
  4. +9
    -22
      panel/info.h
  5. +161
    -22
      panel/panel.c

+ 1
- 2
panel/Makefile.am View File

@@ -7,11 +7,10 @@ controls_dialog.h \
global.h \
groups.c \
groups.h \
handle.c \
handle.h \
icons.c \
icons.h \
info.c \
info.h \
item.c \
item.h \
item_dialog.c \


+ 6
- 43
panel/Makefile.in View File

@@ -163,11 +163,10 @@ controls_dialog.h \
global.h \
groups.c \
groups.h \
handle.c \
handle.h \
icons.c \
icons.h \
info.c \
info.h \
item.c \
item.h \
item_dialog.c \
@@ -211,12 +210,11 @@ PROGRAMS = $(bin_PROGRAMS)

am_xfce4_panel_OBJECTS = xfce4_panel-controls.$(OBJEXT) \
xfce4_panel-controls_dialog.$(OBJEXT) \
xfce4_panel-groups.$(OBJEXT) xfce4_panel-handle.$(OBJEXT) \
xfce4_panel-icons.$(OBJEXT) xfce4_panel-info.$(OBJEXT) \
xfce4_panel-item.$(OBJEXT) xfce4_panel-item_dialog.$(OBJEXT) \
xfce4_panel-main.$(OBJEXT) xfce4_panel-mcs_client.$(OBJEXT) \
xfce4_panel-panel.$(OBJEXT) xfce4_panel-popup.$(OBJEXT) \
xfce4_panel-settings.$(OBJEXT) \
xfce4_panel-groups.$(OBJEXT) xfce4_panel-icons.$(OBJEXT) \
xfce4_panel-info.$(OBJEXT) xfce4_panel-item.$(OBJEXT) \
xfce4_panel-item_dialog.$(OBJEXT) xfce4_panel-main.$(OBJEXT) \
xfce4_panel-mcs_client.$(OBJEXT) xfce4_panel-panel.$(OBJEXT) \
xfce4_panel-popup.$(OBJEXT) xfce4_panel-settings.$(OBJEXT) \
xfce4_panel-xfce_support.$(OBJEXT)
xfce4_panel_OBJECTS = $(am_xfce4_panel_OBJECTS)
xfce4_panel_DEPENDENCIES =
@@ -228,7 +226,6 @@ am__depfiles_maybe = depfiles
@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/xfce4_panel-controls.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/xfce4_panel-controls_dialog.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/xfce4_panel-groups.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/xfce4_panel-handle.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/xfce4_panel-icons.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/xfce4_panel-info.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/xfce4_panel-item.Po \
@@ -303,7 +300,6 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xfce4_panel-controls.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xfce4_panel-controls_dialog.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xfce4_panel-groups.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xfce4_panel-handle.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xfce4_panel-icons.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xfce4_panel-info.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xfce4_panel-item.Po@am__quote@
@@ -450,39 +446,6 @@ xfce4_panel-groups.lo: groups.c
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xfce4_panel_CFLAGS) $(CFLAGS) -c -o xfce4_panel-groups.lo `test -f 'groups.c' || echo '$(srcdir)/'`groups.c

xfce4_panel-handle.o: handle.c
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xfce4_panel_CFLAGS) $(CFLAGS) -MT xfce4_panel-handle.o -MD -MP -MF "$(DEPDIR)/xfce4_panel-handle.Tpo" \
@am__fastdepCC_TRUE@ -c -o xfce4_panel-handle.o `test -f 'handle.c' || echo '$(srcdir)/'`handle.c; \
@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/xfce4_panel-handle.Tpo" "$(DEPDIR)/xfce4_panel-handle.Po"; \
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/xfce4_panel-handle.Tpo"; exit 1; \
@am__fastdepCC_TRUE@ fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='handle.c' object='xfce4_panel-handle.o' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xfce4_panel-handle.Po' tmpdepfile='$(DEPDIR)/xfce4_panel-handle.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xfce4_panel_CFLAGS) $(CFLAGS) -c -o xfce4_panel-handle.o `test -f 'handle.c' || echo '$(srcdir)/'`handle.c

xfce4_panel-handle.obj: handle.c
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xfce4_panel_CFLAGS) $(CFLAGS) -MT xfce4_panel-handle.obj -MD -MP -MF "$(DEPDIR)/xfce4_panel-handle.Tpo" \
@am__fastdepCC_TRUE@ -c -o xfce4_panel-handle.obj `if test -f 'handle.c'; then $(CYGPATH_W) 'handle.c'; else $(CYGPATH_W) '$(srcdir)/handle.c'; fi`; \
@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/xfce4_panel-handle.Tpo" "$(DEPDIR)/xfce4_panel-handle.Po"; \
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/xfce4_panel-handle.Tpo"; exit 1; \
@am__fastdepCC_TRUE@ fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='handle.c' object='xfce4_panel-handle.obj' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xfce4_panel-handle.Po' tmpdepfile='$(DEPDIR)/xfce4_panel-handle.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xfce4_panel_CFLAGS) $(CFLAGS) -c -o xfce4_panel-handle.obj `if test -f 'handle.c'; then $(CYGPATH_W) 'handle.c'; else $(CYGPATH_W) '$(srcdir)/handle.c'; fi`

xfce4_panel-handle.lo: handle.c
@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xfce4_panel_CFLAGS) $(CFLAGS) -MT xfce4_panel-handle.lo -MD -MP -MF "$(DEPDIR)/xfce4_panel-handle.Tpo" \
@am__fastdepCC_TRUE@ -c -o xfce4_panel-handle.lo `test -f 'handle.c' || echo '$(srcdir)/'`handle.c; \
@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/xfce4_panel-handle.Tpo" "$(DEPDIR)/xfce4_panel-handle.Plo"; \
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/xfce4_panel-handle.Tpo"; exit 1; \
@am__fastdepCC_TRUE@ fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='handle.c' object='xfce4_panel-handle.lo' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xfce4_panel-handle.Plo' tmpdepfile='$(DEPDIR)/xfce4_panel-handle.TPlo' @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xfce4_panel_CFLAGS) $(CFLAGS) -c -o xfce4_panel-handle.lo `test -f 'handle.c' || echo '$(srcdir)/'`handle.c

xfce4_panel-icons.o: icons.c
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xfce4_panel_CFLAGS) $(CFLAGS) -MT xfce4_panel-icons.o -MD -MP -MF "$(DEPDIR)/xfce4_panel-icons.Tpo" \
@am__fastdepCC_TRUE@ -c -o xfce4_panel-icons.o `test -f 'icons.c' || echo '$(srcdir)/'`icons.c; \


+ 0
- 213
panel/handle.c View File

@@ -1,213 +0,0 @@
/* handle.c
*
* Copyright (C) 2002 Jasper Huijsmans (huysmans@users.sourceforge.net)
*
* 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, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#include <config.h>
#include <my_gettext.h>

#include <libxfcegui4/xfce_movehandler.h>
#include <libxfcegui4/xfce_decorbutton.h>

#include "xfce.h"
#include "handle.h"
#include "popup.h" /* to hide popups */
#include "groups.h"
#include "controls_dialog.h"
#include "mcs_client.h"

/* popup menu */
static void edit_prefs(void)
{
mcs_dialog(NULL);
}

static void settings_mgr(void)
{
mcs_dialog("all");
}

static void add_new(void)
{
Control *control;
panel_add_control();
panel_set_position();
control = groups_get_control(settings.num_groups-1);

controls_dialog(control);
}

static void lock_screen(void)
{
exec_cmd("xflock", FALSE);
}

static void exit_panel(void)
{
quit(FALSE);
}

extern void info_panel_dialog(void);

static void do_info(void)
{
info_panel_dialog();
}

static void do_help(void)
{
exec_cmd("xfhelp", FALSE);
}

static GtkItemFactoryEntry panel_items[] = {
{ N_("/XFce Panel"), NULL, NULL, 0, "<Title>" },
{ "/sep", NULL, NULL, 0, "<Separator>" },
{ N_("/Add _new item"), NULL, add_new, 0, "<Item>" },
{ "/sep", NULL, NULL, 0, "<Separator>" },
{ N_("/_Panel settings"), NULL, edit_prefs, 0, "<Item>" },
{ N_("/_Settings manager"), NULL, settings_mgr, 0, "<Item>" },
{ "/sep", NULL, NULL, 0, "<Separator>" },
{ N_("/_About XFce"), NULL, do_info, 0, "<Item>" },
{ N_("/_Help"), NULL, do_help, 0, "<Item>" },
{ "/sep", NULL, NULL, 0, "<Separator>" },
{ N_("/_Lock screen"), NULL, lock_screen, 0, "<Item>" },
{ N_("/E_xit"), NULL, exit_panel, 0, "<Item>" },
};

static GtkMenu *create_handle_menu(void)
{
static GtkMenu *menu = NULL;
GtkItemFactory *ifactory;

if (!menu)
{
ifactory = gtk_item_factory_new(GTK_TYPE_MENU, "<popup>", NULL);

gtk_item_factory_set_translate_func(ifactory,
(GtkTranslateFunc) gettext,
NULL, NULL);
gtk_item_factory_create_items(ifactory, G_N_ELEMENTS(panel_items),
panel_items, NULL);
menu = GTK_MENU(gtk_item_factory_get_widget(ifactory, "<popup>"));
}

return menu;
}

/* the handle */
struct _Handle
{
#if 0
GtkWidget *base;
GtkWidget *box;

GtkWidget *button;
#endif
GtkWidget *handler;
};

static void handle_arrange(Handle * mh)
{
}

static gboolean handler_pressed_cb(GtkWidget *h, GdkEventButton *event,
GtkMenu *menu)
{
hide_current_popup_menu();

if (event->button == 3 ||
(event->button == 1 && event->state & GDK_SHIFT_MASK ))
{
gtk_menu_popup(menu, NULL, NULL, NULL, NULL, event->button, event->time);
return TRUE;
}
/* let default handler run */
return FALSE;
}

static gboolean handler_released_cb(GtkWidget *h, GdkEventButton *event,
gpointer data)
{
gtk_window_get_position(GTK_WINDOW(toplevel), &position.x, &position.y);
/* let default handler run */
return FALSE;
}

Handle *handle_new(int side)
{
/* GtkWidget *im;*/
Handle *mh = g_new(Handle, 1);
GtkMenu *menu;

mh->handler = xfce_movehandler_new(toplevel);
gtk_widget_show(mh->handler);
gtk_widget_set_name(mh->handler, "xfce_panel");

menu = create_handle_menu();
g_signal_connect(mh->handler, "button-press-event",
G_CALLBACK(handler_pressed_cb), menu);

g_signal_connect(mh->handler, "button-release-event",
G_CALLBACK(handler_released_cb), NULL);

/* protect against destruction when removed from box
g_object_ref(mh->button);*/
g_object_ref(mh->handler);

/* mh->box = NULL;*/

handle_set_size(mh, settings.size);
handle_arrange(mh);

return mh;
}

void handle_pack(Handle * mh, GtkBox *box)
{
gtk_box_pack_start(box, mh->handler, FALSE, FALSE, 0);
}

void handle_unpack(Handle * mh, GtkContainer * container)
{
gtk_container_remove(container, mh->handler);
}

void handle_set_size(Handle * mh, int size)
{
int h = top_height[size];
int w = icon_size[size] + 2*border_width;
gboolean vertical = settings.orientation == VERTICAL;

if(vertical)
gtk_widget_set_size_request(mh->handler, w, h);
else
gtk_widget_set_size_request(mh->handler, h, w);

/* gtk_widget_set_size_request(mh->button, h, h);*/
}

void handle_set_popup_position(Handle *mh)
{
handle_arrange(mh);
}



panel/handle.h → panel/info.h View File

@@ -1,6 +1,6 @@
/* handle.h
*
* Copyright (C) 2002 Jasper Huijsmans (huysmans@users.sourceforge.net)
/* item_dialog.h
*
* Copyright (C) Jasper Huijsmans (huysmans@users.sourceforge.net)
*
* 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
@@ -10,29 +10,16 @@
* 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.
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#ifndef __XFCE_HANDLE_H__
#define __XFCE_HANDLE_H__

#include "global.h"

typedef struct _Handle Handle;

Handle *handle_new(int side);

void handle_pack(Handle *mh, GtkBox *box);

void handle_unpack(Handle *mh, GtkContainer *container);

void handle_set_size(Handle *mh, int size);
*/

void handle_set_popup_position(Handle *mh);
#ifndef __XFCE_INFO_H
#define __XFCE_INFO_H

#endif /* __XFCE_HANDLE_H__ */
void info_panel_dialog(void);

#endif /* __XFCE_INFO_H */

+ 161
- 22
panel/panel.c View File

@@ -25,8 +25,10 @@

#include "xfce.h"
#include "groups.h"
#include "controls.h"
#include "controls_dialog.h"
#include "popup.h"
#include "handle.h"
#include "info.h"
#include "settings.h"
#include "mcs_client.h"

@@ -34,6 +36,16 @@
Settings settings;
Position position;

GtkWidget *toplevel = NULL;

static GtkWidget *main_frame;
static GtkWidget *panel_box; /* contains all panel components */
static GtkWidget *handles[2];
static GtkWidget *group_box;

/* lock settings update when panel is not yet (re)build */
static gboolean panel_created = FALSE;

/* Panel dimensions
* ----------------
* These sizes are exported to all other modules.
@@ -44,25 +56,157 @@ int icon_size[] = { 24, 30, 45, 60 };

int border_width = 4;

int top_height[] = { 14, 16, 16, 18 };
int top_height[] = { 14, 16, 18, 20 };

int popup_icon_size[] = { 20, 24, 24, 32 };

/* Panel framework
* ---------------
/* Move handle menu
* ----------------
*/
GtkWidget *toplevel = NULL;
static void edit_prefs(void)
{
mcs_dialog(NULL);
}

static GtkWidget *main_frame;
static GtkWidget *panel_box; /* contains all panel components */
Handle *handles[2];
static GtkWidget *group_box;
static void settings_mgr(void)
{
mcs_dialog("all");
}

/* lock settings update when panel is not yet (re)build */
static gboolean panel_created = FALSE;
static void add_new(void)
{
Control *control;
panel_add_control();
panel_set_position();
control = groups_get_control(settings.num_groups-1);

controls_dialog(control);
}

static void lock_screen(void)
{
exec_cmd("xflock", FALSE);
}

static void exit_panel(void)
{
quit(FALSE);
}

/* Callbacks
* ---------
static void do_info(void)
{
info_panel_dialog();
}

static void do_help(void)
{
exec_cmd("xfhelp", FALSE);
}

static GtkItemFactoryEntry panel_items[] = {
{ N_("/XFce Panel"), NULL, NULL, 0, "<Title>" },
{ "/sep", NULL, NULL, 0, "<Separator>" },
{ N_("/Add _new item"), NULL, add_new, 0, "<Item>" },
{ "/sep", NULL, NULL, 0, "<Separator>" },
{ N_("/_Panel settings"), NULL, edit_prefs, 0, "<Item>" },
{ N_("/_Settings manager"), NULL, settings_mgr, 0, "<Item>" },
{ "/sep", NULL, NULL, 0, "<Separator>" },
{ N_("/_About XFce"), NULL, do_info, 0, "<Item>" },
{ N_("/_Help"), NULL, do_help, 0, "<Item>" },
{ "/sep", NULL, NULL, 0, "<Separator>" },
{ N_("/_Lock screen"), NULL, lock_screen, 0, "<Item>" },
{ N_("/E_xit"), NULL, exit_panel, 0, "<Item>" },
};

static GtkMenu *create_handle_menu(void)
{
static GtkMenu *menu = NULL;
GtkItemFactory *ifactory;

if (!menu)
{
ifactory = gtk_item_factory_new(GTK_TYPE_MENU, "<popup>", NULL);

gtk_item_factory_set_translate_func(ifactory,
(GtkTranslateFunc) gettext,
NULL, NULL);
gtk_item_factory_create_items(ifactory, G_N_ELEMENTS(panel_items),
panel_items, NULL);
menu = GTK_MENU(gtk_item_factory_get_widget(ifactory, "<popup>"));
}

return menu;
}

/* Move handles
* ------------
*/
static void handle_set_size(GtkWidget * mh, int size)
{
int h = top_height[size];
int w = icon_size[size] + 2*border_width;
gboolean vertical = settings.orientation == VERTICAL;

if(vertical)
gtk_widget_set_size_request(mh, w, h);
else
gtk_widget_set_size_request(mh, h, w);
}

static gboolean handler_pressed_cb(GtkWidget *h, GdkEventButton *event,
GtkMenu *menu)
{
hide_current_popup_menu();

if (event->button == 3 ||
(event->button == 1 && event->state & GDK_SHIFT_MASK ))
{
gtk_menu_popup(menu, NULL, NULL, NULL, NULL, event->button, event->time);
return TRUE;
}
/* let default handler run */
return FALSE;
}

static gboolean handler_released_cb(GtkWidget *h, GdkEventButton *event,
gpointer data)
{
gtk_window_get_position(GTK_WINDOW(toplevel), &position.x, &position.y);
/* let default handler run */
return FALSE;
}

GtkWidget *handle_new(void)
{
GtkWidget *mh;
GtkMenu *menu;

mh = xfce_movehandler_new(toplevel);
gtk_widget_show(mh);
gtk_widget_set_name(mh, "xfce_panel");

menu = create_handle_menu();
g_signal_connect(mh, "button-press-event",
G_CALLBACK(handler_pressed_cb), menu);

g_signal_connect(mh, "button-release-event",
G_CALLBACK(handler_released_cb), NULL);

/* protect against destruction when removed from box */
g_object_ref(mh);

handle_set_size(mh, settings.size);

return mh;
}

/* Panel framework
* ---------------
*/
static gboolean panel_delete_cb(GtkWidget * window, GdkEvent * ev,
gpointer data)
@@ -72,9 +216,6 @@ static gboolean panel_delete_cb(GtkWidget * window, GdkEvent * ev,
return TRUE;
}

/* Creation and destruction
* ------------------------
*/
static GtkWidget *create_panel_window(void)
{
GtkWidget *w;
@@ -136,14 +277,14 @@ static void create_panel_framework(void)
gtk_widget_show(group_box);

/* create handles */
handles[LEFT] = handle_new(LEFT);
handles[RIGHT] = handle_new(RIGHT);
handles[LEFT] = handle_new();
handles[RIGHT] = handle_new();
/* pack the widgets into the main frame */
gtk_container_add(GTK_CONTAINER(main_frame), panel_box);
handle_pack(handles[LEFT], GTK_BOX(panel_box));
gtk_box_pack_start(GTK_BOX(panel_box), handles[LEFT], FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(panel_box), group_box, TRUE, TRUE, 0);
handle_pack(handles[RIGHT], GTK_BOX(panel_box));
gtk_box_pack_start(GTK_BOX(panel_box), handles[RIGHT], FALSE, FALSE, 0);
}

void panel_cleanup(void)
@@ -268,8 +409,6 @@ void panel_set_popup_position(int position)
hide_current_popup_menu();

groups_set_popup_position(position);
handle_set_popup_position(handles[LEFT]);
handle_set_popup_position(handles[RIGHT]);

/* this is necessary to get the right proportions */
panel_set_size(settings.size);


Loading…
Cancel
Save