summaryrefslogtreecommitdiff
path: root/mate-panel/panel-action-button.c
diff options
context:
space:
mode:
Diffstat (limited to 'mate-panel/panel-action-button.c')
-rw-r--r--mate-panel/panel-action-button.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mate-panel/panel-action-button.c b/mate-panel/panel-action-button.c
index 30e03541..67be0f78 100644
--- a/mate-panel/panel-action-button.c
+++ b/mate-panel/panel-action-button.c
@@ -713,18 +713,16 @@ panel_action_button_load (PanelActionButtonType type,
const char *id)
{
PanelActionButton *button;
- PanelObjectType object_type;
g_return_if_fail (panel != NULL);
button = g_object_new (PANEL_TYPE_ACTION_BUTTON, "action-type", type, NULL);
- object_type = PANEL_OBJECT_ACTION;
button->priv->info = mate_panel_applet_register (GTK_WIDGET (button),
NULL, NULL,
panel, locked, position,
- exactpos, object_type, id);
+ exactpos, PANEL_OBJECT_ACTION, id);
if (!button->priv->info) {
gtk_widget_destroy (GTK_WIDGET (button));
return;