summaryrefslogtreecommitdiffstats
path: root/gtk2
diff options
context:
space:
mode:
authorFrançois Andriot <francois.andriot@free.fr>2021-05-03 10:49:58 +0200
committerSlávek Banko <slavek.banko@axis.cz>2021-05-03 15:48:22 +0200
commit32e16264c788b21ca33ff36de4ff4de0f5933d6f (patch)
treec2bf084ec01667f44005eace719ef109c4e16070 /gtk2
parentb3a61fa95964b88ce93cd34656ffd5688f5c45a5 (diff)
downloadkgtk-qt3-32e16264c788b21ca33ff36de4ff4de0f5933d6f.tar.gz
kgtk-qt3-32e16264c788b21ca33ff36de4ff4de0f5933d6f.zip
Add missing return in nonvoid functions
Signed-off-by: François Andriot <francois.andriot@free.fr> (cherry picked from commit 98a4338d07c0500e9b2a5004329239f78e7f6a83)
Diffstat (limited to 'gtk2')
-rw-r--r--gtk2/kgtk2.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk2/kgtk2.c b/gtk2/kgtk2.c
index 3b4889e..88321ff 100644
--- a/gtk2/kgtk2.c
+++ b/gtk2/kgtk2.c
@@ -1579,7 +1579,7 @@ gboolean gtk_file_chooser_set_filename(GtkFileChooser *chooser, const char *file
realFunction = (void *(*)()) real_dlsym(RTLD_NEXT, "gtk_file_chooser_set_filename");
realFunction(chooser, filename);
if (((kgtkApp == APP_UNKNOWN) && BLACKLIST_UNKNOWN_GTK_APPS) || (kgtkApp == APP_BLACKLISTED) && realFunction) {
- return;
+ return FALSE;
}
#ifdef KGTK_DEBUG
@@ -1693,7 +1693,7 @@ gboolean gtk_file_chooser_set_current_folder(GtkFileChooser *chooser, const gcha
realFunction = (void *(*)()) real_dlsym(RTLD_NEXT, "gtk_file_chooser_set_current_folder");
realFunction(chooser, folder);
if (((kgtkApp == APP_UNKNOWN) && BLACKLIST_UNKNOWN_GTK_APPS) || (kgtkApp == APP_BLACKLISTED) && realFunction) {
- return;
+ return FALSE;
}
#ifdef KGTK_DEBUG
@@ -1943,6 +1943,8 @@ GtkWidget * gtk_dialog_add_button(GtkDialog *dialog, const gchar *button_text, g
printf("KGTK::gtk_dialog_add_button Overriding data->ok: %d\n", data->ok);
#endif
}
+
+ return NULL;
}
void gtk_dialog_add_buttons(GtkDialog *dialog, const gchar *first_button_text, ...)