Skip to content

Commit

Permalink
Removed obsolete compatibility code
Browse files Browse the repository at this point in the history
  • Loading branch information
Gymnasiast authored and infirit committed Aug 29, 2015
1 parent f22c5a7 commit 9d76273
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
4 changes: 0 additions & 4 deletions mate-panel/applet.c
Expand Up @@ -67,8 +67,6 @@ mate_panel_applet_set_dnd_enabled (AppletInfo *info,
break;
case PANEL_OBJECT_APPLET:
break;
case PANEL_OBJECT_LOGOUT:
case PANEL_OBJECT_LOCK:
case PANEL_OBJECT_ACTION:
panel_action_button_set_dnd_enabled (PANEL_ACTION_BUTTON (info->widget),
dnd_enabled);
Expand Down Expand Up @@ -268,8 +266,6 @@ applet_callback_callback (GtkWidget *widget,
PANEL_MENU_BUTTON (menu->info->widget), menu->name);
break;
case PANEL_OBJECT_ACTION:
case PANEL_OBJECT_LOGOUT:
case PANEL_OBJECT_LOCK:
panel_action_button_invoke_menu (
PANEL_ACTION_BUTTON (menu->info->widget), menu->name);
break;
Expand Down
3 changes: 0 additions & 3 deletions mate-panel/main.c
Expand Up @@ -40,16 +40,13 @@
GSList *panels = NULL;
GSList *panel_list = NULL;

static char* deprecated_profile;
static char* layout;
static gboolean replace = FALSE;
static gboolean reset = FALSE;
static gboolean run_dialog = FALSE;

static const GOptionEntry options[] = {
{ "replace", 0, 0, G_OPTION_ARG_NONE, &replace, N_("Replace a currently running panel"), NULL },
/* keep this for compatibilty with old MATE < 2.10 */
{ "profile", 0, G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_STRING, &deprecated_profile, NULL, NULL },
/* this feature was request in #mate irc channel */
{ "reset", 0, 0, G_OPTION_ARG_NONE, &reset, N_("Reset the panel configuration to default"), NULL },
/* open run dialog */
Expand Down
4 changes: 1 addition & 3 deletions mate-panel/panel-action-button.c
Expand Up @@ -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;
Expand Down

0 comments on commit 9d76273

Please sign in to comment.