summarylogtreecommitdiffstats
path: root/return-inst.patch
blob: ba305ff6a9a3f308d151c370eda7da8846245163 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
diff --git a/src/exm-installed-page.c b/src/exm-installed-page.c
index b90c355..c0ad0ce 100644
--- a/src/exm-installed-page.c
+++ b/src/exm-installed-page.c
@@ -106,9 +106,8 @@ widget_factory (ExmExtension     *extension,
                 ExmInstalledPage *self)
 {
     ExmExtensionRow *row;
-
-    g_return_if_fail (EXM_IS_EXTENSION (extension));
-    g_return_if_fail (EXM_IS_INSTALLED_PAGE (self));
+    g_return_val_if_fail (EXM_IS_EXTENSION (extension), GTK_WIDGET (NULL));
+    g_return_val_if_fail (EXM_IS_INSTALLED_PAGE (self), GTK_WIDGET (NULL));
 
     row = exm_extension_row_new (extension, self->manager);
     return GTK_WIDGET (row);
@@ -117,8 +116,8 @@ widget_factory (ExmExtension     *extension,
 static int
 compare_enabled (ExmExtension *this, ExmExtension *other)
 {
-    g_return_if_fail (EXM_IS_EXTENSION (this));
-    g_return_if_fail (EXM_IS_EXTENSION (other));
+    g_return_val_if_fail (EXM_IS_EXTENSION (this), 2);
+    g_return_val_if_fail (EXM_IS_EXTENSION (other), 2); // Crash
 
     ExmExtensionState this_state;
     ExmExtensionState other_state;