Implement support for listing and merging branches.
[anjuta-git-plugin.git] / plugins / git / git-branch-combo-model.h
blob7b2b9fbbc0b33daa78e1a2936e405a08362b622b
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 * anjuta
4 * Copyright (C) James Liggett 2008 <jrliggett@cox.net>
5 *
6 * anjuta is free software.
7 *
8 * You may redistribute it and/or modify it under the terms of the
9 * GNU General Public License, as published by the Free Software
10 * Foundation; either version 2 of the License, or (at your option)
11 * any later version.
13 * anjuta is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16 * See the GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with anjuta. If not, write to:
20 * The Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor
22 * Boston, MA 02110-1301, USA.
25 #ifndef _GIT_BRANCH_COMBO_MODEL_H
26 #define _GIT_BRANCH_COMBO_MODEL_H
28 #include <gtk/gtk.h>
29 #include <glade/glade.h>
30 #include "git-branch.h"
31 #include "plugin.h"
33 typedef struct
35 GtkListStore *model;
36 GtkComboBox *combo_box;
37 GladeXML *gxml; /* Seems redundant, but we don't know what the combo box
38 * is called in the glade file. */
39 Git *plugin;
40 } GitBranchComboData;
42 GitBranchComboData *git_branch_combo_data_new (GtkListStore *model,
43 GtkComboBox *combo_box,
44 GladeXML *gxml, Git *plugin);
45 void git_branch_combo_data_free (GitBranchComboData *data);
46 GtkListStore *git_branch_combo_model_new (void);
47 void git_branch_combo_model_setup_widget (GtkWidget *widget);
48 void git_branch_combo_model_append (GtkListStore *model, GitBranch *branch);
49 gchar *git_branch_combo_model_get_branch (GtkListStore *model,
50 GtkTreeIter *iter);
52 #endif