Skip to content

Commit 1e41f4b

Browse files
committed
actions: Fix build for non-debug builds, remove a stray debug line.
Fixes #3364
1 parent 981c9ed commit 1e41f4b

3 files changed

Lines changed: 9 additions & 11 deletions

File tree

libnemo-private/nemo-action-manager.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ parse_item (ActionsIterData *idata,
649649
uuid = json_reader_get_string_value (reader);
650650
json_reader_end_member (reader);
651651

652-
nemo_debug (NEMO_DEBUG_ACTIONS, "Parsing action layout entry for '%s'.", uuid);
652+
DEBUG ("Parsing action layout entry for '%s'.", uuid);
653653

654654
if (!json_reader_read_member (reader, "type") || json_reader_get_null_value (reader)) {
655655
item_error (reader, &idata->error, uuid, "Action layout member is missing mandatory value");
@@ -659,7 +659,7 @@ parse_item (ActionsIterData *idata,
659659
json_reader_end_member (reader);
660660

661661
if (g_strcmp0 (type, "separator") == 0) {
662-
nemo_debug (NEMO_DEBUG_ACTIONS, "Adding separator to UI.");
662+
DEBUG ("Adding separator to UI.");
663663

664664
idata->func (idata->action_manager,
665665
NULL,
@@ -703,7 +703,7 @@ parse_item (ActionsIterData *idata,
703703
nemo_action_override_icon (action, user_icon);
704704
}
705705

706-
nemo_debug (NEMO_DEBUG_ACTIONS, "Adding action '%s' to UI.", action->uuid);
706+
DEBUG ("Adding action '%s' to UI.", action->uuid);
707707

708708
idata->func (idata->action_manager,
709709
GTK_ACTION (action),
@@ -733,7 +733,7 @@ parse_item (ActionsIterData *idata,
733733
}
734734

735735
// A submenu gets added to the same level (path) as its sibling menuitems
736-
nemo_debug (NEMO_DEBUG_ACTIONS, "Adding submenu '%s' to UI.", uuid);
736+
DEBUG ("Adding submenu '%s' to UI.", uuid);
737737

738738
idata->func (idata->action_manager,
739739
submenu,
@@ -775,7 +775,7 @@ parse_level (ActionsIterData *idata,
775775

776776
if (json_reader_is_array (reader)) {
777777
guint len = json_reader_count_elements (reader);
778-
nemo_debug (NEMO_DEBUG_ACTIONS, "Processing %d children of '%s'.", len, path == NULL ? "root" : path);
778+
DEBUG ("Processing %d children of '%s'.", len, path == NULL ? "root" : path);
779779

780780
gint i;
781781
for (i = 0; i < len; i++) {
@@ -894,7 +894,7 @@ nemo_action_manager_update_action_states (NemoActionManager *action_manager,
894894

895895
for (l = actions; l != NULL; l = l->next) {
896896
if (!NEMO_IS_ACTION (l->data)) {
897-
nemo_debug (NEMO_DEBUG_ACTIONS, "Skipping submenu '%s' (visibility managed by GtkUIManager)", gtk_action_get_name (GTK_ACTION (l->data)));
897+
DEBUG ("Skipping submenu '%s' (visibility managed by GtkUIManager)", gtk_action_get_name (GTK_ACTION (l->data)));
898898
gtk_action_set_visible (GTK_ACTION (l->data), TRUE);
899899
continue;
900900
}

libnemo-private/nemo-action.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -612,8 +612,6 @@ populate_patterns_and_filenames (NemoAction *action,
612612

613613
g_string_replace (str, "~", g_get_home_dir (), 1);
614614

615-
g_printerr ("str: '%s'\n", str->str);
616-
617615
if (g_strstr_len (str->str, -1, "?") || g_strstr_len (str->str, -1, "*")) {
618616
if (g_str_has_prefix (str->str, "!")) {
619617
*forbidden_patterns = g_list_prepend (*forbidden_patterns, new_match_pattern (str->str + 1));
@@ -2010,14 +2008,14 @@ nemo_action_update_display_state (NemoAction *action,
20102008
GtkWindow *window)
20112009
{
20122010
if (get_visibility (action, selection, parent, for_places, window)) {
2013-
nemo_debug (NEMO_DEBUG_ACTIONS, "Action '%s' determined VISIBLE", gtk_action_get_name (GTK_ACTION (action)));
2011+
DEBUG ("Action '%s' determined VISIBLE", gtk_action_get_name (GTK_ACTION (action)));
20142012

20152013
finalize_strings (action, selection, parent, window);
20162014
gtk_action_set_visible (GTK_ACTION (action), TRUE);
20172015

20182016
return;
20192017
}
20202018

2021-
nemo_debug (NEMO_DEBUG_ACTIONS, "Action '%s' determined HIDDEN", gtk_action_get_name (GTK_ACTION (action)));
2019+
DEBUG ("Action '%s' determined HIDDEN", gtk_action_get_name (GTK_ACTION (action)));
20222020
gtk_action_set_visible (GTK_ACTION (action), FALSE);
20232021
}

src/nemo-view.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6413,7 +6413,7 @@ add_action_to_ui (NemoActionManager *manager,
64136413
static void
64146414
update_actions (NemoView *view)
64156415
{
6416-
nemo_debug (NEMO_DEBUG_ACTIONS, "Refreshing menu actions");
6416+
DEBUG ("Refreshing menu actions");
64176417

64186418
nemo_action_manager_iterate_actions (view->details->action_manager,
64196419
(NemoActionManagerIterFunc) add_action_to_ui,

0 commit comments

Comments
 (0)