Commit f1a3efb5 by karudu

04.03 - Avamine/salvestamine, scrollbar

parent 40571030
Showing with 7 additions and 2 deletions
......@@ -5,7 +5,6 @@
/* TODO
Nimeta salvestamine
Scrollbar
*/
#ifdef SOURCEVIEW
......@@ -137,6 +136,12 @@ int main(int argc, char **argv)
// 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
GtkWidget *MenuBar = gtk_menu_bar_new(); // Loo menu bar
GtkWidget *FailMenuNupp = gtk_menu_item_new_with_label("Fail"); // Fail
......@@ -166,7 +171,7 @@ int main(int argc, char **argv)
// Pane menubar box'i
gtk_box_pack_start(GTK_BOX(Box), MenuBar, FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(Box), View, TRUE, TRUE, 0); // Pane tekstiaken box'i
gtk_box_pack_start(GTK_BOX(Box), ScrollWindow, TRUE, TRUE, 0); // Pane tekstiaken box'i
// Status bar
GtkWidget *StatusBar = gtk_statusbar_new(); // Loo status bar
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment