-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsection_popup.h
executable file
·39 lines (29 loc) · 1.23 KB
/
section_popup.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// section_popup.h
// Copyright 2014 Michael Rajotte <[email protected]>
// For changing and setting which category a item belongs to.
typedef struct _IntrackCategories {
GtkWidget *catContainer, *catTree;
GtkWidget *mainWindow; // The main program widget window
GtkWidget *applyButton;
GtkWidget *parentTree;
gchar *itemCode;
gchar *selectedSection, *selectedSectionName;
}IntrackCategories;
enum {
SECTION_NAME,
ID,
SECTION_COLUMNS
};
void sectionPopup(GtkWidget *, gchar *, GtkWidget *);
static void closeWindow(GtkWidget *, IntrackCategories *);
static void catFreeMemory(GtkWidget *, IntrackCategories *);
static void changeSections(GtkWidget *, IntrackCategories *);
static void noSectionConfirm(GtkWidget *, IntrackCategories *);
static void updateParentTree(IntrackCategories *);
static void parentTreeGetRow(GtkTreeRowReference *, IntrackCategories *);
static void setupSectionTree(IntrackCategories *);
static void getSections(IntrackCategories *);
static int pullSections(GtkListStore *);
static gboolean treeButtonPress(GtkWidget *, GdkEventButton *, IntrackCategories *);
static gboolean keyPressSelection(gpointer);
static gboolean treeKeyPress(GtkWidget *, GdkEventKey *, IntrackCategories *);