~ubuntu-branches/ubuntu/karmic/isomaster/karmic

« back to all changes in this revision

Viewing changes to settings.h

  • Committer: Bazaar Package Importer
  • Author(s): David Johnson
  • Date: 2007-10-13 22:25:46 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20071013222546-siikcd93dzeafwj0
Tags: 1.1-1
* New upstream release
* Now suggest 'mousepad' package
* Update menu file for section changes
* Fix rules file to not ignore errors from 'make clean'

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#define window_h
3
3
 
4
4
#include <stdbool.h>
5
 
#include "iniparser-2.15/src/iniparser.h"
 
5
#include "iniparser-2.17/src/iniparser.h"
6
6
 
7
7
#define ISOMASTER_DEFAULT_WINDOW_WIDTH 500
8
8
#define ISOMASTER_DEFAULT_WINDOW_HEIGHT 550
9
9
#define ISOMASTER_DEFAULT_TOPPANE_HEIGHT 200
10
10
 
 
11
/* not putting this in the makefile because i really can't think of a
 
12
* distro that doesn't have a writeable /tmp directory */
 
13
#define DEFAULT_TEMP_DIR "/tmp"
 
14
 
11
15
typedef struct
12
16
{
13
17
    /* stuff only read from the config file */
15
19
    int windowHeight;
16
20
    int topPaneHeight;
17
21
    char* fsCurrentDir;
 
22
    int isoSortColumnId;
 
23
    int isoSortDirection;
 
24
    int fsSortColumnId;
 
25
    int fsSortDirection;
 
26
    char* editor;
 
27
    char* viewer;
 
28
    char* tempDir;
18
29
    
19
30
    /* stuff read from the config file that will also be written back from here */
20
31
    bool showHiddenFilesFs;
21
32
    bool sortDirectoriesFirst;
22
33
    bool scanForDuplicateFiles;
23
34
    bool followSymLinks;
24
 
    int filenameTypesToWrite;
25
35
    char* lastIsoDir;
26
36
    bool appendExtension;
27
37
    char* lastBootRecordDir;
28
38
    
 
39
    /* stuf that's never in the config file, but is a setting */
 
40
    int filenameTypesToWrite;
 
41
    
29
42
} AppSettings;
30
43
 
31
44
void buildImagePropertiesWindow(GtkWidget *widget, GdkEvent *event);
 
45
void changeEditorCbk(GtkButton *button, gpointer data);
 
46
void changeTempDirCbk(GtkButton *button, gpointer data);
 
47
void changeViewerCbk(GtkButton *button, gpointer data);
32
48
void findHomeDir(void);
33
49
void followSymLinksCbk(GtkButton *button, gpointer data);
34
50
void openConfigFile(char* configFileName);