Skip to content

Commit adc289d

Browse files
author
joeun
committed
update
1 parent 0ed2d9c commit adc289d

File tree

5 files changed

+72
-95
lines changed

5 files changed

+72
-95
lines changed

src/glade/bxr_plover

264 Bytes
Binary file not shown.

src/glade/main.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ typedef struct Data_storage
2626
{
2727
char fpath[300]; //파일 경로
2828
char fname[20]; //파일 이름
29-
int cnt; //민감정보 총 개수
29+
int cnt; //민감정보 총 개수(어디다 둬야할까...)
3030
int fsize; //파일 크기
3131
char stat; //파일 상태
3232

@@ -44,8 +44,16 @@ int data_flag = 1; //어떤종류의 민감정보인지 확인하기위한 flag
4444
GtkWidget *detect_window,
4545
*setting_window;
4646

47+
GtkScrolledWindow *d_scrolledwindow;
48+
4749
GtkEntry *d_detect_entry;
4850

51+
GtkTreeView d_treeview;
52+
53+
GtkTreeSelection d_treeselection;
54+
55+
GtkListStore *d_liststore;
56+
4957
void e_enroll_btn_clicked (GtkButton *e_enroll_btn, gpointer *data);
5058

5159
void m_window_destroy();
@@ -631,6 +639,8 @@ int main (int argc, char *argv[])
631639
enrollment_window = GTK_WIDGET(gtk_builder_get_object(builder, "enrollment_window"));
632640
detect_window = GTK_WIDGET(gtk_builder_get_object(builder, "detect_window"));
633641
setting_window = GTK_WIDGET(gtk_builder_get_object(builder, "setting_window"));
642+
d_scrolledwindow = GTK_SCROLLED_WINDOW(gtk_builder_get_object(builder, "d_scrolledwindow"));
643+
d_liststore = GTK_LIST_STORE(gtk_builder_get_object(builder, "d_liststore"));
634644

635645

636646
//닫기x 버튼을 hide로 바꾸기//

src/glade/main.glade

Lines changed: 31 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -2,54 +2,24 @@
22
<!-- Generated with glade 3.22.1 -->
33
<interface>
44
<requires lib="gtk+" version="3.20"/>
5-
<object class="GtkListStore" id="detect_result_listbox">
5+
<object class="GtkListStore" id="d_liststore">
66
<columns>
77
<!-- column-name 번호 -->
8-
<column type="gint"/>
9-
<!-- column-name 종류 -->
10-
<column type="gchar"/>
11-
<!-- column-name 개수 -->
12-
<column type="gint"/>
8+
<column type="번호"/>
9+
<!-- column-name 파일 이름 -->
10+
<column type="파일 이름"/>
11+
<!-- column-name 민감정보 종류 -->
12+
<column type="민감정보 종류"/>
1313
<!-- column-name 위치 -->
14-
<column type="gchararray"/>
14+
<column type="위치"/>
15+
<!-- column-name 상태 -->
16+
<column type="상태"/>
17+
<!-- column-name 파일 크기 -->
18+
<column type="파일 크기"/>
1519
</columns>
1620
<data>
17-
<row>
18-
<col id="0">1</col>
19-
<col id="1"/>
20-
<col id="2">0</col>
21-
<col id="3" translatable="yes"/>
22-
</row>
23-
<row>
24-
<col id="0">2</col>
25-
<col id="1"/>
26-
<col id="2">0</col>
27-
<col id="3" translatable="yes"/>
28-
</row>
29-
<row>
30-
<col id="0">3</col>
31-
<col id="1"/>
32-
<col id="2">0</col>
33-
<col id="3" translatable="yes"/>
34-
</row>
35-
<row>
36-
<col id="0">4</col>
37-
<col id="1"/>
38-
<col id="2">0</col>
39-
<col id="3" translatable="yes"/>
40-
</row>
41-
<row>
42-
<col id="0">5</col>
43-
<col id="1"/>
44-
<col id="2">0</col>
45-
<col id="3" translatable="yes"/>
46-
</row>
47-
<row>
48-
<col id="0">0</col>
49-
<col id="1"/>
50-
<col id="2">0</col>
51-
<col id="3" translatable="yes"/>
52-
</row>
21+
<row/>
22+
<row/>
5323
</data>
5424
</object>
5525
<object class="GtkWindow" id="detect_window">
@@ -156,13 +126,27 @@
156126
<property name="visible">True</property>
157127
<property name="can_focus">False</property>
158128
<child>
159-
<object class="GtkTreeView" id="d_treeview">
129+
<object class="GtkScrolledWindow" id="d_scrolledwindow">
160130
<property name="width_request">640</property>
161131
<property name="height_request">230</property>
162132
<property name="visible">True</property>
163-
<property name="can_focus">False</property>
164-
<child internal-child="selection">
165-
<object class="GtkTreeSelection"/>
133+
<property name="can_focus">True</property>
134+
<property name="shadow_type">in</property>
135+
<child>
136+
<object class="GtkTreeView" id="d_treeview">
137+
<property name="visible">True</property>
138+
<property name="can_focus">True</property>
139+
<property name="model">d_liststore</property>
140+
<property name="enable_search">False</property>
141+
<property name="search_column">20</property>
142+
<property name="show_expanders">False</property>
143+
<child internal-child="selection">
144+
<object class="GtkTreeSelection" id="d_treeselection">
145+
<signal name="changed" handler="d_treeselection_changed" object="d_liststore" swapped="no"/>
146+
<signal name="notify" handler="d_treeselection_notify" object="d_liststore" swapped="no"/>
147+
</object>
148+
</child>
149+
</object>
166150
</child>
167151
</object>
168152
<packing>

src/glade/main.glade~

100644100755
Lines changed: 30 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -2,54 +2,24 @@
22
<!-- Generated with glade 3.22.1 -->
33
<interface>
44
<requires lib="gtk+" version="3.20"/>
5-
<object class="GtkListStore" id="detect_result_listbox">
5+
<object class="GtkListStore" id="d_liststore">
66
<columns>
77
<!-- column-name 번호 -->
8-
<column type="gint"/>
9-
<!-- column-name 종류 -->
10-
<column type="gchar"/>
11-
<!-- column-name 개수 -->
12-
<column type="gint"/>
8+
<column type="번호"/>
9+
<!-- column-name 파일 이름 -->
10+
<column type="파일 이름"/>
11+
<!-- column-name 민감정보 종류 -->
12+
<column type="민감정보 종류"/>
1313
<!-- column-name 위치 -->
14-
<column type="gchararray"/>
14+
<column type="위치"/>
15+
<!-- column-name 상태 -->
16+
<column type="상태"/>
17+
<!-- column-name 파일 크기 -->
18+
<column type="파일 크기"/>
1519
</columns>
1620
<data>
17-
<row>
18-
<col id="0">1</col>
19-
<col id="1"/>
20-
<col id="2">0</col>
21-
<col id="3" translatable="yes"/>
22-
</row>
23-
<row>
24-
<col id="0">2</col>
25-
<col id="1"/>
26-
<col id="2">0</col>
27-
<col id="3" translatable="yes"/>
28-
</row>
29-
<row>
30-
<col id="0">3</col>
31-
<col id="1"/>
32-
<col id="2">0</col>
33-
<col id="3" translatable="yes"/>
34-
</row>
35-
<row>
36-
<col id="0">4</col>
37-
<col id="1"/>
38-
<col id="2">0</col>
39-
<col id="3" translatable="yes"/>
40-
</row>
41-
<row>
42-
<col id="0">5</col>
43-
<col id="1"/>
44-
<col id="2">0</col>
45-
<col id="3" translatable="yes"/>
46-
</row>
47-
<row>
48-
<col id="0">0</col>
49-
<col id="1"/>
50-
<col id="2">0</col>
51-
<col id="3" translatable="yes"/>
52-
</row>
21+
<row/>
22+
<row/>
5323
</data>
5424
</object>
5525
<object class="GtkWindow" id="detect_window">
@@ -156,13 +126,26 @@
156126
<property name="visible">True</property>
157127
<property name="can_focus">False</property>
158128
<child>
159-
<object class="GtkTreeView" id="d_treeview">
129+
<object class="GtkScrolledWindow" id="d_scrolledwindow">
160130
<property name="width_request">640</property>
161131
<property name="height_request">230</property>
162132
<property name="visible">True</property>
163-
<property name="can_focus">False</property>
164-
<child internal-child="selection">
165-
<object class="GtkTreeSelection"/>
133+
<property name="can_focus">True</property>
134+
<property name="shadow_type">in</property>
135+
<child>
136+
<object class="GtkTreeView" id="d_treeview">
137+
<property name="visible">True</property>
138+
<property name="can_focus">True</property>
139+
<property name="model">d_liststore</property>
140+
<property name="search_column">20</property>
141+
<property name="show_expanders">False</property>
142+
<child internal-child="selection">
143+
<object class="GtkTreeSelection" id="d_treeselection">
144+
<signal name="changed" handler="d_treeselection_changed" object="d_liststore" swapped="no"/>
145+
<signal name="notify" handler="d_treeselection_notify" object="d_liststore" swapped="no"/>
146+
</object>
147+
</child>
148+
</object>
166149
</child>
167150
</object>
168151
<packing>

src/glade/main.o

100644100755
File mode changed.

0 commit comments

Comments
 (0)