Skip to content

Commit

Permalink
Fix window default size
Browse files Browse the repository at this point in the history
  • Loading branch information
subins2000 committed Dec 8, 2021
1 parent 7bc8ac9 commit 087b9bb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ubuntu-14:
$(MAKE) install-script

ubuntu-18:
go build -tags pango_1_42,gtk_3_22 -ldflags "-s -w" -o ${BIN} .
go build -tags "pango_1_42,gtk_3_22,glib_2_66,cairo_1_15" -ldflags "-s -w" -o ${BIN} .
$(MAKE) ibus-xml
$(MAKE) install-script

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ RUN git checkout gtk-3.10-ubuntu-14.04; \
make ubuntu-14; \
make release

RUN cp *.zip /extract
RUN cp *.zip /extract
7 changes: 4 additions & 3 deletions preferences.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,6 @@ func showPrefs() {
return
}

mainWin.SetDefaultSize(640, 480)
mainWin.SetResizable(false)
mainWin.SetPosition(gtk.WIN_POS_CENTER)
mainWin.SetTitle("Varnam " + varnam.GetSchemeDetails().DisplayName + " Preferences (" + engineName + ")")
mainWin.Connect("destroy", func() {
gtk.MainQuit()
Expand All @@ -436,6 +433,10 @@ func showPrefs() {

win.Add(notebook)

mainWin.SetSizeRequest(640, 480)
mainWin.SetResizable(true)
mainWin.SetPosition(gtk.WIN_POS_CENTER)

// Recursively show all widgets contained in this window.
mainWin.ShowAll()

Expand Down

0 comments on commit 087b9bb

Please sign in to comment.