Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xfce
thunar
Commits
62fc1473
Commit
62fc1473
authored
Jun 26, 2022
by
Yongha Hwang
Committed by
Alexander Schwinn
Jun 26, 2022
Browse files
Remove exo_noop_*()
Related:
exo#61
MR
!271
parent
0307216b
Pipeline
#15936
passed with stages
in 7 minutes and 23 seconds
Changes
7
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
thunar/thunar-action-manager.c
View file @
62fc1473
...
...
@@ -435,7 +435,7 @@ thunar_action_manager_class_init (ThunarActionManagerClass *klass)
static
void
thunar_action_manager_component_init
(
ThunarComponentIface
*
iface
)
{
iface
->
get_selected_files
=
(
gpointer
)
exo_noop_null
;
iface
->
get_selected_files
=
NULL
;
iface
->
set_selected_files
=
thunar_action_manager_set_selected_files
;
}
...
...
thunar/thunar-component.c
View file @
62fc1473
...
...
@@ -102,7 +102,10 @@ GList*
thunar_component_get_selected_files
(
ThunarComponent
*
component
)
{
_thunar_return_val_if_fail
(
THUNAR_IS_COMPONENT
(
component
),
NULL
);
return
(
*
THUNAR_COMPONENT_GET_IFACE
(
component
)
->
get_selected_files
)
(
component
);
if
(
THUNAR_COMPONENT_GET_IFACE
(
component
)
->
get_selected_files
!=
NULL
)
return
(
*
THUNAR_COMPONENT_GET_IFACE
(
component
)
->
get_selected_files
)
(
component
);
else
return
NULL
;
}
...
...
@@ -121,7 +124,8 @@ thunar_component_set_selected_files (ThunarComponent *component,
GList
*
selected_files
)
{
_thunar_return_if_fail
(
THUNAR_IS_COMPONENT
(
component
));
(
*
THUNAR_COMPONENT_GET_IFACE
(
component
)
->
set_selected_files
)
(
component
,
selected_files
);
if
(
THUNAR_COMPONENT_GET_IFACE
(
component
)
->
set_selected_files
!=
NULL
)
(
*
THUNAR_COMPONENT_GET_IFACE
(
component
)
->
set_selected_files
)
(
component
,
selected_files
);
}
...
...
thunar/thunar-location-bar.c
View file @
62fc1473
...
...
@@ -38,7 +38,7 @@ struct _ThunarLocationBarClass
/* signals */
void
(
*
entry_done
)
(
void
);
void
(
*
reload_requested
)
(
void
);
void
(
*
reload_requested
)
(
void
);
/* UNUSED */
};
struct
_ThunarLocationBar
...
...
@@ -107,7 +107,7 @@ thunar_location_bar_class_init (ThunarLocationBarClass *klass)
gobject_class
->
set_property
=
thunar_location_bar_set_property
;
gobject_class
->
finalize
=
thunar_location_bar_finalize
;
klass
->
reload_requested
=
exo_noop
;
klass
->
reload_requested
=
NULL
;
/* Override ThunarNavigator's properties */
g_object_class_override_property
(
gobject_class
,
PROP_CURRENT_DIRECTORY
,
"current-directory"
);
...
...
thunar/thunar-shortcuts-pane.c
View file @
62fc1473
...
...
@@ -136,8 +136,8 @@ thunar_shortcuts_pane_navigator_init (ThunarNavigatorIface *iface)
static
void
thunar_shortcuts_pane_side_pane_init
(
ThunarSidePaneIface
*
iface
)
{
iface
->
get_show_hidden
=
(
gpointer
)
exo_noop_false
;
iface
->
set_show_hidden
=
(
gpointer
)
exo_noop
;
iface
->
get_show_hidden
=
NULL
;
iface
->
set_show_hidden
=
NULL
;
}
...
...
thunar/thunar-side-pane.c
View file @
62fc1473
...
...
@@ -92,7 +92,10 @@ gboolean
thunar_side_pane_get_show_hidden
(
ThunarSidePane
*
side_pane
)
{
_thunar_return_val_if_fail
(
THUNAR_IS_SIDE_PANE
(
side_pane
),
FALSE
);
return
(
*
THUNAR_SIDE_PANE_GET_IFACE
(
side_pane
)
->
get_show_hidden
)
(
side_pane
);
if
(
THUNAR_SIDE_PANE_GET_IFACE
(
side_pane
)
->
get_show_hidden
!=
NULL
)
return
(
*
THUNAR_SIDE_PANE_GET_IFACE
(
side_pane
)
->
get_show_hidden
)
(
side_pane
);
return
FALSE
;
}
...
...
@@ -110,6 +113,7 @@ thunar_side_pane_set_show_hidden (ThunarSidePane *side_pane,
gboolean
show_hidden
)
{
_thunar_return_if_fail
(
THUNAR_IS_SIDE_PANE
(
side_pane
));
(
*
THUNAR_SIDE_PANE_GET_IFACE
(
side_pane
)
->
set_show_hidden
)
(
side_pane
,
show_hidden
);
if
(
THUNAR_SIDE_PANE_GET_IFACE
(
side_pane
)
->
set_show_hidden
!=
NULL
)
(
*
THUNAR_SIDE_PANE_GET_IFACE
(
side_pane
)
->
set_show_hidden
)
(
side_pane
,
show_hidden
);
}
thunar/thunar-tree-model.c
View file @
62fc1473
...
...
@@ -166,6 +166,9 @@ static gboolean thunar_tree_model_node_traverse_visible (GNode
static
gboolean
thunar_tree_model_get_case_sensitive
(
ThunarTreeModel
*
model
);
static
void
thunar_tree_model_set_case_sensitive
(
ThunarTreeModel
*
model
,
gboolean
case_sensitive
);
static
gboolean
thunar_tree_model_default_visiblity
(
ThunarTreeModel
*
model
,
ThunarFile
*
file
,
gpointer
data
);
...
...
@@ -296,7 +299,7 @@ thunar_tree_model_init (ThunarTreeModel *model)
/* initialize the model data */
model
->
sort_case_sensitive
=
TRUE
;
model
->
visible_func
=
(
T
hunar
T
ree
M
odel
VisibleFunc
)
(
void
(
*
)(
void
))
exo_noop_true
;
model
->
visible_func
=
t
hunar
_t
ree
_m
odel
_default_visiblity
;
model
->
visible_data
=
NULL
;
model
->
cleanup_idle_id
=
0
;
...
...
@@ -1972,3 +1975,13 @@ thunar_tree_model_add_child (ThunarTreeModel *model,
/* add a dummy to the new child */
thunar_tree_model_node_insert_dummy
(
child_node
,
model
);
}
static
gboolean
thunar_tree_model_default_visiblity
(
ThunarTreeModel
*
model
,
ThunarFile
*
file
,
gpointer
data
)
{
return
TRUE
;
}
thunar/thunar-tree-pane.c
View file @
62fc1473
...
...
@@ -106,8 +106,8 @@ thunar_tree_pane_class_init (ThunarTreePaneClass *klass)
static
void
thunar_tree_pane_component_init
(
ThunarComponentIface
*
iface
)
{
iface
->
get_selected_files
=
(
gpointer
)
exo_noop_null
;
iface
->
set_selected_files
=
(
gpointer
)
exo_noop
;
iface
->
get_selected_files
=
NULL
;
iface
->
set_selected_files
=
NULL
;
}
...
...
newhoa
@newhoa
mentioned in issue
#823
·
Jun 29, 2022
mentioned in issue
#823
mentioned in issue #823
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment