Skip to content

Commit

Permalink
Remove winapi sub-package and use github.com/lxn/go-winapi instead
Browse files Browse the repository at this point in the history
  • Loading branch information
lxn committed Feb 20, 2012
1 parent 05d8da6 commit 5e60627
Show file tree
Hide file tree
Showing 100 changed files with 79 additions and 7,169 deletions.
2 changes: 1 addition & 1 deletion application.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

type Settings interface {
Get(key string) (string, bool)
Expand Down
2 changes: 1 addition & 1 deletion bitmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"unsafe"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

func withCompatibleDC(f func(hdc HDC) os.Error) os.Error {
hdc := CreateCompatibleDC(0)
Expand Down
2 changes: 1 addition & 1 deletion boxlayout.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"sort"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

type Orientation byte

Expand Down
2 changes: 1 addition & 1 deletion brush.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

type HatchStyle int

Expand Down
2 changes: 1 addition & 1 deletion button.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

type clickable interface {
raiseClicked()
Expand Down
2 changes: 1 addition & 1 deletion canvas.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"unsafe"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

// DrawText format flags
type DrawTextFormat uint
Expand Down
2 changes: 1 addition & 1 deletion checkbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

var checkBoxOrigWndProcPtr uintptr
var _ subclassedWidget = &CheckBox{}
Expand Down
2 changes: 1 addition & 1 deletion combobox.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"unsafe"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

var comboBoxOrigWndProcPtr uintptr
var _ subclassedWidget = &ComboBox{}
Expand Down
2 changes: 1 addition & 1 deletion commondialogs.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"unsafe"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

type FileDialog struct {
Title string
Expand Down
2 changes: 1 addition & 1 deletion composite.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

const compositeWindowClass = `\o/ Walk_Composite_Class \o/`

Expand Down
2 changes: 1 addition & 1 deletion container.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"unsafe"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

type Margins struct {
HNear, VNear, HFar, VFar int
Expand Down
2 changes: 1 addition & 1 deletion cursor.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package walk

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

type Cursor interface {
Dispose()
Expand Down
2 changes: 1 addition & 1 deletion customwidget.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

const customWidgetWindowClass = `\o/ Walk_CustomWidget_Class \o/`

Expand Down
2 changes: 1 addition & 1 deletion dateedit.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"unsafe"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

func systemTimeToTime(st *SYSTEMTIME) *time.Time {
if st == nil {
Expand Down
2 changes: 1 addition & 1 deletion dialog.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"unsafe"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

const (
DlgCmdOK = IDOK
Expand Down
2 changes: 1 addition & 1 deletion document.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"utf8"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

type part interface {
Bounds() Rectangle
Expand Down
2 changes: 1 addition & 1 deletion error.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"syscall"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

var (
logErrors bool
Expand Down
2 changes: 1 addition & 1 deletion examples/drawing/drawing.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package main

import "os"

import "walk"
import "github.com/lxn/walk"

type MainWindow struct {
*walk.MainWindow
Expand Down
2 changes: 1 addition & 1 deletion examples/filebrowser/filebrowser.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"time"
)

import "walk"
import "github.com/lxn/walk"

type FileInfo struct {
Name string
Expand Down
2 changes: 1 addition & 1 deletion examples/imageviewer/imageviewer.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
)

import "walk"
import "github.com/lxn/walk"

type MainWindow struct {
*walk.MainWindow
Expand Down
4 changes: 1 addition & 3 deletions examples/notifyicon/notifyicon.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

package main

import (
"walk"
)
import "github.com/lxn/walk"

func main() {
// Initialize walk and specify that we want errors to be panics.
Expand Down
2 changes: 1 addition & 1 deletion examples/printing/printing.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package main

import "fmt"

import "walk"
import "github.com/lxn/walk"

func main() {
walk.Initialize(walk.InitParams{PanicOnError: true})
Expand Down
2 changes: 1 addition & 1 deletion examples/tableview/tableview.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"time"
)

import "walk"
import "github.com/lxn/walk"

type Foo struct {
Bar string
Expand Down
2 changes: 1 addition & 1 deletion examples/webbrowser/webbrowser.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package main

import "walk"
import "github.com/lxn/walk"

type MainWindow struct {
*walk.MainWindow
Expand Down
2 changes: 1 addition & 1 deletion font.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"syscall"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

type FontStyle byte

Expand Down
2 changes: 1 addition & 1 deletion gridlayout.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"sort"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

type gridLayoutCell struct {
row int
Expand Down
2 changes: 1 addition & 1 deletion groupbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"syscall"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

const groupBoxWindowClass = `\o/ Walk_GroupBox_Class \o/`

Expand Down
2 changes: 1 addition & 1 deletion icon.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"syscall"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

// Icon is a bitmap that supports transparency and combining multiple
// variants of an image in different resolutions.
Expand Down
2 changes: 1 addition & 1 deletion image.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

type Image interface {
draw(hdc HDC, location Point) os.Error
Expand Down
2 changes: 1 addition & 1 deletion imagelist.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

type ImageList struct {
hIml HIMAGELIST
Expand Down
1 change: 0 additions & 1 deletion inifilesettings.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ func (ifs *IniFileSettings) Put(key, value string) os.Error {
return nil
}


func (ifs *IniFileSettings) filePath() (string, os.Error) {
appDataPath, err := AppDataPath()
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion label.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

var labelOrigWndProcPtr uintptr
var _ subclassedWidget = &Label{}
Expand Down
2 changes: 1 addition & 1 deletion lineedit.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"unsafe"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

var lineEditOrigWndProcPtr uintptr
var _ subclassedWidget = &LineEdit{}
Expand Down
2 changes: 1 addition & 1 deletion mainwindow.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

const mainWindowWindowClass = `\o/ Walk_MainWindow_Class \o/`

Expand Down
2 changes: 1 addition & 1 deletion menu.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"unsafe"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

type Menu struct {
hMenu HMENU
Expand Down
2 changes: 1 addition & 1 deletion messagebox.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"syscall"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

type MsgBoxStyle uint

Expand Down
2 changes: 1 addition & 1 deletion metafile.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"unsafe"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

type Metafile struct {
hdc HDC
Expand Down
2 changes: 1 addition & 1 deletion notifyicon.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"unsafe"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

const notifyIconWindowClass = `\o/ Walk_NotifyIcon_Class \o/`

Expand Down
2 changes: 1 addition & 1 deletion numberedit.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"unsafe"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

const numberEditWindowClass = `\o/ Walk_NumberEdit_Class \o/`

Expand Down
2 changes: 1 addition & 1 deletion pageinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

type ColorMode int16

Expand Down
2 changes: 1 addition & 1 deletion papersize.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package walk

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

type PaperSizeType int16

Expand Down
2 changes: 1 addition & 1 deletion papersource.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package walk

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

type PaperSourceType int16

Expand Down
2 changes: 1 addition & 1 deletion path.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"syscall"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

func knownFolderPath(id CSIDL) (string, os.Error) {
var buf [MAX_PATH]uint16
Expand Down
2 changes: 1 addition & 1 deletion pen.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os"
)

import . "walk/winapi"
import . "github.com/lxn/go-winapi"

type PenStyle int

Expand Down
Loading

0 comments on commit 5e60627

Please sign in to comment.