Skip to content

Commit

Permalink
Use FALSE instead of false.
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveDavenport committed Dec 29, 2024
1 parent 39f231b commit f949169
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions source/modes/drun.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ static gboolean exec_dbus_entry(DRunModeEntry *e, const char *path) {
if (!session) {
g_warning("unable to connect to D-Bus: %s\n", error->message);
g_error_free(error);
return false;
return FALSE;
}

object_path = app_path_for_id(e->app_id);
Expand Down Expand Up @@ -409,10 +409,10 @@ static gboolean exec_dbus_entry(DRunModeEntry *e, const char *path) {
error->message);
g_error_free(error);
g_object_unref(session);
return false;
return FALSE;
}
g_object_unref(session);
return true;
return TRUE;
}

static void exec_cmd_entry(DRunModeEntry *e, const char *path) {
Expand Down Expand Up @@ -487,11 +487,11 @@ static void exec_cmd_entry(DRunModeEntry *e, const char *path) {
/**
* If its required to launch via dbus, do that.
*/
gboolean launched = false;
gboolean launched = FALSE;
if (g_key_file_get_boolean(e->key_file, e->action, "DBusActivatable", NULL)) {
launched = exec_dbus_entry(e, path);
}
if (launched == false) {
if (launched == FALSE) {
/** Fallback to old style if not set. */

// Returns false if not found, if key not found, we don't want run in
Expand Down
2 changes: 1 addition & 1 deletion source/view.c
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,7 @@ static void update_callback(textbox *t, icon *ico, unsigned int index,
textbox_font(t, *type);
}
}
static void page_changed_callback() {
static void page_changed_callback(void) {
rofi_view_workers_finalize();
rofi_view_workers_initialize();
}
Expand Down

0 comments on commit f949169

Please sign in to comment.