Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
karudu
/
C-editor
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Pipelines
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f1a3efb5
authored
Mar 04, 2022
by
karudu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
04.03 - Avamine/salvestamine, scrollbar
parent
40571030
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
ceditor.c
ceditor.c
View file @
f1a3efb5
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
/* TODO
/* TODO
Nimeta salvestamine
Nimeta salvestamine
Scrollbar
*/
*/
#ifdef SOURCEVIEW
#ifdef SOURCEVIEW
...
@@ -137,6 +136,12 @@ int main(int argc, char **argv)
...
@@ -137,6 +136,12 @@ int main(int argc, char **argv)
// Teksti puhver
// Teksti puhver
GtkTextBuffer
*
Puhver
=
gtk_text_view_get_buffer
(
GTK_TEXT_VIEW
(
View
));
// Tekstiakna teksti puhver
GtkTextBuffer
*
Puhver
=
gtk_text_view_get_buffer
(
GTK_TEXT_VIEW
(
View
));
// Tekstiakna teksti puhver
GtkWidget
*
ScrollWindow
=
gtk_scrolled_window_new
(
NULL
,
NULL
);
//tekitame scrollitava akna
gtk_container_add
(
GTK_CONTAINER
(
ScrollWindow
),
View
);
//paigutame tesktiakna scrollitavasse aknasse
gtk_scrolled_window_set_policy
(
GTK_SCROLLED_WINDOW
(
ScrollWindow
),
GTK_POLICY_AUTOMATIC
,
GTK_POLICY_AUTOMATIC
);
gtk_scrolled_window_set_shadow_type
(
GTK_SCROLLED_WINDOW
(
ScrollWindow
),
GTK_SHADOW_ETCHED_IN
);
// Menu bar
// Menu bar
GtkWidget
*
MenuBar
=
gtk_menu_bar_new
();
// Loo menu bar
GtkWidget
*
MenuBar
=
gtk_menu_bar_new
();
// Loo menu bar
GtkWidget
*
FailMenuNupp
=
gtk_menu_item_new_with_label
(
"Fail"
);
// Fail
GtkWidget
*
FailMenuNupp
=
gtk_menu_item_new_with_label
(
"Fail"
);
// Fail
...
@@ -166,7 +171,7 @@ int main(int argc, char **argv)
...
@@ -166,7 +171,7 @@ int main(int argc, char **argv)
// Pane menubar box'i
// Pane menubar box'i
gtk_box_pack_start
(
GTK_BOX
(
Box
),
MenuBar
,
FALSE
,
FALSE
,
0
);
gtk_box_pack_start
(
GTK_BOX
(
Box
),
MenuBar
,
FALSE
,
FALSE
,
0
);
gtk_box_pack_start
(
GTK_BOX
(
Box
),
Vie
w
,
TRUE
,
TRUE
,
0
);
// Pane tekstiaken box'i
gtk_box_pack_start
(
GTK_BOX
(
Box
),
ScrollWindo
w
,
TRUE
,
TRUE
,
0
);
// Pane tekstiaken box'i
// Status bar
// Status bar
GtkWidget
*
StatusBar
=
gtk_statusbar_new
();
// Loo status bar
GtkWidget
*
StatusBar
=
gtk_statusbar_new
();
// Loo status bar
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment