diff --git a/src/vector.c b/src/vector.c index e771a9a..2ba7148 100644 --- a/src/vector.c +++ b/src/vector.c @@ -117,7 +117,6 @@ EVENT gboolean drawVectorImageDraw(GtkWidget *widget, cairo_t *cr, gpointer user int height = cairo_image_surface_get_height(self->surface); cairo_t *myCr; size_t offset; - int blend; unsigned char *scaledPointer; unsigned char *tracePointer; unsigned char *targetPointer; @@ -807,9 +806,13 @@ void winVectorCreate(void) { self->editor = scintilla_new(); self->sci = SCINTILLA(self->editor); self->id = _nextEditorId++; - gtk_container_add(GTK_CONTAINER(self->boxVectorForEditor), self->editor); scintilla_set_id(self->sci, self->id); - gtk_widget_set_size_request(self->editor, 500, 300); + gtk_widget_set_halign(self->editor, GTK_ALIGN_FILL); + gtk_widget_set_valign(self->editor, GTK_ALIGN_FILL); + gtk_widget_set_hexpand(self->editor, TRUE); + gtk_widget_set_vexpand(self->editor, TRUE); + gtk_box_set_child_packing(GTK_BOX(self->boxVectorForEditor), self->editor, TRUE, TRUE, 0, GTK_PACK_START); + gtk_container_add(GTK_CONTAINER(self->boxVectorForEditor), self->editor); // Configure editor. SSM(SCI_SETCODEPAGE, SC_CP_UTF8, 0); @@ -830,6 +833,7 @@ void winVectorCreate(void) { SSM(SCI_SETCARETFORE, 0x00ffff, 0); SSM(SCI_STYLESETBACK, STYLE_LINENUMBER, 0x222222); + /* // Add "indent" (no language) lexer for basic folding support. self->pLexer = CreateLexer("cpp"); SSM(SCI_SETILEXER, 0, (sptr_t)self->pLexer); @@ -844,6 +848,7 @@ void winVectorCreate(void) { SSM(SCI_STYLESETFORE, SCE_C_WORD, 0xFF0000); SSM(SCI_STYLESETFORE, SCE_C_STRING, 0xFF00FF); SSM(SCI_STYLESETBOLD, SCE_C_OPERATOR, 1); + */ // Margin markers. SSM(SCI_MARKERDEFINE, MARKER_ERROR_ARROW, SC_MARK_SHORTARROW); // Error diff --git a/ui/Vector.glade b/ui/Vector.glade index c1e2316..53e5f0c 100644 --- a/ui/Vector.glade +++ b/ui/Vector.glade @@ -2,12 +2,6 @@ - - 100 - 100 - 1 - 10 - 100 50 @@ -18,15 +12,25 @@ *.png *.jpg - *.bmp *.jpeg + *.bmp + *.psd + *.tga + *.targa + *.gif + *.pic + *.pnm + *.ppm + *.pgm + 1500 + 600 False Vector - 800 - 500 + 1500 + 600 @@ -60,7 +64,7 @@ True False - _Open + _Open... True @@ -90,7 +94,7 @@ True False - _Close + C_lose True @@ -100,7 +104,7 @@ - + True False _Edit @@ -121,7 +125,7 @@ True False - Copy + _Copy True @@ -146,7 +150,7 @@ - + True False _Help @@ -175,27 +179,20 @@ - + True False - top - - 640 + True False - start - start vertical - top 640 400 True False - start - start @@ -212,10 +209,8 @@ True False - end + 5 Trace Opacity: - right - True False @@ -227,7 +222,6 @@ True True - True adjustmentVectorTraceImage 0 0 @@ -235,9 +229,9 @@ - False + True True - 2 + 1 @@ -255,9 +249,8 @@ True False - 10 + 5 Trace Image: - True False @@ -269,7 +262,6 @@ True False - False imageFilter Open Trace Image @@ -295,7 +287,19 @@ - + + True + False + vertical + + + + + + True + True + 1 + @@ -307,5 +311,4 @@ -