2
* This file is a part of the Cairo-Dock project
4
* Copyright : (C) see the 'copyright' file.
5
* E-mail : see the 'copyright' file.
7
* This program is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License
9
* as published by the Free Software Foundation; either version 3
10
* of the License, or (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 2 -*- */
22
** Login : <ctaf42@gmail.com>
23
** Started on Fri Nov 30 05:31:31 2007 GESTES Cedric
27
** - Cedric GESTES <ctaf42@gmail.com>
29
** Copyright (C) 2007 GESTES Cedric
30
** This program is free software; you can redistribute it and/or modify
31
** it under the terms of the GNU General Public License as published by
32
** the Free Software Foundation; either version 3 of the License, or
33
** (at your option) any later version.
35
** This program is distributed in the hope that it will be useful,
36
** but WITHOUT ANY WARRANTY; without even the implied warranty of
37
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38
** GNU General Public License for more details.
40
** You should have received a copy of the GNU General Public License
41
** along with this program; if not, write to the Free Software
42
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
51
#include "terminal-init.h"
52
#include "terminal-callbacks.h"
53
#include "terminal-struct.h"
54
#include "terminal-widget.h"
55
#include "terminal-menu-functions.h"
60
CD_APPLET_ON_CLICK_BEGIN
63
terminal_build_and_show_tab ();
65
cairo_dock_show_desklet (myDesklet);
66
else if (myData.dialog)
67
cairo_dock_unhide_dialog(myData.dialog);
69
CD_APPLET_ON_CLICK_END
72
CD_APPLET_ON_MIDDLE_CLICK_BEGIN
77
cairo_dock_hide_dialog (myData.dialog);
80
CD_APPLET_ON_MIDDLE_CLICK_END
84
static void on_new_tab(GtkMenuItem *menu_item, gpointer *data)
88
static void on_rename_tab(GtkMenuItem *menu_item, gpointer *data)
90
terminal_rename_tab (NULL);
92
static void on_close_tab(GtkMenuItem *menu_item, gpointer *data)
94
terminal_close_tab (NULL);
96
CD_APPLET_ON_BUILD_MENU_BEGIN
98
GtkWidget *pSubMenu = CD_APPLET_CREATE_MY_SUB_MENU ();
99
CD_APPLET_ADD_IN_MENU(D_("New Tab"), on_new_tab, pSubMenu);
100
CD_APPLET_ADD_IN_MENU(D_("Rename current Tab"), on_rename_tab, pSubMenu);
101
CD_APPLET_ADD_IN_MENU(D_("Close current Tab"), on_close_tab, pSubMenu);
102
CD_APPLET_ADD_SEPARATOR(pSubMenu);
103
CD_APPLET_ADD_ABOUT_IN_MENU (pSubMenu);
105
CD_APPLET_ON_BUILD_MENU_END