Changeset a5d878cdc4363738db31c771dace7c14c4c75d3b

Show
Ignore:
Timestamp:
11/28/10 12:31:20 (2 years ago)
Author:
Nikita Zlobin <cook60020tmp@…>
Children:
e8f9b6b02ee1b13c36af920f47f12b3c129cd498
Parents:
9e0b65484828b2b33db73d5324959df28b8d120d
git-author:
Nikita Zlobin <cook60020tmp@mail.ru> / 2010-11-28T15:14:43Z+0500
git-committer:
Nikita Zlobin <cook60020tmp@mail.ru> / 2010-11-28T15:31:20Z+0500
Message:

gladish: Move help text from code to separate text file

Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • gui/graph_view.c

    ref3a389 ra5d878c  
    3232#include "../proxies/room_proxy.h" 
    3333#include "../common/catdup.h" 
     34#include "../common/file.h" 
    3435 
    3536struct graph_view 
     
    5253GtkWidget * g_view_label; 
    5354 
    54 const char * g_view_label_text = 
    55   "If you've started ladish for the first time, you should:\n\n" 
    56   " 1. Create a new studio (in the menu, Studio -> New Studio)\n" 
    57   " 2. Configure JACK (in the menu, Tools -> Configure JACK)\n" 
    58   " 3. Start the studio (in the menu, Studio -> Start Studio)\n" 
    59   " 4. Start apps (in the menu, Application -> Run)\n" 
    60   " 5. Connect their ports by click & drag on canvas\n" 
    61   " 6. Save the studio (in the menu, Studio -> Save Studio)\n"; 
     55const char * g_view_label_text = NULL; 
    6256 
    6357void view_init(void) 
    6458{ 
     59  g_view_label_text = read_file_contents(DATA_DIR "/help/default.txt"); 
     60 
    6561  g_main_scrolledwin = GTK_SCROLLED_WINDOW(get_gtk_builder_widget("main_scrolledwin")); 
    6662  INIT_LIST_HEAD(&g_views); 
  • wscript

    r9e0b654 ra5d878c  
    547547        # GtkBuilder UI definitions (XML) 
    548548        bld.install_files('${DATA_DIR}', 'gui/gladish.ui') 
    549      
     549 
     550        # Help text 
     551        bld.install_files('${DATA_DIR}/help', 'gui/help/default.txt') 
     552 
    550553    bld.install_files('${PREFIX}/bin', 'ladish_control', chmod=0755) 
    551554