Skip to content

Commit

Permalink
avoid runtime error when reordering plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
kokoko3k committed Mar 28, 2019
1 parent 53fc8d3 commit 84546dc
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 15 deletions.
5 changes: 2 additions & 3 deletions .project
@@ -1,5 +1,4 @@
# Gambas Project File 3.0
# Compiled with Gambas 3.10.0
Title=Higgins
Startup=StartClass
Icon=appicon.png
Expand All @@ -9,13 +8,13 @@ Component=gb.image
Component=gb.qt5
Component=gb.form
Component=gb.dbus
Component=gb.desktop.x11
Component=gb.desktop
Component=gb.desktop.x11
Component=gb.eval
Component=gb.util
Component=gb.settings
Component=gb.gui.trayicon
Component=gb.net
Component=gb.util
Component=gb.web
Description="Higgins:\nApplication launcher,\nstarts applications and search for things.\n\nCurrently it:\nEvaluate expressions (calculator)\nFind recently opened documents\nFind desktop applications\nFind executables\nFind local bookmarks\nLists the content of folders\nFind files by indexing user-specified folders\n\nSupport external plugins; take a look to External_plugin_locate.sh for an example"
Authors="Antonio Orefice"
Expand Down
6 changes: 3 additions & 3 deletions .settings
Expand Up @@ -518,22 +518,22 @@ Path="/tmp/higgins.gambas"

[OpenFile]
File[1]="higgins.desktop:16.7"
Active=8
Active=15
File[2]=".src/MySettings.module:20.10"
Count=32
File[3]=".src/plugins/plugin_apps_gui.form"
File[4]=".src/plugins/plugin_indexer_gui.form"
File[5]=".src/plugins/plugin_015_recent.class:41.4"
File[6]=".src/FMain.form"
File[7]=".src/FMain.class:8.408"
File[7]=".src/FMain.class:4.885"
File[8]=".src/hSettings.class:32.54"
File[9]=".src/Global.module:11.54"
File[10]=".src/MyDesktop.class:34.72"
File[11]=".src/XbindKeys.class:7.92"
File[12]=".src/hSettings.form"
File[13]=".src/StartClass.class:0.11"
File[14]=".src/plugins/plugin_020_apps.class:17.95"
File[15]=".src/DesktopApps.class:0.205"
File[15]=".src/DesktopApps.class:0.101"
File[16]=".src/gstyle.module:16.143"
File[17]=".src/plugins/plugin_090_indexer.class:23.326"
File[18]=".src/plugins/bridge.class:2.106"
Expand Down
4 changes: 1 addition & 3 deletions .src/FMain.class
Expand Up @@ -882,7 +882,6 @@ End


Public Sub setup_xbindkeys()
Stop
Shell "for p in `pidof xbindkeys_higgins` ; do kill $p ; done" Wait
Wait 0.1
Shell "killall -9 xbindkeys_higgins &>/dev/null" Wait
Expand Down Expand Up @@ -1072,10 +1071,9 @@ Public Sub o_buttondown_Click()
Stop
Return
Endif

i = plugins_all.Find(current_plugin)
If i < 0 Then Return 'not found
If i >= plugins_all.count Then Return 'already at the bottom.
If i >= plugins_all.max Then Return 'already at the bottom.

'swap plugin items representation in the array
t = plugins_all[i + 1]
Expand Down
3 changes: 2 additions & 1 deletion .src/hSettings.form
Expand Up @@ -94,7 +94,7 @@
Text = ("Plugins")
Picture = Picture["icon:/small/connect"]
{ Frame1 ScrollView
MoveScaled(2,3,74,22)
MoveScaled(1,2,74,22)
Background = Color.TextBackground
Expand = True
Arrangement = Arrange.Vertical
Expand Down Expand Up @@ -299,6 +299,7 @@
Expand = True
MinValue = 2
Step = 2
Value = 2
}
{ Label2 Label
MoveScaled(17,1,4,4)
Expand Down
7 changes: 4 additions & 3 deletions .src/plugins/plugin_indexer_gui.form
Expand Up @@ -24,19 +24,20 @@
Expand = True
Spacing = True
{ VBox3 VBox
MoveScaled(3,1,40,45)
MoveScaled(1,2,40,45)
Expand = True
Spacing = True
{ GridIndex TableView
MoveScaled(4,4,23,27)
MoveScaled(2,2,36,36)
Expand = True
Border = False
Mode = Select.Single
Grid = False
ShowCursor = True
Header = GridView.Horizontal
}
{ LabelIndexSize Label
MoveScaled(8,40,17,4)
MoveScaled(3,40,17,4)
AutoResize = True
Alignment = Align.Left
}
Expand Down
4 changes: 2 additions & 2 deletions .startup
Expand Up @@ -9,12 +9,12 @@ gb.image
gb.qt5
gb.form
gb.dbus
gb.desktop.x11
gb.desktop
gb.desktop.x11
gb.eval
gb.util
gb.settings
gb.gui.trayicon
gb.net
gb.util
gb.web

0 comments on commit 84546dc

Please sign in to comment.