The panel applet helper now knows the panel's orientation
This commit is contained in:
parent
a19b9a8c39
commit
e487a22d13
|
@ -38,6 +38,7 @@ typedef struct _PanelAppletHelper
|
|||
Panel * panel;
|
||||
PanelAppletType type;
|
||||
GtkIconSize icon_size;
|
||||
GtkOrientation orientation;
|
||||
char const * (*config_get)(Panel * panel, char const * section,
|
||||
char const * variable);
|
||||
int (*config_set)(Panel * panel, char const * section,
|
||||
|
|
|
@ -169,6 +169,7 @@ Panel * panel_new(PanelPrefs const * prefs)
|
|||
panel->top_helper.panel = panel;
|
||||
panel->top_helper.type = PANEL_APPLET_TYPE_NORMAL;
|
||||
panel->top_helper.icon_size = GTK_ICON_SIZE_LARGE_TOOLBAR;
|
||||
panel->top_helper.orientation = GTK_ORIENTATION_HORIZONTAL;
|
||||
panel->top_helper.config_get = _panel_helper_config_get;
|
||||
panel->top_helper.config_set = _panel_helper_config_set;
|
||||
panel->top_helper.error = _panel_helper_error;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* $Id$ */
|
||||
/* Copyright (c) 2012-2013 Pierre Pronchery <khorben@defora.org> */
|
||||
/* Copyright (c) 2012-2014 Pierre Pronchery <khorben@defora.org> */
|
||||
/* This file is part of DeforaOS Desktop Panel */
|
||||
/* 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
|
||||
|
@ -254,6 +254,7 @@ static void _helper_init(PanelAppletHelper * helper, Panel * panel,
|
|||
helper->panel = panel;
|
||||
helper->type = type;
|
||||
helper->icon_size = iconsize;
|
||||
helper->orientation = GTK_ORIENTATION_HORIZONTAL;
|
||||
helper->config_get = _panel_helper_config_get;
|
||||
helper->config_set = _panel_helper_config_set;
|
||||
helper->error = _panel_helper_error;
|
||||
|
|
|
@ -109,6 +109,7 @@ static int _wifibrowser(char const * configfile, char const * interface)
|
|||
helper.panel = &panel;
|
||||
helper.type = PANEL_APPLET_TYPE_NORMAL;
|
||||
helper.icon_size = GTK_ICON_SIZE_MENU;
|
||||
helper.orientation = GTK_ORIENTATION_HORIZONTAL;
|
||||
helper.error = _error;
|
||||
helper.config_get = _helper_config_get;
|
||||
if((wpa = _wpa_init(&helper, &widget)) == NULL)
|
||||
|
|
Loading…
Reference in New Issue
Block a user