Last active
June 13, 2016 10:35
-
-
Save TuurDutoit/4997904aa5fec96c8f188d88615edbeb to your computer and use it in GitHub Desktop.
homebrew-patches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== modified file 'lib/Widgets/DynamicNotebook.vala' | |
--- lib/Widgets/DynamicNotebook.vala 2015-10-13 18:37:21 +0000 | |
+++ lib/Widgets/DynamicNotebook.vala 2016-05-13 19:15:31 +0000 | |
@@ -205,7 +205,7 @@ | |
/** | |
* With this you can construct a Tab. It is linked to the page that is shown on focus. | |
- * A Tab can have a icon on the right side. You can pass null on the constructor to | |
+ * A Tab can have a icon on the right side. You can pass null on the constructor to | |
* create a tab without a icon. | |
**/ | |
public Tab (string label="", GLib.Icon? icon=null, Gtk.Widget? page=null) { | |
@@ -1135,7 +1135,7 @@ | |
} | |
public uint insert_tab (Tab tab, int index) { | |
- return_if_fail (tabs.index (tab) < 0); | |
+ return_val_if_fail (tabs.index (tab) < 0, -1); | |
var i = 0; | |
if (index <= -1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== modified file 'lib/Widgets/DynamicNotebook.vala' | |
--- lib/Widgets/DynamicNotebook.vala 2016-06-09 09:31:11 +0000 | |
+++ lib/Widgets/DynamicNotebook.vala 2016-06-13 10:31:28 +0000 | |
@@ -1135,7 +1135,7 @@ | |
} | |
public uint insert_tab (Tab tab, int index) { | |
- return_if_fail (tabs.index (tab) < 0); | |
+ return_val_if_fail (tabs.index (tab) < 0, -1); | |
var i = 0; | |
if (index <= -1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment