Commit 67372eae authored by Paolo Bacchilega's avatar Paolo Bacchilega

renamed gth-browser-file-list-selection-changed hook for brevity

parent 2c9b478c
......@@ -164,8 +164,8 @@ list_tools__gth_browser_construct_cb (GthBrowser *browser)
void
list_tools__gth_browser_file_list_selection_changed (GthBrowser *browser,
int n_selected)
list_tools__gth_browser_selection_changed_cb (GthBrowser *browser,
int n_selected)
{
BrowserData *data;
......
......@@ -25,7 +25,7 @@
#include <gthumb.h>
void list_tools__gth_browser_construct_cb (GthBrowser *browser);
void list_tools__gth_browser_file_list_selection_changed (GthBrowser *browser,
void list_tools__gth_browser_selection_changed_cb (GthBrowser *browser,
int n_selected);
#endif /* CALLBACKS_H */
......@@ -30,7 +30,7 @@ G_MODULE_EXPORT void
gthumb_extension_activate (void)
{
gth_hook_add_callback ("gth-browser-construct", 5, G_CALLBACK (list_tools__gth_browser_construct_cb), NULL);
gth_hook_add_callback ("gth-browser-file-list-selection-changed", 5, G_CALLBACK (list_tools__gth_browser_file_list_selection_changed), NULL);
gth_hook_add_callback ("gth-browser-selection-changed", 10, G_CALLBACK (list_tools__gth_browser_selection_changed_cb), NULL);
}
......
......@@ -3635,7 +3635,7 @@ update_selection_cb (gpointer user_data)
_gth_browser_update_statusbar_list_info (browser);
n_selected = gth_file_selection_get_n_selected (GTH_FILE_SELECTION (gth_browser_get_file_list_view (browser)));
gth_hook_invoke ("gth-browser-file-list-selection-changed", browser, n_selected);
gth_hook_invoke ("gth-browser-selection-changed", browser, n_selected);
if (gth_window_get_current_page (GTH_WINDOW (browser)) != GTH_BROWSER_PAGE_BROWSER)
return FALSE;
......
......@@ -95,7 +95,7 @@ gth_main_register_default_hooks (void)
* @browser (GthBrowser*): the relative window.
* @n_selected (int): number of selected files.
*/
gth_hook_register ("gth-browser-file-list-selection-changed", 2);
gth_hook_register ("gth-browser-selection-changed", 2);
/**
* Called when the current page changes.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment