diff options
author | Thomas White <taw@bitwiz.org.uk> | 2014-12-08 23:49:19 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2014-12-08 23:49:19 +0100 |
commit | 88fe2cdd4e760b55d05d0303135b0e56927acc41 (patch) | |
tree | d1739a0b5a22ef62948d96bd52f406ecb158378c /src/sc_editor.c | |
parent | 61d8ee107cb9a2af29184290389244b92b0d638d (diff) |
Set editability of top frame
Diffstat (limited to 'src/sc_editor.c')
-rw-r--r-- | src/sc_editor.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c index d8d93a1..d0b7b97 100644 --- a/src/sc_editor.c +++ b/src/sc_editor.c @@ -824,7 +824,8 @@ static gboolean button_press_sig(GtkWidget *da, GdkEventButton *event, } } else if ( (clicked == NULL) - || (clicked == sc_block_frame(e->scblocks)) ) + || ( !e->top_editable + && (clicked == sc_block_frame(e->scblocks)) ) ) { /* Clicked no object. Deselect old object and set up for * (maybe) creating a new one. */ @@ -1435,6 +1436,12 @@ void sc_editor_set_min_border(SCEditor *e, double min_border) } +void sc_editor_set_top_frame_editable(SCEditor *e, int top_frame_editable) +{ + e->top_editable = top_frame_editable; +} + + SCEditor *sc_editor_new(SCBlock *scblocks, SCBlock *stylesheet) { SCEditor *sceditor; @@ -1453,6 +1460,7 @@ SCEditor *sc_editor_new(SCBlock *scblocks, SCBlock *stylesheet) sceditor->stylesheet = stylesheet; sceditor->slidenum = 0; sceditor->min_border = 0.0; + sceditor->top_editable = 0; err = NULL; sceditor->bg_pixbuf = gdk_pixbuf_new_from_file(DATADIR"/colloquium/sky.png", &err); |