5
* Copyright 2010 Alexander Petukhov <devel(at)apetukhov.ru>
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (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.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
30
#include <geanyplugin.h>
32
extern GeanyFunctions *geany_functions;
33
extern GeanyData *geany_data;
38
GtkWidget *tab_target = NULL;
39
GtkWidget *tab_breaks = NULL;
40
GtkWidget *tab_watch = NULL;
41
GtkWidget *tab_autos = NULL;
42
GtkWidget *tab_call_stack = NULL;
43
GtkWidget *tab_terminal = NULL;
44
GtkWidget *tab_messages = NULL;
47
* searches ID for a given widget
49
* tab - widget to search an id for
51
tab_id tabs_get_tab_id(GtkWidget* tab)
53
tab_id id = TID_TARGET;
54
if (tab_target == tab)
58
else if (tab_breaks == tab)
62
else if (tab_watch == tab)
66
else if (tab_autos == tab)
70
else if (tab_call_stack == tab)
74
else if (tab_terminal == tab)
78
else if (tab_messages == tab)
87
* searches a widget for a given ID
89
* id - ID to search a widget for
91
GtkWidget* tabs_get_tab(tab_id id)
93
GtkWidget *tab = NULL;
109
tab = tab_call_stack;
122
* searches a label for a given ID
124
* id - ID to search a label for
126
const gchar* tabs_get_label(tab_id id)
128
const gchar *label = NULL;
135
label = _("Breakpoints");
144
label = _("Call Stack");
147
label = _("Debug Terminal");
150
label = _("Debugger Messages");