C++ allows unnamed parameter.
Use glib types when possible (ie. gint and gchar instead of int and char).
Use glib functions when possible (i.e. `g_ascii_isspace()` instead of `isspace()`).
Check if used functions are not deprecated.
-Use UNUSED() for unused function parameters.
---
```
---
+
## External Software Tools
### astyle
<undefine>ENABLE_NLS</undefine>
<undefine>G_KEY_FILE_DESKTOP_GROUP</undefine>
<undefine>HAVE__NL_TIME_FIRST_WEEKDAY</undefine>
- <undefine>UNUSED</undefine>
<undefine>ZD_EXPORT</undefine>
</undefines>
<paths>
static gint n_exif_drag_types = 1;
-static void advanced_exif_dnd_get(GtkWidget *listview, GdkDragContext *UNUSED(context),
- GtkSelectionData *selection_data, guint UNUSED(info),
- guint UNUSED(time), gpointer UNUSED(data))
+static void advanced_exif_dnd_get(GtkWidget *listview, GdkDragContext *,
+ GtkSelectionData *selection_data,
+ guint, guint, gpointer)
{
GtkTreeSelection *sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(listview));
GtkTreeIter iter;
}
-static void advanced_exif_dnd_begin(GtkWidget *listview, GdkDragContext *context, gpointer UNUSED(data))
+static void advanced_exif_dnd_begin(GtkWidget *listview, GdkDragContext *context, gpointer)
{
GtkTreeSelection *sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(listview));
GtkTreeIter iter;
g_free(ew);
}
-static gboolean advanced_exif_delete_cb(GtkWidget *UNUSED(widget), GdkEvent *UNUSED(event), gpointer data)
+static gboolean advanced_exif_delete_cb(GtkWidget *, GdkEvent *, gpointer data)
{
auto ew = static_cast<ExifWin *>(data);
return ret;
}
-static gboolean advanced_exif_mouseclick(GtkWidget *UNUSED(widget),
- GdkEventButton *UNUSED(bevent), gpointer data)
+static gboolean advanced_exif_mouseclick(GtkWidget *, GdkEventButton *, gpointer data)
{
auto ew = static_cast<ExifWin *>(data);
GtkTreePath *path;
return TRUE;
}
-static gboolean advanced_exif_keypress(GtkWidget *UNUSED(widget), GdkEventKey *event, gpointer data)
+static gboolean advanced_exif_keypress(GtkWidget *, GdkEventKey *event, gpointer data)
{
auto ew = static_cast<ExifWin *>(data);
gboolean stop_signal = FALSE;
return stop_signal;
}
-static gboolean search_function_cb(GtkTreeModel *model, gint column, const gchar *key, GtkTreeIter *iter, gpointer UNUSED(data))
+static gboolean search_function_cb(GtkTreeModel *model, gint column, const gchar *key, GtkTreeIter *iter, gpointer)
{
gboolean ret = TRUE;
gchar *field_contents;
g_free(comment);
}
-static void bar_pane_comment_sel_add_cb(GtkWidget *UNUSED(button), gpointer data)
+static void bar_pane_comment_sel_add_cb(GtkWidget *, gpointer data)
{
auto pcd = static_cast<PaneCommentData *>(data);
bar_pane_comment_set_selection(pcd, TRUE);
}
-static void bar_pane_comment_sel_replace_cb(GtkWidget *UNUSED(button), gpointer data)
+static void bar_pane_comment_sel_replace_cb(GtkWidget *, gpointer data)
{
auto pcd = static_cast<PaneCommentData *>(data);
}
}
-static void bar_pane_comment_changed(GtkTextBuffer *UNUSED(buffer), gpointer data)
+static void bar_pane_comment_changed(GtkTextBuffer *, gpointer data)
{
auto pcd = static_cast<PaneCommentData *>(data);
}
-static void bar_pane_comment_populate_popup(GtkTextView *UNUSED(textview), GtkMenu *menu, gpointer data)
+static void bar_pane_comment_populate_popup(GtkTextView *, GtkMenu *menu, gpointer data)
{
auto pcd = static_cast<PaneCommentData *>(data);
menu_item_add_stock(GTK_WIDGET(menu), _("Replace existing text in selected files"), GTK_STOCK_CONVERT, G_CALLBACK(bar_pane_comment_sel_replace_cb), data);
}
-static void bar_pane_comment_destroy(GtkWidget *UNUSED(widget), gpointer data)
+static void bar_pane_comment_destroy(GtkWidget *, gpointer data)
{
auto pcd = static_cast<PaneCommentData *>(data);
static void bar_pane_exif_notify_cb(FileData *fd, NotifyType type, gpointer data);
static gboolean bar_pane_exif_copy_cb(GtkWidget *widget, GdkEventButton *bevent, gpointer data);
-static void bar_pane_exif_entry_changed(GtkEntry *UNUSED(text_entry), gpointer data)
+static void bar_pane_exif_entry_changed(GtkEntry *, gpointer data)
{
auto ee = static_cast<ExifEntry *>(data);
gchar *text;
g_free(text);
}
-static void bar_pane_exif_entry_destroy(GtkWidget *UNUSED(widget), gpointer data)
+static void bar_pane_exif_entry_destroy(GtkWidget *, gpointer data)
{
auto ee = static_cast<ExifEntry *>(data);
static gint n_exif_entry_drop_types = 2;
-static void bar_pane_exif_entry_dnd_get(GtkWidget *entry, GdkDragContext *UNUSED(context),
+static void bar_pane_exif_entry_dnd_get(GtkWidget *entry, GdkDragContext *,
GtkSelectionData *selection_data, guint info,
- guint UNUSED(time), gpointer UNUSED(data))
+ guint, gpointer)
{
auto ee = static_cast<ExifEntry *>(g_object_get_data(G_OBJECT(entry), "entry_data"));
}
-static void bar_pane_exif_dnd_receive(GtkWidget *pane, GdkDragContext *UNUSED(context),
+static void bar_pane_exif_dnd_receive(GtkWidget *pane, GdkDragContext *,
gint x, gint y,
GtkSelectionData *selection_data, guint info,
- guint UNUSED(time), gpointer UNUSED(data))
+ guint, gpointer)
{
PaneExifData *ped;
GList *work, *list;
gtk_box_reorder_child(GTK_BOX(ped->vbox), new_entry, pos);
}
-static void bar_pane_exif_entry_dnd_begin(GtkWidget *entry, GdkDragContext *context, gpointer UNUSED(data))
+static void bar_pane_exif_entry_dnd_begin(GtkWidget *entry, GdkDragContext *context, gpointer)
{
auto ee = static_cast<ExifEntry *>(g_object_get_data(G_OBJECT(entry), "entry_data"));
dnd_set_drag_label(entry, context, ee->key);
}
-static void bar_pane_exif_entry_dnd_end(GtkWidget *UNUSED(widget), GdkDragContext *UNUSED(context), gpointer UNUSED(data))
+static void bar_pane_exif_entry_dnd_end(GtkWidget *, GdkDragContext *, gpointer)
{
}
G_CALLBACK(bar_pane_exif_dnd_receive), NULL);
}
-static void bar_pane_exif_edit_close_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void bar_pane_exif_edit_close_cb(GtkWidget *, gpointer data)
{
auto gd = static_cast<GenericDialog *>(data);
generic_dialog_close(gd);
}
-static void bar_pane_exif_edit_destroy_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void bar_pane_exif_edit_destroy_cb(GtkWidget *, gpointer data)
{
auto cdd = static_cast<ConfDialogData *>(data);
g_signal_handlers_disconnect_by_func(cdd->widget, (gpointer)(bar_pane_exif_edit_close_cb), cdd->gd);
g_free(cdd);
}
-static void bar_pane_exif_edit_cancel_cb(GenericDialog *UNUSED(gd), gpointer UNUSED(data))
+static void bar_pane_exif_edit_cancel_cb(GenericDialog *, gpointer)
{
}
-static void bar_pane_exif_edit_ok_cb(GenericDialog *UNUSED(gd), gpointer data)
+static void bar_pane_exif_edit_ok_cb(GenericDialog *, gpointer data)
{
auto cdd = static_cast<ConfDialogData *>(data);
gtk_widget_show(gd->dialog);
}
-static void bar_pane_exif_conf_dialog_cb(GtkWidget *UNUSED(menu_widget), gpointer data)
+static void bar_pane_exif_conf_dialog_cb(GtkWidget *, gpointer data)
{
auto widget = static_cast<GtkWidget *>(data);
bar_pane_exif_conf_dialog(widget);
}
-static void bar_pane_exif_delete_entry_cb(GtkWidget *UNUSED(menu_widget), gpointer data)
+static void bar_pane_exif_delete_entry_cb(GtkWidget *, gpointer data)
{
auto entry = static_cast<GtkWidget *>(data);
gtk_widget_destroy(entry);
}
-static void bar_pane_exif_copy_entry_cb(GtkWidget *UNUSED(menu_widget), gpointer data)
+static void bar_pane_exif_copy_entry_cb(GtkWidget *, gpointer data)
{
auto widget = static_cast<GtkWidget *>(data);
GtkClipboard *clipboard;
gtk_clipboard_set_text(clipboard, value, -1);
}
-static void bar_pane_exif_toggle_show_all_cb(GtkWidget *UNUSED(menu_widget), gpointer data)
+static void bar_pane_exif_toggle_show_all_cb(GtkWidget *, gpointer data)
{
auto ped = static_cast<PaneExifData *>(data);
ped->show_all = !ped->show_all;
return FALSE;
}
-static gboolean bar_pane_exif_copy_cb(GtkWidget *widget, GdkEventButton *bevent, gpointer UNUSED(data))
+static gboolean bar_pane_exif_copy_cb(GtkWidget *widget, GdkEventButton *bevent, gpointer)
{
const gchar *value;
GtkClipboard *clipboard;
}
#pragma GCC diagnostic pop
-static void bar_pane_exif_destroy(GtkWidget *UNUSED(widget), gpointer data)
+static void bar_pane_exif_destroy(GtkWidget *, gpointer data)
{
auto ped = static_cast<PaneExifData *>(data);
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-function"
-static void bar_pane_exif_size_request_unused(GtkWidget *UNUSED(pane), GtkRequisition *requisition, gpointer data)
+static void bar_pane_exif_size_request_unused(GtkWidget *, GtkRequisition *requisition, gpointer data)
{
PaneExifData *ped = static_cast<PaneExifData *>(data);
if (requisition->height < ped->min_height)
}
#pragma GCC diagnostic pop
-static void bar_pane_exif_size_allocate(GtkWidget *UNUSED(pane), GtkAllocation *alloc, gpointer data)
+static void bar_pane_exif_size_allocate(GtkWidget *, GtkAllocation *alloc, gpointer data)
{
auto ped = static_cast<PaneExifData *>(data);
ped->min_height = alloc->height;
};
static gint n_gps_entry_drop_types = 2;
-static void bar_pane_gps_close_cancel_cb(GenericDialog *UNUSED(gd), gpointer data)
+static void bar_pane_gps_close_cancel_cb(GenericDialog *, gpointer data)
{
auto pgd = static_cast<PaneGPSData *>(data);
g_list_free(pgd->geocode_list);
}
-static void bar_pane_gps_close_save_cb(GenericDialog *UNUSED(gd), gpointer data)
+static void bar_pane_gps_close_save_cb(GenericDialog *, gpointer data)
{
auto pgd = static_cast<PaneGPSData *>(data);
FileData *fd;
g_list_free(pgd->geocode_list);
}
- static void bar_pane_gps_dnd_receive(GtkWidget *pane, GdkDragContext *UNUSED(context),
+ static void bar_pane_gps_dnd_receive(GtkWidget *pane, GdkDragContext *,
gint x, gint y,
GtkSelectionData *selection_data, guint info,
- guint UNUSED(time), gpointer UNUSED(data))
+ guint, gpointer)
{
PaneGPSData *pgd;
GenericDialog *gd;
}
-static gboolean bar_gps_draw_direction (ClutterCanvas *UNUSED(canvas),
- cairo_t *cr, gpointer UNUSED(data))
+static gboolean bar_gps_draw_direction (ClutterCanvas *, cairo_t *cr, gpointer)
{
cairo_set_source_rgb(cr, 255, 0, 0);
thumb_loader_free(tl);
}
-static void bar_pane_gps_thumb_error_cb(ThumbLoader *tl, gpointer UNUSED(data))
+static void bar_pane_gps_thumb_error_cb(ThumbLoader *tl, gpointer)
{
thumb_loader_free(tl);
}
-static gboolean bar_pane_gps_marker_keypress_cb(GtkWidget *widget, ClutterButtonEvent *bevent, gpointer UNUSED(data))
+static gboolean bar_pane_gps_marker_keypress_cb(GtkWidget *widget, ClutterButtonEvent *bevent, gpointer)
{
FileData *fd;
ClutterActor *label_marker, *parent_marker;
g_object_unref(map_factory);
}
-void bar_pane_gps_enable_markers_checked_toggle_cb(GtkWidget *UNUSED(menu_widget), gpointer data)
+void bar_pane_gps_enable_markers_checked_toggle_cb(GtkWidget *, gpointer data)
{
auto pgd = static_cast<PaneGPSData *>(data);
}
}
-static void bar_pane_gps_centre_map_checked_toggle_cb(GtkWidget *UNUSED(menu_widget), gpointer data)
+static void bar_pane_gps_centre_map_checked_toggle_cb(GtkWidget *, gpointer data)
{
auto pgd = static_cast<PaneGPSData *>(data);
g_string_free(message, TRUE);
}
-static void bar_pane_gps_view_state_changed_cb(ChamplainView *view,
- GParamSpec *UNUSED(gobject),
- gpointer data)
+static void bar_pane_gps_view_state_changed_cb(ChamplainView *view, GParamSpec *, gpointer data)
{
auto pgd = static_cast<PaneGPSData *>(data);
ChamplainState status;
g_string_free(message, TRUE);
}
-static gboolean bar_pane_gps_map_keypress_cb(GtkWidget *UNUSED(widget), GdkEventButton *bevent, gpointer data)
+static gboolean bar_pane_gps_map_keypress_cb(GtkWidget *, GdkEventButton *bevent, gpointer data)
{
auto pgd = static_cast<PaneGPSData *>(data);
GtkWidget *menu;
}
}
-static void bar_pane_gps_destroy(GtkWidget *UNUSED(widget), gpointer data)
+static void bar_pane_gps_destroy(GtkWidget *, gpointer data)
{
auto pgd = static_cast<PaneGPSData *>(data);
}
}
-static gboolean bar_pane_histogram_draw_cb(GtkWidget *UNUSED(widget), cairo_t *cr, gpointer data)
+static gboolean bar_pane_histogram_draw_cb(GtkWidget *, cairo_t *cr, gpointer data)
{
auto phd = static_cast<PaneHistogramData *>(data);
if (!phd) return TRUE;
return TRUE;
}
-static void bar_pane_histogram_size_cb(GtkWidget *UNUSED(widget), GtkAllocation *allocation, gpointer data)
+static void bar_pane_histogram_size_cb(GtkWidget *, GtkAllocation *allocation, gpointer data)
{
auto phd = static_cast<PaneHistogramData *>(data);
bar_pane_histogram_update(phd);
}
-static void bar_pane_histogram_destroy(GtkWidget *UNUSED(widget), gpointer data)
+static void bar_pane_histogram_destroy(GtkWidget *, gpointer data)
{
auto phd = static_cast<PaneHistogramData *>(data);
return menu;
}
-static gboolean bar_pane_histogram_press_cb(GtkGesture *UNUSED(gesture), gint UNUSED(n_press), gdouble UNUSED(x), gdouble UNUSED(y), gpointer data)
+static gboolean bar_pane_histogram_press_cb(GtkGesture *, gint, gdouble, gdouble, gpointer data)
{
auto phd = static_cast<PaneHistogramData *>(data);
GtkWidget *menu;
return FALSE;
}
-static void bar_pane_keywords_keyword_toggle(GtkCellRendererToggle *UNUSED(toggle), const gchar *path, gpointer data)
+static void bar_pane_keywords_keyword_toggle(GtkCellRendererToggle *, const gchar *path, gpointer data)
{
auto pkd = static_cast<PaneKeywordsData *>(data);
GtkTreeModel *model;
g_list_free_full(keywords, g_free);
}
-static void bar_pane_keywords_sel_add_cb(GtkWidget *UNUSED(button), gpointer data)
+static void bar_pane_keywords_sel_add_cb(GtkWidget *, gpointer data)
{
auto pkd = static_cast<PaneKeywordsData *>(data);
bar_pane_keywords_set_selection(pkd, TRUE);
}
-static void bar_pane_keywords_sel_replace_cb(GtkWidget *UNUSED(button), gpointer data)
+static void bar_pane_keywords_sel_replace_cb(GtkWidget *, gpointer data)
{
auto pkd = static_cast<PaneKeywordsData *>(data);
bar_pane_keywords_set_selection(pkd, FALSE);
}
-static void bar_pane_keywords_populate_popup_cb(GtkTextView *UNUSED(textview), GtkMenu *menu, gpointer data)
+static void bar_pane_keywords_populate_popup_cb(GtkTextView *, GtkMenu *menu, gpointer data)
{
auto pkd = static_cast<PaneKeywordsData *>(data);
return G_SOURCE_REMOVE;
}
-static void bar_pane_keywords_changed(GtkTextBuffer *UNUSED(buffer), gpointer data)
+static void bar_pane_keywords_changed(GtkTextBuffer *, gpointer data)
{
auto pkd = static_cast<PaneKeywordsData *>(data);
static gint n_keywords_drop_types = 2;
-static void bar_pane_keywords_dnd_get(GtkWidget *tree_view, GdkDragContext *UNUSED(context),
+static void bar_pane_keywords_dnd_get(GtkWidget *tree_view, GdkDragContext *,
GtkSelectionData *selection_data, guint info,
- guint UNUSED(time), gpointer UNUSED(data))
+ guint, gpointer)
{
GtkTreeIter iter;
GtkTreeModel *model;
}
}
-static void bar_pane_keywords_dnd_begin(GtkWidget *tree_view, GdkDragContext *context, gpointer UNUSED(data))
+static void bar_pane_keywords_dnd_begin(GtkWidget *tree_view, GdkDragContext *context, gpointer)
{
GtkTreeIter iter;
GtkTreeModel *model;
}
-static void bar_pane_keywords_dnd_end(GtkWidget *UNUSED(widget), GdkDragContext *UNUSED(context), gpointer UNUSED(data))
+static void bar_pane_keywords_dnd_end(GtkWidget *, GdkDragContext *, gpointer)
{
}
return !!*keywords;
}
-static void bar_pane_keywords_dnd_receive(GtkWidget *tree_view, GdkDragContext *UNUSED(context),
+static void bar_pane_keywords_dnd_receive(GtkWidget *tree_view, GdkDragContext *,
gint x, gint y,
GtkSelectionData *selection_data, guint info,
- guint UNUSED(time), gpointer data)
+ guint, gpointer data)
{
auto pkd = static_cast<PaneKeywordsData *>(data);
GtkTreePath *tpath = nullptr;
}
static gint bar_pane_keywords_dnd_motion(GtkWidget *tree_view, GdkDragContext *context,
- gint x, gint y, guint time, gpointer UNUSED(data))
+ gint x, gint y, guint time, gpointer)
{
GtkTreePath *tpath = nullptr;
GtkTreeViewDropPosition pos;
*-------------------------------------------------------------------
*/
-static void bar_pane_keywords_edit_destroy_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void bar_pane_keywords_edit_destroy_cb(GtkWidget *, gpointer data)
{
auto cdd = static_cast<ConfDialogData *>(data);
gtk_tree_path_free(cdd->click_tpath);
}
-static void bar_pane_keywords_edit_cancel_cb(GenericDialog *UNUSED(gd), gpointer UNUSED(data))
+static void bar_pane_keywords_edit_cancel_cb(GenericDialog *, gpointer)
{
}
-static void bar_pane_keywords_edit_ok_cb(GenericDialog *UNUSED(gd), gpointer data)
+static void bar_pane_keywords_edit_ok_cb(GenericDialog *, gpointer data)
{
auto cdd = static_cast<ConfDialogData *>(data);
PaneKeywordsData *pkd = cdd->pkd;
g_list_free_full(keywords, g_free);
}
-static void bar_pane_keywords_conf_set_helper(GtkWidget *UNUSED(widget), gpointer data)
+static void bar_pane_keywords_conf_set_helper(GtkWidget *, gpointer data)
{
auto cdd = static_cast<ConfDialogData *>(data);
cdd->is_keyword = FALSE;
}
-static void bar_pane_keywords_conf_set_kw(GtkWidget *UNUSED(widget), gpointer data)
+static void bar_pane_keywords_conf_set_kw(GtkWidget *, gpointer data)
{
auto cdd = static_cast<ConfDialogData *>(data);
cdd->is_keyword = TRUE;
*-------------------------------------------------------------------
*/
-static void bar_pane_keywords_edit_dialog_cb(GtkWidget *UNUSED(menu_widget), gpointer data)
+static void bar_pane_keywords_edit_dialog_cb(GtkWidget *, gpointer data)
{
auto pkd = static_cast<PaneKeywordsData *>(data);
bar_pane_keywords_edit_dialog(pkd, TRUE);
}
-static void bar_pane_keywords_add_dialog_cb(GtkWidget *UNUSED(menu_widget), gpointer data)
+static void bar_pane_keywords_add_dialog_cb(GtkWidget *, gpointer data)
{
auto pkd = static_cast<PaneKeywordsData *>(data);
bar_pane_keywords_edit_dialog(pkd, FALSE);
meta_data_connect_mark_with_keyword(keyword_tree, &kw_iter, mark);
}
-static void bar_pane_keywords_disconnect_marks_ok_cb(GenericDialog *UNUSED(gd), gpointer UNUSED(data))
+static void bar_pane_keywords_disconnect_marks_ok_cb(GenericDialog *, gpointer)
{
keyword_tree_disconnect_marks();
}
-static void dummy_cancel_cb(GenericDialog *UNUSED(gd), gpointer UNUSED(data))
+static void dummy_cancel_cb(GenericDialog *, gpointer)
{
/* no op, only so cancel button appears */
}
g_string_free(message, TRUE);
}
-static void bar_pane_keywords_delete_cb(GtkWidget *UNUSED(menu_widget), gpointer data)
+static void bar_pane_keywords_delete_cb(GtkWidget *, gpointer data)
{
auto pkd = static_cast<PaneKeywordsData *>(data);
GtkTreeModel *model;
keyword_delete(GTK_TREE_STORE(keyword_tree), &kw_iter);
}
-static void bar_pane_keywords_hide_cb(GtkWidget *UNUSED(menu_widget), gpointer data)
+static void bar_pane_keywords_hide_cb(GtkWidget *, gpointer data)
{
auto pkd = static_cast<PaneKeywordsData *>(data);
GtkTreeModel *model;
keyword_hide_in(GTK_TREE_STORE(keyword_tree), &kw_iter, model);
}
-static void bar_pane_keywords_show_all_cb(GtkWidget *UNUSED(menu_widget), gpointer data)
+static void bar_pane_keywords_show_all_cb(GtkWidget *, gpointer data)
{
auto pkd = static_cast<PaneKeywordsData *>(data);
GtkTreeModel *model;
bar_keyword_tree_sync(pkd);
}
-static void bar_pane_keywords_revert_cb(GtkWidget *UNUSED(menu_widget), gpointer data)
+static void bar_pane_keywords_revert_cb(GtkWidget *, gpointer data)
{
auto pkd = static_cast<PaneKeywordsData *>(data);
GList *work;
bar_keyword_tree_sync(pkd);
}
-static void bar_pane_keywords_expand_checked_cb(GtkWidget *UNUSED(menu_widget), gpointer data)
+static void bar_pane_keywords_expand_checked_cb(GtkWidget *, gpointer data)
{
auto pkd = static_cast<PaneKeywordsData *>(data);
GtkTreeModel *model;
gtk_tree_model_foreach(model, bar_keyword_tree_expand_if_set_cb, pkd);
}
-static void bar_pane_keywords_collapse_all_cb(GtkWidget *UNUSED(menu_widget), gpointer data)
+static void bar_pane_keywords_collapse_all_cb(GtkWidget *, gpointer data)
{
auto pkd = static_cast<PaneKeywordsData *>(data);
bar_keyword_tree_sync(pkd);
}
-static void bar_pane_keywords_revert_hidden_cb(GtkWidget *UNUSED(menu_widget), gpointer data)
+static void bar_pane_keywords_revert_hidden_cb(GtkWidget *, gpointer data)
{
auto pkd = static_cast<PaneKeywordsData *>(data);
GtkTreeModel *model;
bar_keyword_tree_sync(pkd);
}
-static void bar_pane_keywords_collapse_unchecked_cb(GtkWidget *UNUSED(menu_widget), gpointer data)
+static void bar_pane_keywords_collapse_unchecked_cb(GtkWidget *, gpointer data)
{
auto pkd = static_cast<PaneKeywordsData *>(data);
GtkTreeModel *model;
gtk_tree_model_foreach(model, bar_keyword_tree_collapse_if_unset_cb, pkd);
}
-static void bar_pane_keywords_hide_unchecked_cb(GtkWidget *UNUSED(menu_widget), gpointer data)
+static void bar_pane_keywords_hide_unchecked_cb(GtkWidget *, gpointer data)
{
auto pkd = static_cast<PaneKeywordsData *>(data);
GtkTreeModel *model;
bar_keyword_tree_sync(pkd);
}
-static void bar_pane_keywords_expand_checked_toggle_cb(GtkWidget *UNUSED(menu_widget), gpointer data)
+static void bar_pane_keywords_expand_checked_toggle_cb(GtkWidget *, gpointer data)
{
auto pkd = static_cast<PaneKeywordsData *>(data);
pkd->expand_checked = !pkd->expand_checked;
bar_keyword_tree_sync(pkd);
}
-static void bar_pane_keywords_collapse_unchecked_toggle_cb(GtkWidget *UNUSED(menu_widget), gpointer data)
+static void bar_pane_keywords_collapse_unchecked_toggle_cb(GtkWidget *, gpointer data)
{
auto pkd = static_cast<PaneKeywordsData *>(data);
pkd->collapse_unchecked = !pkd->collapse_unchecked;
bar_keyword_tree_sync(pkd);
}
-static void bar_pane_keywords_hide_unchecked_toggle_cb(GtkWidget *UNUSED(menu_widget), gpointer data)
+static void bar_pane_keywords_hide_unchecked_toggle_cb(GtkWidget *, gpointer data)
{
auto pkd = static_cast<PaneKeywordsData *>(data);
pkd->hide_unchecked = !pkd->hide_unchecked;
/**
* @brief Callback for adding selected keyword to all selected images.
*/
-static void bar_pane_keywords_add_to_selected_cb(GtkWidget *UNUSED(menu_widget), gpointer data)
+static void bar_pane_keywords_add_to_selected_cb(GtkWidget *, gpointer data)
{
auto pkd = static_cast<PaneKeywordsData *>(data);
GtkTreeIter iter; /* This is the iter which initial holds the current keyword */
g_list_free_full(keywords, g_free);
}
-static void bar_pane_keywords_menu_popup(GtkWidget *UNUSED(widget), PaneKeywordsData *pkd, gint x, gint y)
+static void bar_pane_keywords_menu_popup(GtkWidget *, PaneKeywordsData *pkd, gint x, gint y)
{
GtkWidget *menu;
GtkWidget *item;
}
#pragma GCC diagnostic pop
-static void bar_pane_keywords_destroy(GtkWidget *UNUSED(widget), gpointer data)
+static void bar_pane_keywords_destroy(GtkWidget *, gpointer data)
{
auto pkd = static_cast<PaneKeywordsData *>(data);
gchar *path;
*-----------------------------------------------------------------------------
*/
-static gboolean autocomplete_activate_cb(GtkWidget *UNUSED(widget), gpointer data)
+static gboolean autocomplete_activate_cb(GtkWidget *, gpointer data)
{
auto pkd = static_cast<PaneKeywordsData *>(data);
gchar *entry_text;
gint autocomplete_sort_iter_compare_func (GtkTreeModel *model,
GtkTreeIter *a,
GtkTreeIter *b,
- gpointer UNUSED(userdata))
+ gpointer)
{
gint ret = 0;
gchar *name1, *name2;
}
}
-static void bar_pane_rating_destroy(GtkWidget *UNUSED(widget), gpointer data)
+static void bar_pane_rating_destroy(GtkWidget *, gpointer data)
{
auto prd = static_cast<PaneRatingData *>(data);
}
}
-static void bar_sort_bookmark_select_folder(SortData *sd, FileData *UNUSED(source), const gchar *path)
+static void bar_sort_bookmark_select_folder(SortData *sd, FileData *, const gchar *path)
{
GList *orig_list;
GList *action_list;
bar_sort_set_action(sd, BAR_SORT_FILTER, key);
}
-static void bar_filter_help_cb(GenericDialog *UNUSED(gd), gpointer UNUSED(data))
+static void bar_filter_help_cb(GenericDialog *, gpointer)
{
help_window_show("GuidePluginsConfig.html#Geeqieextensions");
}
gtk_widget_show(gd->dialog);
}
-static gboolean bar_filter_message_cb(GtkWidget *UNUSED(widget), GdkEventButton *event, gpointer UNUSED(data))
+static gboolean bar_filter_message_cb(GtkWidget *, GdkEventButton *event, gpointer)
{
if (event->button != MOUSE_BUTTON_RIGHT) return FALSE;
return TRUE;
}
-static void bar_sort_help_cb(gpointer UNUSED(data))
+static void bar_sort_help_cb(gpointer)
{
bar_filter_help_dialog();
}
bar_sort_add_close(sd);
}
-static void bar_sort_add_cancel_cb(FileDialog *UNUSED(fd), gpointer data)
+static void bar_sort_add_cancel_cb(FileDialog *, gpointer data)
{
auto sd = static_cast<SortData *>(data);
gtk_widget_destroy(sd->vbox);
}
-static void bar_sort_destroy(GtkWidget *UNUSED(widget), gpointer data)
+static void bar_sort_destroy(GtkWidget *, gpointer data)
{
auto sd = static_cast<SortData *>(data);
return sd->vbox;
}
-GtkWidget *bar_sort_new_from_config(LayoutWindow *lw, const gchar **UNUSED(attribute_names), const gchar **UNUSED(attribute_values))
+GtkWidget *bar_sort_new_from_config(LayoutWindow *lw, const gchar **, const gchar **)
{
GtkWidget *bar;
gint width;
};
-static void bar_expander_move(GtkWidget *UNUSED(widget), gpointer data, gboolean up, gboolean single_step)
+static void bar_expander_move(GtkWidget *, gpointer data, gboolean up, gboolean single_step)
{
auto expander = static_cast<GtkWidget *>(data);
GtkWidget *box;
gtk_widget_set_size_request(GTK_WIDGET(data), -1, gtk_spin_button_get_value_as_int(spin));
}
-static void height_spin_key_press_cb(GtkEventControllerKey *UNUSED(controller), gint keyval, guint UNUSED(keycode), GdkModifierType UNUSED(state), gpointer data)
+static void height_spin_key_press_cb(GtkEventControllerKey *, gint keyval, guint, GdkModifierType, gpointer data)
{
if ((keyval == GDK_KEY_Return || keyval == GDK_KEY_Escape))
{
}
}
-static void bar_expander_height_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void bar_expander_height_cb(GtkWidget *, gpointer data)
{
auto expander = static_cast<GtkWidget *>(data);
GtkWidget *spin;
g_list_free(list);
}
-static void bar_expander_delete_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void bar_expander_delete_cb(GtkWidget *, gpointer data)
{
auto expander = static_cast<GtkWidget *>(data);
gtk_widget_destroy(expander);
}
-static void bar_expander_add_cb(GtkWidget *widget, gpointer UNUSED(data))
+static void bar_expander_add_cb(GtkWidget *widget, gpointer)
{
const KnownPanes *pane = known_panes;
auto id = static_cast<const gchar *>(g_object_get_data(G_OBJECT(widget), "pane_add_id"));
}
-static gboolean bar_menu_cb(GtkWidget *widget, GdkEventButton *bevent, gpointer UNUSED(data))
+static gboolean bar_menu_cb(GtkWidget *widget, GdkEventButton *bevent, gpointer)
{
if (bevent->button == MOUSE_BUTTON_RIGHT)
{
return FALSE;
}
-static void bar_expander_cb(GObject *object, GParamSpec *UNUSED(param_spec), gpointer UNUSED(data))
+static void bar_expander_cb(GObject *object, GParamSpec *, gpointer)
{
GtkExpander *expander;
GtkWidget *child;
}
}
-static gboolean bar_menu_add_cb(GtkWidget *widget, GdkEventButton *UNUSED(bevent), gpointer UNUSED(data))
+static gboolean bar_menu_add_cb(GtkWidget *widget, GdkEventButton *, gpointer)
{
bar_menu_add_popup(widget);
return TRUE;
}
-void bar_populate_default(GtkWidget *UNUSED(bar))
+void bar_populate_default(GtkWidget *)
{
const gchar *populate_id[] = {"histogram", "title", "keywords", "comment", "rating", "exif", nullptr};
const gchar **id = populate_id;
}
}
-static void bar_size_allocate(GtkWidget *UNUSED(widget), GtkAllocation *UNUSED(allocation), gpointer data)
+static void bar_size_allocate(GtkWidget *, GtkAllocation *, gpointer data)
{
auto bd = static_cast<BarData *>(data);
gtk_widget_destroy(bd->widget);
}
-static void bar_destroy(GtkWidget *UNUSED(widget), gpointer data)
+static void bar_destroy(GtkWidget *, gpointer data)
{
auto bd = static_cast<BarData *>(data);
it should be removed as soon as a better solution exists
*/
-static void bar_unrealize_clutter_fix_cb(GtkWidget *widget, gpointer UNUSED(data))
+static void bar_unrealize_clutter_fix_cb(GtkWidget *widget, gpointer)
{
GtkWidget *child = gtk_bin_get_child(GTK_BIN(widget));
if (child) gtk_widget_unrealize(child);
static gboolean cache_loader_phase2_idle_cb(gpointer data);
-static void cache_loader_phase1_done_cb(ImageLoader *UNUSED(il), gpointer data)
+static void cache_loader_phase1_done_cb(ImageLoader *, gpointer data)
{
auto cl = static_cast<CacheLoader *>(data);
cl->idle_id = g_idle_add(cache_loader_phase2_idle_cb, cl);
}
-static void cache_loader_phase1_error_cb(ImageLoader *UNUSED(il), gpointer data)
+static void cache_loader_phase1_error_cb(ImageLoader *, gpointer data)
{
auto cl = static_cast<CacheLoader *>(data);
static gchar *cache_maintenance_path = nullptr;
static GtkStatusIcon *status_icon;
-static void cache_maintenance_sim_stop_cb(gpointer UNUSED(data))
+static void cache_maintenance_sim_stop_cb(gpointer)
{
exit(EXIT_SUCCESS);
}
-static void cache_maintenance_render_stop_cb(gpointer UNUSED(data))
+static void cache_maintenance_render_stop_cb(gpointer)
{
gtk_status_icon_set_tooltip_text(status_icon, _("Geeqie: Creating sim data..."));
cache_manager_sim_remote(cache_maintenance_path, TRUE, reinterpret_cast<GDestroyNotify *>(cache_maintenance_sim_stop_cb));
}
-static void cache_maintenance_clean_stop_cb(gpointer UNUSED(data))
+static void cache_maintenance_clean_stop_cb(gpointer)
{
gtk_status_icon_set_tooltip_text(status_icon, _("Geeqie: Creating thumbs..."));
cache_manager_render_remote(cache_maintenance_path, TRUE, options->thumbnails.cache_into_dirs, reinterpret_cast<GDestroyNotify *>(cache_maintenance_render_stop_cb));
exit(EXIT_FAILURE);
}
-static void cache_maintenance_status_icon_activate_cb(GtkStatusIcon *UNUSED(status), gpointer UNUSED(data))
+static void cache_maintenance_status_icon_activate_cb(GtkStatusIcon *, gpointer)
{
GtkWidget *menu;
GtkWidget *item;
return G_SOURCE_CONTINUE;
}
-static void cache_maintain_home_close_cb(GenericDialog *UNUSED(gd), gpointer data)
+static void cache_maintain_home_close_cb(GenericDialog *, gpointer data)
{
auto cm = static_cast<CMData *>(data);
cache_maintain_home_close(cm);
}
-static void cache_maintain_home_stop_cb(GenericDialog *UNUSED(gd), gpointer data)
+static void cache_maintain_home_stop_cb(GenericDialog *, gpointer data)
{
auto cm = static_cast<CMData *>(data);
g_free(src_cache);
}
-void cache_notify_cb(FileData *fd, NotifyType type, gpointer UNUSED(data))
+void cache_notify_cb(FileData *fd, NotifyType type, gpointer)
{
if (!(type & NOTIFY_CHANGE) || !fd->change) return;
cd->tl = nullptr;
}
-static void cache_manager_render_close_cb(GenericDialog *UNUSED(fd), gpointer data)
+static void cache_manager_render_close_cb(GenericDialog *, gpointer data)
{
auto cd = static_cast<CacheOpsData *>(data);
}
}
-static void cache_manager_render_stop_cb(GenericDialog *UNUSED(fd), gpointer data)
+static void cache_manager_render_stop_cb(GenericDialog *, gpointer data)
{
auto cd = static_cast<CacheOpsData *>(data);
static gboolean cache_manager_render_file(CacheOpsData *cd);
-static void cache_manager_render_thumb_done_cb(ThumbLoader *UNUSED(tl), gpointer data)
+static void cache_manager_render_thumb_done_cb(ThumbLoader *, gpointer data)
{
auto cd = static_cast<CacheOpsData *>(data);
return FALSE;
}
-static void cache_manager_render_start_cb(GenericDialog *UNUSED(fd), gpointer data)
+static void cache_manager_render_start_cb(GenericDialog *, gpointer data)
{
auto cd = static_cast<CacheOpsData *>(data);
gchar *path;
cache_manager_render_start_render_remote(cd, path);
}
-static void cache_manager_standard_clean_close_cb(GenericDialog *UNUSED(gd), gpointer data)
+static void cache_manager_standard_clean_close_cb(GenericDialog *, gpointer data)
{
auto cd = static_cast<CacheOpsData *>(data);
cd->list = nullptr;
}
-static void cache_manager_standard_clean_stop_cb(GenericDialog *UNUSED(gd), gpointer data)
+static void cache_manager_standard_clean_stop_cb(GenericDialog *, gpointer data)
{
auto cd = static_cast<CacheOpsData *>(data);
}
}
-static void cache_manager_standard_clean_start(GenericDialog *UNUSED(gd), gpointer data)
+static void cache_manager_standard_clean_start(GenericDialog *, gpointer data)
{
auto cd = static_cast<CacheOpsData *>(data);
GList *list;
cache_manager_standard_clean_start(nullptr, cd);
}
-static void cache_manager_standard_clean_cb(GtkWidget *widget, gpointer UNUSED(data))
+static void cache_manager_standard_clean_cb(GtkWidget *widget, gpointer)
{
cache_manager_standard_process(widget, FALSE);
}
-static void cache_manager_standard_clear_cb(GtkWidget *widget, gpointer UNUSED(data))
+static void cache_manager_standard_clear_cb(GtkWidget *widget, gpointer)
{
cache_manager_standard_process(widget, TRUE);
}
-static void cache_manager_main_clean_cb(GtkWidget *widget, gpointer UNUSED(data))
+static void cache_manager_main_clean_cb(GtkWidget *widget, gpointer)
{
cache_maintain_home(FALSE, FALSE, widget);
}
-static void dummy_cancel_cb(GenericDialog *UNUSED(gd), gpointer UNUSED(data))
+static void dummy_cancel_cb(GenericDialog *, gpointer)
{
/* no op, only so cancel button appears */
}
-static void cache_manager_main_clear_ok_cb(GenericDialog *UNUSED(gd), gpointer UNUSED(data))
+static void cache_manager_main_clear_ok_cb(GenericDialog *, gpointer)
{
cache_maintain_home(FALSE, TRUE, nullptr);
}
gtk_widget_show(gd->dialog);
}
-static void cache_manager_main_clear_cb(GtkWidget *widget, gpointer UNUSED(data))
+static void cache_manager_main_clear_cb(GtkWidget *widget, gpointer)
{
cache_manager_main_clear_confirm(widget);
}
-static void cache_manager_render_cb(GtkWidget *widget, gpointer UNUSED(data))
+static void cache_manager_render_cb(GtkWidget *widget, gpointer)
{
const gchar *path = layout_get_path(nullptr);
cache_manager_render_dialog(widget, path);
}
-static void cache_manager_metadata_clean_cb(GtkWidget *widget, gpointer UNUSED(data))
+static void cache_manager_metadata_clean_cb(GtkWidget *widget, gpointer)
{
cache_maintain_home(TRUE, FALSE, widget);
}
static CacheManager *cache_manager = nullptr;
-static void cache_manager_close_cb(GenericDialog *gd, gpointer UNUSED(data))
+static void cache_manager_close_cb(GenericDialog *gd, gpointer)
{
generic_dialog_close(gd);
cache_manager = nullptr;
}
-static void cache_manager_help_cb(GenericDialog *UNUSED(gd), gpointer UNUSED(data))
+static void cache_manager_help_cb(GenericDialog *, gpointer)
{
help_window_show("GuideReferenceManagement.html");
}
cd->cl = nullptr;
}
-static void cache_manager_sim_close_cb(GenericDialog *UNUSED(fd), gpointer data)
+static void cache_manager_sim_close_cb(GenericDialog *, gpointer data)
{
auto cd = static_cast<CacheOpsData *>(data);
}
}
-static void cache_manager_sim_stop_cb(GenericDialog *UNUSED(fd), gpointer data)
+static void cache_manager_sim_stop_cb(GenericDialog *, gpointer data)
{
auto cd = static_cast<CacheOpsData *>(data);
cd->list_dir = g_list_concat(list_d, cd->list_dir);
}
-static void cache_manager_sim_file_done_cb(CacheLoader *UNUSED(cl), gint UNUSED(error), gpointer data)
+static void cache_manager_sim_file_done_cb(CacheLoader *, gint, gpointer data)
{
auto cd = static_cast<CacheOpsData *>(data);
return FALSE;
}
-static void cache_manager_sim_start_cb(GenericDialog *UNUSED(fd), gpointer data)
+static void cache_manager_sim_start_cb(GenericDialog *, gpointer data)
{
auto cd = static_cast<CacheOpsData *>(data);
gchar *path;
gtk_widget_show(cd->gd->dialog);
}
-static void cache_manager_sim_load_cb(GtkWidget *widget, gpointer UNUSED(data))
+static void cache_manager_sim_load_cb(GtkWidget *widget, gpointer)
{
const gchar *path = layout_get_path(nullptr);
cache_manager_sim_load_dialog(widget, path);
}
-static void cache_manager_cache_maintenance_close_cb(GenericDialog *UNUSED(fd), gpointer data)
+static void cache_manager_cache_maintenance_close_cb(GenericDialog *, gpointer data)
{
auto cd = static_cast<CacheOpsData *>(data);
g_free(cd);
}
-static void cache_manager_cache_maintenance_start_cb(GenericDialog *UNUSED(fd), gpointer data)
+static void cache_manager_cache_maintenance_start_cb(GenericDialog *, gpointer data)
{
auto cd = static_cast<CacheOpsData *>(data);
gchar *path;
gtk_widget_show(cd->gd->dialog);
}
-static void cache_manager_cache_maintenance_load_cb(GtkWidget *widget, gpointer UNUSED(data))
+static void cache_manager_cache_maintenance_load_cb(GtkWidget *widget, gpointer)
{
const gchar *path = layout_get_path(nullptr);
}
static void
-gqv_cell_renderer_icon_init_wrapper(void *data, void *UNUSED(user_data))
+gqv_cell_renderer_icon_init_wrapper(void *data, void *)
{
gqv_cell_renderer_icon_init(static_cast<GQvCellRendererIcon *>(data));
}
}
static void
-gqv_cell_renderer_icon_class_init_wrapper(void *data, void *UNUSED(user_data))
+gqv_cell_renderer_icon_class_init_wrapper(void *data, void *)
{
gqv_cell_renderer_icon_class_init(static_cast<GQvCellRendererIconClass *>(data));
}
static void gqv_cell_renderer_icon_render(GtkCellRenderer *cell,
cairo_t *cr,
GtkWidget *widget,
- const GdkRectangle *UNUSED(background_area),
+ const GdkRectangle *,
const GdkRectangle *cell_area,
GtkCellRendererState flags)
GdkEvent *event,
GtkWidget *widget,
const gchar *path,
- const GdkRectangle *UNUSED(background_area),
+ const GdkRectangle *,
const GdkRectangle *cell_area,
- GtkCellRendererState UNUSED(flags))
+ GtkCellRendererState)
{
auto cellicon = reinterpret_cast<GQvCellRendererIcon *>(cell);
GdkEventButton *bevent = &event->button;
static gboolean collection_save_confirmed(FileDialog *fd, gboolean overwrite, CollectionData *cd);
-static void collection_confirm_ok_cb(GenericDialog *UNUSED(gd), gpointer data)
+static void collection_confirm_ok_cb(GenericDialog *, gpointer data)
{
auto fd = static_cast<FileDialog *>(data);
auto cd = static_cast<CollectionData *>(GENERIC_DIALOG(fd)->data);
}
}
-static void collection_confirm_cancel_cb(GenericDialog *UNUSED(gd), gpointer UNUSED(data))
+static void collection_confirm_cancel_cb(GenericDialog *, gpointer)
{
/* this is a no-op, so the cancel button is added */
}
if (cd->info_updated_func) cd->info_updated_func(cd, cd->thumb_info, cd->info_updated_data);
}
-static void collection_load_thumb_error_cb(ThumbLoader *UNUSED(tl), gpointer data)
+static void collection_load_thumb_error_cb(ThumbLoader *, gpointer data)
{
auto cd = static_cast<CollectionData *>(data);
collection_load_thumb_step(cd);
}
-static void collection_load_thumb_done_cb(ThumbLoader *UNUSED(tl), gpointer data)
+static void collection_load_thumb_done_cb(ThumbLoader *, gpointer data)
{
auto cd = static_cast<CollectionData *>(data);
-static gboolean collect_manager_process_cb(gpointer UNUSED(data))
+static gboolean collect_manager_process_cb(gpointer)
{
if (collection_manager_action_list) collect_manager_refresh();
collect_manager_process_actions(COLLECT_MANAGER_ACTIONS_PER_IDLE);
return G_SOURCE_REMOVE;
}
-static gboolean collect_manager_timer_cb(gpointer UNUSED(data))
+static gboolean collect_manager_timer_cb(gpointer)
{
DEBUG_1("collection manager timer expired");
while (collect_manager_process_cb(nullptr));
}
-void collect_manager_notify_cb(FileData *fd, NotifyType type, gpointer UNUSED(data))
+void collect_manager_notify_cb(FileData *fd, NotifyType type, gpointer)
{
if (!(type & NOTIFY_CHANGE) || !fd->change) return;
*-------------------------------------------------------------------
*/
-static void collection_table_popup_save_as_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void collection_table_popup_save_as_cb(GtkWidget *, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
file_util_start_editor_from_filelist(key, collection_table_popup_file_list(ct), nullptr, ct->listview);
}
-static void collection_table_popup_copy_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void collection_table_popup_copy_cb(GtkWidget *, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
file_util_copy(nullptr, collection_table_popup_file_list(ct), nullptr, ct->listview);
}
-static void collection_table_popup_move_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void collection_table_popup_move_cb(GtkWidget *, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
file_util_move(nullptr, collection_table_popup_file_list(ct), nullptr, ct->listview);
}
-static void collection_table_popup_rename_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void collection_table_popup_rename_cb(GtkWidget *, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
file_util_rename(nullptr, collection_table_popup_file_list(ct), ct->listview);
}
-static void collection_table_popup_delete_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void collection_table_popup_delete_cb(GtkWidget *, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
file_util_delete(nullptr, collection_table_popup_file_list(ct), ct->listview);
}
-static void collection_table_popup_move_to_trash_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void collection_table_popup_move_to_trash_cb(GtkWidget *, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
file_util_delete(nullptr, collection_table_popup_file_list(ct), ct->listview);
}
-static void collection_table_popup_copy_path_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void collection_table_popup_copy_path_cb(GtkWidget *, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
file_util_copy_path_list_to_clipboard(collection_table_popup_file_list(ct), TRUE);
}
-static void collection_table_popup_copy_path_unquoted_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void collection_table_popup_copy_path_unquoted_cb(GtkWidget *, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
collection_set_sort_method(ct->cd, type);
}
-static void collection_table_popup_randomize_cb(GtkWidget *widget, gpointer UNUSED(data))
+static void collection_table_popup_randomize_cb(GtkWidget *widget, gpointer)
{
CollectTable *ct;
collection_randomize(ct->cd);
}
-static void collection_table_popup_view_new_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void collection_table_popup_view_new_cb(GtkWidget *, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
}
}
-static void collection_table_popup_view_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void collection_table_popup_view_cb(GtkWidget *, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
}
}
-static void collection_table_popup_selectall_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void collection_table_popup_selectall_cb(GtkWidget *, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
ct->prev_selection= ct->click_info;
}
-static void collection_table_popup_unselectall_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void collection_table_popup_unselectall_cb(GtkWidget *, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
ct->prev_selection= ct->click_info;
}
-static void collection_table_popup_select_invert_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void collection_table_popup_select_invert_cb(GtkWidget *, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
ct->prev_selection= ct->click_info;
}
-static void collection_table_popup_rectangular_selection_cb(GtkWidget *UNUSED(widget), gpointer UNUSED(data))
+static void collection_table_popup_rectangular_selection_cb(GtkWidget *, gpointer)
{
options->collections.rectangular_selection = !(options->collections.rectangular_selection);
}
-static void collection_table_popup_remove_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void collection_table_popup_remove_cb(GtkWidget *, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
GList *list;
g_list_free(list);
}
-static void collection_table_popup_add_file_selection_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void collection_table_popup_add_file_selection_cb(GtkWidget *, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
GList *list;
}
}
-static void collection_table_popup_add_collection_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void collection_table_popup_add_collection_cb(GtkWidget *, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
collection_dialog_append(nullptr, ct->cd);
}
-static void collection_table_popup_goto_original_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void collection_table_popup_goto_original_cb(GtkWidget *, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
GList *list;
g_list_free(list);
}
-static void collection_table_popup_find_dupes_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void collection_table_popup_find_dupes_cb(GtkWidget *, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
DupeWindow *dw;
dupe_window_add_collection(dw, ct->cd);
}
-static void collection_table_popup_print_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void collection_table_popup_print_cb(GtkWidget *, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
FileData *fd;
print_window_new(fd, collection_table_selection_get_list(ct), collection_table_get_list(ct), gtk_widget_get_toplevel(ct->listview));
}
-static void collection_table_popup_show_names_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void collection_table_popup_show_names_cb(GtkWidget *, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
collection_table_toggle_filenames(ct);
}
-static void collection_table_popup_show_stars_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void collection_table_popup_show_stars_cb(GtkWidget *, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
collection_table_toggle_stars(ct);
}
-static void collection_table_popup_destroy_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void collection_table_popup_destroy_cb(GtkWidget *, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
return G_SOURCE_REMOVE;
}
-static gboolean collection_table_auto_scroll_notify_cb(GtkWidget *UNUSED(widget), gint UNUSED(x), gint UNUSED(y), gpointer data)
+static gboolean collection_table_auto_scroll_notify_cb(GtkWidget *, gint, gint, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
*-------------------------------------------------------------------
*/
-static gboolean collection_table_motion_cb(GtkWidget *UNUSED(widget), GdkEventMotion *event, gpointer data)
+static gboolean collection_table_motion_cb(GtkWidget *, GdkEventMotion *event, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
return FALSE;
}
-static gboolean collection_table_press_cb(GtkWidget *UNUSED(widget), GdkEventButton *bevent, gpointer data)
+static gboolean collection_table_press_cb(GtkWidget *, GdkEventButton *bevent, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
GtkTreeIter iter;
return TRUE;
}
-static gboolean collection_table_release_cb(GtkWidget *UNUSED(widget), GdkEventButton *bevent, gpointer data)
+static gboolean collection_table_release_cb(GtkWidget *, GdkEventButton *bevent, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
GtkTreeIter iter;
return TRUE;
}
-static gboolean collection_table_leave_cb(GtkWidget *UNUSED(widget), GdkEventCrossing *UNUSED(event), gpointer data)
+static gboolean collection_table_leave_cb(GtkWidget *, GdkEventCrossing *, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
*-------------------------------------------------------------------
*/
-static gboolean collection_table_destroy_node_cb(GtkTreeModel *store, GtkTreePath *UNUSED(tpath), GtkTreeIter *iter, gpointer UNUSED(data))
+static gboolean collection_table_destroy_node_cb(GtkTreeModel *store, GtkTreePath *, GtkTreeIter *iter, gpointer)
{
GList *list;
collection_table_update_status(ct);
}
-static void collection_table_populate_at_new_size(CollectTable *ct, gint w, gint UNUSED(h), gboolean force)
+static void collection_table_populate_at_new_size(CollectTable *ct, gint w, gint, gboolean force)
{
gint new_cols;
gint thumb_width;
}
}
-void collection_table_file_add(CollectTable *ct, CollectInfo *UNUSED(info))
+void collection_table_file_add(CollectTable *ct, CollectInfo *)
{
collection_table_sync_idle(ct);
}
-void collection_table_file_insert(CollectTable *ct, CollectInfo *UNUSED(ci))
+void collection_table_file_insert(CollectTable *ct, CollectInfo *)
{
collection_table_sync_idle(ct);
}
}
-static void confirm_dir_list_add(GtkWidget *UNUSED(widget), gpointer data)
+static void confirm_dir_list_add(GtkWidget *, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
confirm_dir_list_do(ct, ct->drop_list, FALSE);
}
-static void confirm_dir_list_recurse(GtkWidget *UNUSED(widget), gpointer data)
+static void confirm_dir_list_recurse(GtkWidget *, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
confirm_dir_list_do(ct, ct->drop_list, TRUE);
}
-static void confirm_dir_list_skip(GtkWidget *UNUSED(widget), gpointer data)
+static void confirm_dir_list_skip(GtkWidget *, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
static gint n_collection_drop_types = 2;
-static void collection_table_dnd_get(GtkWidget *UNUSED(widget), GdkDragContext *UNUSED(context),
+static void collection_table_dnd_get(GtkWidget *, GdkDragContext *,
GtkSelectionData *selection_data, guint info,
- guint UNUSED(time), gpointer data)
+ guint, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
gboolean selected;
}
-static void collection_table_dnd_receive(GtkWidget *UNUSED(widget), GdkDragContext *context,
+static void collection_table_dnd_receive(GtkWidget *, GdkDragContext *context,
gint x, gint y,
GtkSelectionData *selection_data, guint info,
- guint UNUSED(time), gpointer data)
+ guint, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
GList *list = nullptr;
}
}
-static void collection_table_dnd_end(GtkWidget *UNUSED(widget), GdkDragContext *UNUSED(context), gpointer data)
+static void collection_table_dnd_end(GtkWidget *, GdkDragContext *, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
collection_table_scroll(ct, FALSE);
}
-static gint collection_table_dnd_motion(GtkWidget *UNUSED(widget), GdkDragContext *UNUSED(context),
- gint x, gint y, guint UNUSED(time), gpointer data)
+static gint collection_table_dnd_motion(GtkWidget *, GdkDragContext *, gint x, gint y, guint, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
return FALSE;
}
-static void collection_table_dnd_leave(GtkWidget *UNUSED(widget), GdkDragContext *UNUSED(context), guint UNUSED(time), gpointer data)
+static void collection_table_dnd_leave(GtkWidget *, GdkDragContext *, guint, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
gint number;
};
-static void collection_table_cell_data_cb(GtkTreeViewColumn *UNUSED(tree_column), GtkCellRenderer *cell,
+static void collection_table_cell_data_cb(GtkTreeViewColumn *, GtkCellRenderer *cell,
GtkTreeModel *tree_model, GtkTreeIter *iter, gpointer data)
{
auto cd = static_cast<ColumnData *>(data);
*-------------------------------------------------------------------
*/
-static void collection_table_destroy(GtkWidget *UNUSED(widget), gpointer data)
+static void collection_table_destroy(GtkWidget *, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
g_free(ct);
}
-static void collection_table_sized(GtkWidget *UNUSED(widget), GtkAllocation *allocation, gpointer data)
+static void collection_table_sized(GtkWidget *, GtkAllocation *allocation, gpointer data)
{
auto ct = static_cast<CollectTable *>(data);
*-------------------------------------------------------------------
*/
-CollectInfo *collection_info_new(FileData *fd, struct stat *UNUSED(st), GdkPixbuf *pixbuf)
+CollectInfo *collection_info_new(FileData *fd, struct stat *, GdkPixbuf *pixbuf)
{
CollectInfo *ci;
*-------------------------------------------------------------------
*/
-static gboolean collection_window_keypress(GtkWidget *UNUSED(widget), GdkEventKey *event, gpointer data)
+static gboolean collection_window_keypress(GtkWidget *, GdkEventKey *event, gpointer data)
{
auto cw = static_cast<CollectWindow *>(data);
gboolean stop_signal = FALSE;
g_free(buf);
}
-static void collection_window_update_info(CollectionData *UNUSED(cd), CollectInfo *ci, gpointer data)
+static void collection_window_update_info(CollectionData *, CollectInfo *ci, gpointer data)
{
auto cw = static_cast<CollectWindow *>(data);
return ret;
}
-static gboolean collection_window_delete(GtkWidget *UNUSED(widget), GdkEvent *UNUSED(event), gpointer data)
+static gboolean collection_window_delete(GtkWidget *, GdkEvent *, gpointer data)
{
auto cw = static_cast<CollectWindow *>(data);
collection_window_close(cw);
return profile;
}
#else
-guchar *heif_color_profile(FileData *UNUSED(fd), guint *UNUSED(profile_len))
+guchar *heif_color_profile(FileData *, guint *)
{
return NULL;
}
/*** color support not enabled ***/
-ColorMan *color_man_new(ImageWindow *UNUSED(imd), GdkPixbuf *UNUSED(pixbuf),
- ColorManProfileType UNUSED(input_type), const gchar *UNUSED(input_file),
- ColorManProfileType UNUSED(screen_type), const gchar *UNUSED(screen_file),
- guchar *UNUSED(screen_data), guint UNUSED(screen_data_len))
+ColorMan *color_man_new(ImageWindow *, GdkPixbuf *,
+ ColorManProfileType, const gchar *,
+ ColorManProfileType, const gchar *,
+ guchar *, guint)
{
/* no op */
return nullptr;
}
-ColorMan *color_man_new_embedded(ImageWindow *UNUSED(imd), GdkPixbuf *UNUSED(pixbuf),
- guchar *UNUSED(input_data), guint UNUSED(input_data_len),
- ColorManProfileType UNUSED(screen_type), const gchar *UNUSED(screen_file),
- guchar *UNUSED(screen_data), guint UNUSED(screen_data_len))
+ColorMan *color_man_new_embedded(ImageWindow *, GdkPixbuf *,
+ guchar *, guint,
+ ColorManProfileType, const gchar *,
+ guchar *, guint)
{
/* no op */
return nullptr;
}
-void color_man_free(ColorMan *UNUSED(cm))
+void color_man_free(ColorMan *)
{
/* no op */
}
/* no op */
}
-void color_man_correct_region(ColorMan *UNUSED(cm), GdkPixbuf *UNUSED(pixbuf), gint UNUSED(x), gint UNUSED(y), gint UNUSED(w), gint UNUSED(h))
+void color_man_correct_region(ColorMan *, GdkPixbuf *, gint, gint, gint, gint)
{
/* no op */
}
-gboolean color_man_get_status(ColorMan *UNUSED(cm), gchar **UNUSED(image_profile), gchar **UNUSED(screen_profile))
+gboolean color_man_get_status(ColorMan *, gchar **, gchar **)
{
return FALSE;
}
-guchar *heif_color_profile(FileData *UNUSED(fd), guint *UNUSED(profile_len))
+guchar *heif_color_profile(FileData *, guint *)
{
return nullptr;
}
}
}
#else
-void log_print_backtrace(const gchar *UNUSED(file), const gchar *UNUSED(function), gint UNUSED(line))
+void log_print_backtrace(const gchar *, const gchar *, gint)
{
}
#endif
return ret;
}
-static void editor_window_close_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void editor_window_close_cb(GtkWidget *, gpointer data)
{
auto ew = static_cast<EditorWindow *>(data);
g_free(ew);
}
-static gint editor_window_delete_cb(GtkWidget *w, GdkEventAny *UNUSED(event), gpointer data)
+static gint editor_window_delete_cb(GtkWidget *w, GdkEventAny *, gpointer data)
{
editor_window_close_cb(w, data);
return TRUE;
}
-static void editor_window_save_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void editor_window_save_cb(GtkWidget *, gpointer data)
{
auto ew = static_cast<EditorWindow *>(data);
ew->modified = FALSE;
}
-static void editor_window_text_modified_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void editor_window_text_modified_cb(GtkWidget *, gpointer data)
{
auto ew = static_cast<EditorWindow *>(data);
}
}
-static void editor_window_entry_changed_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void editor_window_entry_changed_cb(GtkWidget *, gpointer data)
{
auto ew = static_cast<EditorWindow *>(data);
const gchar *content = gtk_entry_get_text(GTK_ENTRY(ew->entry));
}
-static void editor_list_window_close_cb(GtkWidget *UNUSED(widget), gpointer UNUSED(data))
+static void editor_list_window_close_cb(GtkWidget *, gpointer)
{
gtk_widget_destroy(editor_list_window->window);
g_free(editor_list_window);
editor_list_window = nullptr;
}
-static gboolean editor_list_window_delete(GtkWidget *UNUSED(widget), GdkEventAny *UNUSED(event), gpointer UNUSED(data))
+static gboolean editor_list_window_delete(GtkWidget *, GdkEventAny *, gpointer)
{
editor_list_window_close_cb(nullptr, nullptr);
return TRUE;
static void editor_list_window_delete_dlg_cancel(GenericDialog *gd, gpointer data);
-static void editor_list_window_delete_dlg_cancel(GenericDialog *UNUSED(gd), gpointer data)
+static void editor_list_window_delete_dlg_cancel(GenericDialog *, gpointer data)
{
auto ewdl = static_cast<EditorWindowDel_Data *>(data);
editor_list_window_delete_dlg_cancel(gd, data);
}
-static void editor_list_window_delete_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void editor_list_window_delete_cb(GtkWidget *, gpointer data)
{
auto ewl = static_cast<EditorListWindow *>(data);
GtkTreeSelection *sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(ewl->view));
}
}
-static void editor_list_window_edit_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void editor_list_window_edit_cb(GtkWidget *, gpointer data)
{
auto ewl = static_cast<EditorListWindow *>(data);
GtkTreeSelection *sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(ewl->view));
}
}
-static void editor_list_window_new_cb(GtkWidget *UNUSED(widget), gpointer UNUSED(data))
+static void editor_list_window_new_cb(GtkWidget *, gpointer)
{
editor_window_new(desktop_file_template, _("new.desktop"));
}
-static void editor_list_window_help_cb(GtkWidget *UNUSED(widget), gpointer UNUSED(data))
+static void editor_list_window_help_cb(GtkWidget *, gpointer)
{
help_window_show("GuidePluginsConfig.html");
}
-static void editor_list_window_selection_changed_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void editor_list_window_selection_changed_cb(GtkWidget *, gpointer data)
{
auto ewl = static_cast<EditorListWindow *>(data);
GtkTreeSelection *sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(ewl->view));
return ret;
}
-static void plugin_disable_cb(GtkCellRendererToggle *UNUSED(renderer), gchar *path_str, gpointer data)
+static void plugin_disable_cb(GtkCellRendererToggle *, gchar *path_str, gpointer data)
{
auto ewl = static_cast<EditorListWindow *>(data);
GtkTreePath *tpath;
layout_editors_reload_finish();
}
-static void plugin_disable_set_func(GtkTreeViewColumn *UNUSED(tree_column), GtkCellRenderer *cell,
- GtkTreeModel *tree_model, GtkTreeIter *iter, gpointer UNUSED(data))
+static void plugin_disable_set_func(GtkTreeViewColumn *, GtkCellRenderer *cell,
+ GtkTreeModel *tree_model, GtkTreeIter *iter, gpointer)
{
gboolean disabled;
g_object_unref(dest);
}
-static void dnd_set_drag_label_end_cb(GtkWidget *widget, GdkDragContext *UNUSED(context), gpointer data)
+static void dnd_set_drag_label_end_cb(GtkWidget *widget, GdkDragContext *, gpointer data)
{
auto window = static_cast<GtkWidget *>(data);
g_signal_handlers_disconnect_by_func(widget, (gpointer)dnd_set_drag_label_end_cb, data);
}
-static GList *dupe_listview_get_filelist(DupeWindow *UNUSED(dw), GtkWidget *listview)
+static GList *dupe_listview_get_filelist(DupeWindow *, GtkWidget *listview)
{
GtkTreeModel *store;
GtkTreeIter iter;
}
-static GList *dupe_listview_get_selection(DupeWindow *UNUSED(dw), GtkWidget *listview)
+static GList *dupe_listview_get_selection(DupeWindow *, GtkWidget *listview)
{
GtkTreeModel *store;
GtkTreeSelection *selection;
return g_list_reverse(list);
}
-static gboolean dupe_listview_item_is_selected(DupeWindow *UNUSED(dw), DupeItem *di, GtkWidget *listview)
+static gboolean dupe_listview_item_is_selected(DupeWindow *, DupeItem *di, GtkWidget *listview)
{
GtkTreeModel *store;
GtkTreeSelection *selection;
dupe_listview_set_thumb(dw, di, nullptr);
}
-static void dupe_thumb_error_cb(ThumbLoader *UNUSED(tl), gpointer data)
+static void dupe_thumb_error_cb(ThumbLoader *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
dupe_thumb_step(dw);
}
-static void dupe_thumb_done_cb(ThumbLoader *UNUSED(tl), gpointer data)
+static void dupe_thumb_done_cb(ThumbLoader *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
dw->img_loader = nullptr;
}
-static void dupe_check_stop_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dupe_check_stop_cb(GtkWidget *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
}
}
-static void dupe_files_add(DupeWindow *dw, CollectionData *UNUSED(collection), CollectInfo *info,
+static void dupe_files_add(DupeWindow *dw, CollectionData *, CollectInfo *info,
FileData *fd, gboolean recurse)
{
DupeItem *di = nullptr;
*-------------------------------------------------------------------
*/
-static void dupe_menu_view_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dupe_menu_view_cb(GtkWidget *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
if (dw->click_item) dupe_menu_view(dw, dw->click_item, dw->listview, FALSE);
}
-static void dupe_menu_viewnew_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dupe_menu_viewnew_cb(GtkWidget *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
if (dw->click_item) dupe_menu_view(dw, dw->click_item, dw->listview, TRUE);
}
-static void dupe_menu_select_all_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dupe_menu_select_all_cb(GtkWidget *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
GtkTreeSelection *selection;
gtk_tree_selection_select_all(selection);
}
-static void dupe_menu_select_none_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dupe_menu_select_none_cb(GtkWidget *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
GtkTreeSelection *selection;
gtk_tree_selection_unselect_all(selection);
}
-static void dupe_menu_select_dupes_set1_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dupe_menu_select_dupes_set1_cb(GtkWidget *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
dupe_listview_select_dupes(dw, DUPE_SELECT_GROUP1);
}
-static void dupe_menu_select_dupes_set2_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dupe_menu_select_dupes_set2_cb(GtkWidget *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
dupe_window_edit_selected(dw, key);
}
-static void dupe_menu_print_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dupe_menu_print_cb(GtkWidget *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
FileData *fd;
dupe_listview_get_filelist(dw, dw->listview), dw->window);
}
-static void dupe_menu_copy_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dupe_menu_copy_cb(GtkWidget *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
file_util_copy(nullptr, dupe_listview_get_selection(dw, dw->listview), nullptr, dw->window);
}
-static void dupe_menu_move_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dupe_menu_move_cb(GtkWidget *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
file_util_move(nullptr, dupe_listview_get_selection(dw, dw->listview), nullptr, dw->window);
}
-static void dupe_menu_rename_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dupe_menu_rename_cb(GtkWidget *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
file_util_rename(nullptr, dupe_listview_get_selection(dw, dw->listview), dw->window);
}
-static void dupe_menu_delete_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dupe_menu_delete_cb(GtkWidget *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
file_util_delete_notify_done(nullptr, dupe_listview_get_selection(dw, dw->listview), dw->window, delete_finished_cb, dw);
}
-static void dupe_menu_move_to_trash_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dupe_menu_move_to_trash_cb(GtkWidget *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
file_util_delete_notify_done(nullptr, dupe_listview_get_selection(dw, dw->listview), dw->window, delete_finished_cb, dw);
}
-static void dupe_menu_copy_path_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dupe_menu_copy_path_cb(GtkWidget *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
file_util_copy_path_list_to_clipboard(dupe_listview_get_selection(dw, dw->listview), TRUE);
}
-static void dupe_menu_copy_path_unquoted_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dupe_menu_copy_path_unquoted_cb(GtkWidget *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
file_util_copy_path_list_to_clipboard(dupe_listview_get_selection(dw, dw->listview), FALSE);
}
-static void dupe_menu_remove_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dupe_menu_remove_cb(GtkWidget *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
dupe_window_remove_selection(dw, dw->listview);
}
-static void dupe_menu_clear_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dupe_menu_clear_cb(GtkWidget *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
dupe_window_clear(dw);
}
-static void dupe_menu_close_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dupe_menu_close_cb(GtkWidget *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
dupe_window_close(dw);
}
-static void dupe_menu_popup_destroy_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dupe_menu_popup_destroy_cb(GtkWidget *, gpointer data)
{
auto editmenu_fd_list = static_cast<GList *>(data);
dupe_second_update_status(dw);
}
-static void dupe_second_menu_view_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dupe_second_menu_view_cb(GtkWidget *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
if (dw->click_item) dupe_menu_view(dw, dw->click_item, dw->second_listview, FALSE);
}
-static void dupe_second_menu_viewnew_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dupe_second_menu_viewnew_cb(GtkWidget *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
if (dw->click_item) dupe_menu_view(dw, dw->click_item, dw->second_listview, TRUE);
}
-static void dupe_second_menu_select_all_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dupe_second_menu_select_all_cb(GtkWidget *, gpointer data)
{
GtkTreeSelection *selection;
auto dw = static_cast<DupeWindow *>(data);
gtk_tree_selection_select_all(selection);
}
-static void dupe_second_menu_select_none_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dupe_second_menu_select_none_cb(GtkWidget *, gpointer data)
{
GtkTreeSelection *selection;
auto dw = static_cast<DupeWindow *>(data);
gtk_tree_selection_unselect_all(selection);
}
-static void dupe_second_menu_remove_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dupe_second_menu_remove_cb(GtkWidget *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
dupe_window_remove_selection(dw, dw->second_listview);
}
-static void dupe_second_menu_clear_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dupe_second_menu_clear_cb(GtkWidget *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
return &color;
}
-static void dupe_listview_color_cb(GtkTreeViewColumn *UNUSED(tree_column), GtkCellRenderer *cell,
+static void dupe_listview_color_cb(GtkTreeViewColumn *, GtkCellRenderer *cell,
GtkTreeModel *tree_model, GtkTreeIter *iter, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
g_free(dw);
}
-static gint dupe_window_close_cb(GtkWidget *UNUSED(widget), gpointer data)
+static gint dupe_window_close_cb(GtkWidget *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
return TRUE;
}
-static gint dupe_window_delete(GtkWidget *UNUSED(widget), GdkEvent *UNUSED(event), gpointer data)
+static gint dupe_window_delete(GtkWidget *, GdkEvent *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
dupe_window_close(dw);
return TRUE;
}
-static void dupe_help_cb(GtkAction *UNUSED(action), gpointer UNUSED(data))
+static void dupe_help_cb(GtkAction *, gpointer)
{
help_window_show("GuideImageSearchFindingDuplicates.html");
}
-static gint default_sort_cb(GtkTreeModel *UNUSED(model), GtkTreeIter *UNUSED(a), GtkTreeIter *UNUSED(b), gpointer UNUSED(data))
+static gint default_sort_cb(GtkTreeModel *, GtkTreeIter *, GtkTreeIter *, gpointer)
{
return 0;
}
return ret;
}
-static void column_clicked_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void column_clicked_cb(GtkWidget *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
GList *list;
};
-static void confirm_dir_list_cancel(GtkWidget *UNUSED(widget), gpointer UNUSED(data))
+static void confirm_dir_list_cancel(GtkWidget *, gpointer)
{
/* do nothing */
}
-static void confirm_dir_list_add(GtkWidget *UNUSED(widget), gpointer data)
+static void confirm_dir_list_add(GtkWidget *, gpointer data)
{
auto d = static_cast<CDupeConfirmD *>(data);
GList *work;
}
}
-static void confirm_dir_list_recurse(GtkWidget *UNUSED(widget), gpointer data)
+static void confirm_dir_list_recurse(GtkWidget *, gpointer data)
{
auto d = static_cast<CDupeConfirmD *>(data);
dupe_window_add_files(d->dw, d->list, TRUE);
}
-static void confirm_dir_list_skip(GtkWidget *UNUSED(widget), gpointer data)
+static void confirm_dir_list_skip(GtkWidget *, gpointer data)
{
auto d = static_cast<CDupeConfirmD *>(data);
dupe_window_add_files(d->dw, d->list, FALSE);
}
-static void confirm_dir_list_destroy(GtkWidget *UNUSED(widget), gpointer data)
+static void confirm_dir_list_destroy(GtkWidget *, gpointer data)
{
auto d = static_cast<CDupeConfirmD *>(data);
filelist_free(d->list);
};
static gint n_dupe_drop_types = 2;
-static void dupe_dnd_data_set(GtkWidget *widget, GdkDragContext *UNUSED(context),
+static void dupe_dnd_data_set(GtkWidget *widget, GdkDragContext *,
GtkSelectionData *selection_data, guint info,
- guint UNUSED(time), gpointer data)
+ guint, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
GList *list;
}
static void dupe_dnd_data_get(GtkWidget *widget, GdkDragContext *context,
- gint UNUSED(x), gint UNUSED(y),
+ gint, gint,
GtkSelectionData *selection_data, guint info,
- guint UNUSED(time), gpointer data)
+ guint, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
GtkWidget *source;
}
}
-static void dupe_dnd_end(GtkWidget *UNUSED(widget), GdkDragContext *UNUSED(context), gpointer data)
+static void dupe_dnd_end(GtkWidget *, GdkDragContext *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
dupe_dest_set(dw->listview, TRUE);
* the UI slows to an unacceptable level. The #FileUtilDoneFunc is used
* to call this function once, when the entire delete operation is completed.
*/
-static void delete_finished_cb(gboolean success, const gchar *UNUSED(dest_path), gpointer data)
+static void delete_finished_cb(gboolean success, const gchar *, gpointer data)
{
auto dw = static_cast<DupeWindow *>(data);
edd->dialog = nullptr;
}
-static void export_duplicates_data_cancel_cb(FileDialog *UNUSED(fdlg), gpointer data)
+static void export_duplicates_data_cancel_cb(FileDialog *, gpointer data)
{
auto edd = static_cast<ExportDupesData *>(data);
export_duplicates_close(edd);
}
-static void pop_menu_export(GList *UNUSED(selection_list), gpointer dupe_window, gpointer data)
+static void pop_menu_export(GList *, gpointer dupe_window, gpointer data)
{
const gint index = GPOINTER_TO_INT(data);
auto dw = static_cast<DupeWindow *>(dupe_window);
return TRUE;
}
-static gboolean editor_remove_desktop_file_cb(gpointer UNUSED(key), gpointer value, gpointer UNUSED(user_data))
+static gboolean editor_remove_desktop_file_cb(gpointer, gpointer value, gpointer)
{
auto editor = static_cast<EditorDescription *>(value);
return editor->hidden || editor->ignored;
return list;
}
-static void editor_list_add_cb(gpointer UNUSED(key), gpointer value, gpointer data)
+static void editor_list_add_cb(gpointer, gpointer value, gpointer data)
{
auto listp = static_cast<GList **>(data);
auto editor = static_cast<EditorDescription *>(value);
if (ed->pid == -1) editor_data_free(ed); /* the process has already terminated */
}
-static void editor_verbose_window_stop(GenericDialog *UNUSED(gd), gpointer data)
+static void editor_verbose_window_stop(GenericDialog *, gpointer data)
{
auto ed = static_cast<EditorData *>(data);
ed->stopping = TRUE;
return g_strdup_printf("%s (%d%d%d%d)", pbuf, mb, mu, mg, mo);
}
-gchar *metadata_file_info(FileData *fd, const gchar *key, MetadataFormat UNUSED(format))
+gchar *metadata_file_info(FileData *fd, const gchar *key, MetadataFormat)
{
gchar *page_n_of_m;
}
#ifdef HAVE_LUA
-gchar *metadata_lua_info(FileData *fd, const gchar *key, MetadataFormat UNUSED(format))
+gchar *metadata_lua_info(FileData *fd, const gchar *key, MetadataFormat)
{
gchar *script_name;
gchar *script_name_utf8;
}
-gchar* exif_get_image_comment(FileData* UNUSED(fd))
+gchar* exif_get_image_comment(FileData*)
{
log_printf("%s", _("Can't get image comment: not compiled with Exiv2.\n"));
return g_strdup("");
}
-void exif_set_image_comment(FileData* UNUSED(fd), const gchar* UNUSED(comment))
+void exif_set_image_comment(FileData*, const gchar*)
{
log_printf("%s", _("Can't set image comment: not compiled with Exiv2.\n"));
}
g_free(exif);
}
-ExifData *exif_read(gchar *path, gchar *UNUSED(sidecar_path), GHashTable *UNUSED(modified_xmp))
+ExifData *exif_read(gchar *path, gchar *, GHashTable *)
{
ExifData *exif;
gpointer f;
return text;
}
-gchar *exif_item_get_string(ExifItem *item, gint UNUSED(idx))
+gchar *exif_item_get_string(ExifItem *item, gint)
{
return exif_item_get_data_as_text_full(item, METADATA_PLAIN);
}
-gchar *exif_item_get_data_as_text(ExifItem *item, ExifData *UNUSED(exif))
+gchar *exif_item_get_data_as_text(ExifItem *item, ExifData *)
{
return exif_item_get_data_as_text_full(item, METADATA_FORMATTED);
}
g_fprintf(f, "----------------------------------------------------\n");
}
-gboolean exif_write(ExifData *UNUSED(exif))
+gboolean exif_write(ExifData *)
{
log_printf("Not compiled with EXIF write support\n");
return FALSE;
}
-gboolean exif_write_sidecar(ExifData *UNUSED(exif), gchar *UNUSED(path))
+gboolean exif_write_sidecar(ExifData *, gchar *)
{
log_printf("Not compiled with EXIF write support\n");
return FALSE;
}
-gint exif_update_metadata(ExifData *UNUSED(exif), const gchar *UNUSED(key), const GList *UNUSED(values))
+gint exif_update_metadata(ExifData *, const gchar *, const GList *)
{
return 0;
}
static GList *exif_unmap_list = nullptr;
-guchar *exif_get_preview(ExifData *exif, guint *data_len, gint UNUSED(requested_width), gint UNUSED(requested_height))
+guchar *exif_get_preview(ExifData *exif, guint *data_len, gint, gint)
{
guint offset;
const gchar* path;
virtual ~ExifData() = default;
- virtual void writeMetadata(gchar *UNUSED(path) = nullptr)
+ virtual void writeMetadata(gchar * = nullptr)
{
g_critical("Unsupported method of writing metadata");
}
}
}
-const char *exif_item_get_format_name(ExifItem *item, gboolean UNUSED(brief))
+const char *exif_item_get_format_name(ExifItem *item, gboolean)
{
try {
if (!item) return nullptr;
file_data_basename_hash_insert(static_cast<GHashTable *>(basename_hash), static_cast<FileData *>(fd));
}
-static void file_data_basename_hash_remove_list(gpointer UNUSED(key), gpointer value, gpointer UNUSED(data))
+static void file_data_basename_hash_remove_list(gpointer, gpointer value, gpointer)
{
filelist_free(static_cast<GList *>(value));
}
return flist_filtered;
}
-static void file_data_basename_hash_to_sidecars(gpointer UNUSED(key), gpointer value, gpointer UNUSED(data))
+static void file_data_basename_hash_to_sidecars(gpointer, gpointer value, gpointer)
{
auto basename_list = static_cast<GList *>(value);
file_data_check_sidecars(basename_list);
return list;
}
-static void file_data_notify_mark_func(gpointer UNUSED(key), gpointer value, gpointer UNUSED(user_data))
+static void file_data_notify_mark_func(gpointer, gpointer value, gpointer)
{
auto fd = static_cast<FileData *>(value);
file_data_increment_version(fd);
static GHashTable *file_data_monitor_pool = nullptr;
static guint realtime_monitor_id = 0; /* event source id */
-static void realtime_monitor_check_cb(gpointer key, gpointer UNUSED(value), gpointer UNUSED(data))
+static void realtime_monitor_check_cb(gpointer key, gpointer, gpointer)
{
auto fd = static_cast<FileData *>(key);
DEBUG_1("monitor %s", fd->path);
}
-static gboolean realtime_monitor_cb(gpointer UNUSED(data))
+static gboolean realtime_monitor_cb(gpointer)
{
if (!options->update_on_time_change) return TRUE;
g_hash_table_foreach(file_data_monitor_pool, realtime_monitor_check_cb, nullptr);
return (secure_close(ssi) == 0);
}
-static void marks_clear(gpointer key, gpointer value, gpointer UNUSED(userdata))
+static void marks_clear(gpointer key, gpointer value, gpointer)
{
auto file_name = static_cast<gchar *>(key);
gint mark_no;
}
gboolean format_canon_raw_cr2(guchar *data, const guint len,
- guint *image_offset, guint *UNUSED(exif_offset))
+ guint *image_offset, guint *)
{
guint jpeg_offset = 0;
ExifByteOrder bo;
#define CRW_DIR_ENTRY_SIZE 10
gboolean format_canon_raw_crw(guchar *data, const guint len,
- guint *image_offset, guint *UNUSED(exif_offset))
+ guint *image_offset, guint *)
{
guint block_offset;
guint data_length;
gboolean format_fuji_makernote(ExifData *exif, guchar *tiff, guint offset,
- guint size, ExifByteOrder UNUSED(bo))
+ guint size, ExifByteOrder)
{
guchar *data;
guint ifdstart;
}
gboolean format_nikon_raw(guchar *data, const guint len,
- guint *image_offset, guint *UNUSED(exif_offset))
+ guint *image_offset, guint *)
{
guint i_off = 0;
guint i_len = 0;
static void olympus_tiff_entry(guchar *data, const guint len, guint offset, ExifByteOrder bo,
- gint UNUSED(level),
+ gint,
guint *image_offset, guint *exif_offset)
{
guint tag;
fs->hide_mouse_id = g_timeout_add(FULL_SCREEN_HIDE_MOUSE_DELAY, fullscreen_hide_mouse_cb, fs);
}
-static gboolean fullscreen_mouse_moved(GtkWidget *UNUSED(widget), GdkEventMotion *UNUSED(event), gpointer data)
+static gboolean fullscreen_mouse_moved(GtkWidget *, GdkEventMotion *, gpointer data)
{
auto fs = static_cast<FullScreenData *>(data);
}
}
-static void fullscreen_image_update_cb(ImageWindow *UNUSED(imd), gpointer data)
+static void fullscreen_image_update_cb(ImageWindow *, gpointer data)
{
auto fs = static_cast<FullScreenData *>(data);
}
}
-static void fullscreen_image_complete_cb(ImageWindow *UNUSED(imd), gboolean preload, gpointer data)
+static void fullscreen_image_complete_cb(ImageWindow *, gboolean preload, gpointer data)
{
auto fs = static_cast<FullScreenData *>(data);
}
}
-static gboolean fullscreen_saver_block_cb(gpointer UNUSED(data))
+static gboolean fullscreen_saver_block_cb(gpointer)
{
if (options->fullscreen.disable_saver)
{
return TRUE;
}
-static gboolean fullscreen_delete_cb(GtkWidget *UNUSED(widget), GdkEventAny *UNUSED(event), gpointer data)
+static gboolean fullscreen_delete_cb(GtkWidget *, GdkEventAny *, gpointer data)
{
auto fs = static_cast<FullScreenData *>(data);
FS_MENU_COLUMN_VALUE, value, -1);
}
-GtkWidget *fullscreen_prefs_selection_new(const gchar *text, gint *screen_value, gboolean *UNUSED(above_value))
+GtkWidget *fullscreen_prefs_selection_new(const gchar *text, gint *screen_value, gboolean *)
{
GtkWidget *vbox;
GtkWidget *hbox;
return TRUE;
}
-void histogram_notify_cb(FileData *fd, NotifyType type, gpointer UNUSED(data))
+void histogram_notify_cb(FileData *fd, NotifyType type, gpointer)
{
if ((type & NOTIFY_REREAD) && fd->histmap)
{
gboolean abort;
};
-static gboolean image_loader_collection_load(gpointer loader, const guchar *UNUSED(buf), gsize UNUSED(count), GError **UNUSED(error))
+static gboolean image_loader_collection_load(gpointer loader, const guchar *, gsize, GError **)
{
auto ld = static_cast<ImageLoaderCOLLECTION *>(loader);
auto il = static_cast<ImageLoader *>(ld->data);
return ld->pixbuf;
}
-static gchar* image_loader_collection_get_format_name(gpointer UNUSED(loader))
+static gchar* image_loader_collection_get_format_name(gpointer)
{
return g_strdup("collection");
}
-static gchar** image_loader_collection_get_format_mime_types(gpointer UNUSED(loader))
+static gchar** image_loader_collection_get_format_mime_types(gpointer)
{
static const gchar *mime[] = {"image/png", nullptr};
return g_strdupv(const_cast<gchar **>(mime));
}
-static gboolean image_loader_collection_close(gpointer UNUSED(loader), GError **UNUSED(error))
+static gboolean image_loader_collection_close(gpointer, GError **)
{
return TRUE;
}
}
static void
-output_message_handler (j_common_ptr UNUSED(cinfo))
+output_message_handler (j_common_ptr)
{
/* This method keeps libjpeg from dumping crap to stderr */
}
-static void init_source (j_decompress_ptr UNUSED(cinfo)) {}
+static void init_source (j_decompress_ptr) {}
static boolean fill_input_buffer (j_decompress_ptr cinfo)
{
ERREXIT(cinfo, JERR_INPUT_EMPTY);
src->bytes_in_buffer -= static_cast<size_t>(num_bytes);
}
}
-static void term_source (j_decompress_ptr UNUSED(cinfo)) {}
+static void term_source (j_decompress_ptr) {}
static void set_mem_src (j_decompress_ptr cinfo, void* buffer, long nbytes)
{
struct jpeg_source_mgr* src;
return lj->pixbuf;
}
-static gchar* image_loader_cr3_get_format_name(gpointer UNUSED(loader))
+static gchar* image_loader_cr3_get_format_name(gpointer)
{
return g_strdup("cr3");
}
-static gchar** image_loader_cr3_get_format_mime_types(gpointer UNUSED(loader))
+static gchar** image_loader_cr3_get_format_mime_types(gpointer)
{
static const gchar *mime[] = {"image/x-canon-cr3", nullptr};
return g_strdupv(const_cast<gchar **>(mime));
}
-static gboolean image_loader_cr3_close(gpointer UNUSED(loader), GError **UNUSED(error))
+static gboolean image_loader_cr3_close(gpointer, GError **)
{
return TRUE;
}
gboolean abort;
};
-static void free_buffer(guchar *pixels, gpointer UNUSED(data))
+static void free_buffer(guchar *pixels, gpointer)
{
g_free(pixels);
}
return reinterpret_cast<guchar *>(pixels);
}
-static gboolean image_loader_dds_load (gpointer loader, const guchar *buf, gsize UNUSED(count), GError **UNUSED(error))
+static gboolean image_loader_dds_load (gpointer loader, const guchar *buf, gsize, GError **)
{
auto ld = static_cast<ImageLoaderDDS *>(loader);
uint width = ddsGetWidth(buf);
return ld->pixbuf;
}
-static gchar* image_loader_dds_get_format_name(gpointer UNUSED(loader))
+static gchar* image_loader_dds_get_format_name(gpointer)
{
return g_strdup("dds");
}
-static gchar** image_loader_dds_get_format_mime_types(gpointer UNUSED(loader))
+static gchar** image_loader_dds_get_format_mime_types(gpointer)
{
static const gchar *mime[] = {"image/vnd-ms.dds", nullptr};
return g_strdupv(const_cast<gchar **>(mime));
}
-static gboolean image_loader_dds_close(gpointer UNUSED(loader), GError **UNUSED(error))
+static gboolean image_loader_dds_close(gpointer, GError **)
{
return TRUE;
}
gint page_total;
};
-static void free_buffer(guchar *pixels, gpointer UNUSED(data))
+static void free_buffer(guchar *pixels, gpointer)
{
g_free (pixels);;
}
-static gboolean image_loader_djvu_load(gpointer loader, const guchar *buf, gsize count, GError **UNUSED(error))
+static gboolean image_loader_djvu_load(gpointer loader, const guchar *buf, gsize count, GError **)
{
auto ld = static_cast<ImageLoaderDJVU *>(loader);
ddjvu_context_t *ctx;
return ld->pixbuf;
}
-static gchar* image_loader_djvu_get_format_name(gpointer UNUSED(loader))
+static gchar* image_loader_djvu_get_format_name(gpointer)
{
return g_strdup("djvu");
}
-static gchar** image_loader_djvu_get_format_mime_types(gpointer UNUSED(loader))
+static gchar** image_loader_djvu_get_format_mime_types(gpointer)
{
static const gchar *mime[] = {"image/vnd.djvu", nullptr};
return g_strdupv(const_cast<gchar **>(mime));
return ld->page_total;
}
-static gboolean image_loader_djvu_close(gpointer UNUSED(loader), GError **UNUSED(error))
+static gboolean image_loader_djvu_close(gpointer, GError **)
{
return TRUE;
}
gboolean abort;
};
-static gboolean image_loader_external_load(gpointer loader, const guchar *UNUSED(buf), gsize UNUSED(count), GError **UNUSED(error))
+static gboolean image_loader_external_load(gpointer loader, const guchar *, gsize, GError **)
{
auto ld = static_cast<ImageLoaderExternal *>(loader);
auto il = static_cast<ImageLoader *>(ld->data);
return ld->pixbuf;
}
-static gchar* image_loader_external_get_format_name(gpointer UNUSED(loader))
+static gchar* image_loader_external_get_format_name(gpointer)
{
return g_strdup("external");
}
-static gchar** image_loader_external_get_format_mime_types(gpointer UNUSED(loader))
+static gchar** image_loader_external_get_format_mime_types(gpointer)
{
static const gchar *mime[] = {"application/octet-stream", nullptr};
return g_strdupv(const_cast<gchar **>(mime));
}
-static gboolean image_loader_external_close(gpointer UNUSED(loader), GError **UNUSED(error))
+static gboolean image_loader_external_close(gpointer, GError **)
{
return TRUE;
}
}
#endif
-void image_loader_ft_destroy_image_data(guchar *UNUSED(pixels), gpointer data)
+void image_loader_ft_destroy_image_data(guchar *, gpointer data)
{
auto image = static_cast<image_data *>(data);
video_thumbnailer_destroy_image_data (image);
}
-static gchar* image_loader_ft_get_format_name(gpointer UNUSED(loader))
+static gchar* image_loader_ft_get_format_name(gpointer)
{
return g_strdup("ffmpeg");
}
-static gchar** image_loader_ft_get_format_mime_types(gpointer UNUSED(loader))
+static gchar** image_loader_ft_get_format_mime_types(gpointer)
{
static const gchar *mime[] = {"video/mp4", nullptr};
return g_strdupv(const_cast<gchar **>(mime));
DEBUG_1("TG: setting size, w=%d, h=%d", width, height);
}
-static gboolean image_loader_ft_load (gpointer loader, const guchar *UNUSED(buf), gsize UNUSED(count), GError **UNUSED(error))
+static gboolean image_loader_ft_load (gpointer loader, const guchar *, gsize, GError **)
{
auto lft = static_cast<ImageLoaderFT *>(loader);
auto il = static_cast<ImageLoader *>(lft->data);
return lft->pixbuf;
}
-static void image_loader_ft_abort(gpointer UNUSED(loader))
+static void image_loader_ft_abort(gpointer)
{
}
-static gboolean image_loader_ft_close(gpointer UNUSED(loader), GError **UNUSED(error))
+static gboolean image_loader_ft_close(gpointer, GError **)
{
return TRUE;
}
return loader;
}
-static void image_loader_gdk_abort(gpointer UNUSED(loader))
+static void image_loader_gdk_abort(gpointer)
{
}
gint page_total;
};
-static void free_buffer(guchar *UNUSED(pixels), gpointer data)
+static void free_buffer(guchar *, gpointer data)
{
heif_image_release(static_cast<const struct heif_image*>(data));
}
-static gboolean image_loader_heif_load(gpointer loader, const guchar *buf, gsize count, GError **UNUSED(error))
+static gboolean image_loader_heif_load(gpointer loader, const guchar *buf, gsize count, GError **)
{
auto ld = static_cast<ImageLoaderHEIF *>(loader);
struct heif_context* ctx;
return ld->pixbuf;
}
-static gchar* image_loader_heif_get_format_name(gpointer UNUSED(loader))
+static gchar* image_loader_heif_get_format_name(gpointer)
{
return g_strdup("heif");
}
-static gchar** image_loader_heif_get_format_mime_types(gpointer UNUSED(loader))
+static gchar** image_loader_heif_get_format_mime_types(gpointer)
{
static const gchar *mime[] = {"image/heic", nullptr};
return g_strdupv(const_cast<gchar **>(mime));
return ld->page_total;
}
-static gboolean image_loader_heif_close(gpointer UNUSED(loader), GError **UNUSED(error))
+static gboolean image_loader_heif_close(gpointer, GError **)
{
return TRUE;
}
gboolean abort;
};
-static void free_buffer(guchar *pixels, gpointer UNUSED(data))
+static void free_buffer(guchar *pixels, gpointer)
{
g_free (pixels);
}
return ps;
}
-static gboolean image_loader_j2k_load(gpointer loader, const guchar *buf, gsize count, GError **UNUSED(error))
+static gboolean image_loader_j2k_load(gpointer loader, const guchar *buf, gsize count, GError **)
{
auto ld = static_cast<ImageLoaderJ2K *>(loader);
opj_stream_t *stream;
return ld->pixbuf;
}
-static gchar* image_loader_j2k_get_format_name(gpointer UNUSED(loader))
+static gchar* image_loader_j2k_get_format_name(gpointer)
{
return g_strdup("j2k");
}
-static gchar** image_loader_j2k_get_format_mime_types(gpointer UNUSED(loader))
+static gchar** image_loader_j2k_get_format_mime_types(gpointer)
{
static const gchar *mime[] = {"image/jp2", nullptr};
return g_strdupv(const_cast<gchar **>(mime));
}
-static gboolean image_loader_j2k_close(gpointer UNUSED(loader), GError **UNUSED(error))
+static gboolean image_loader_j2k_close(gpointer, GError **)
{
return TRUE;
}
}
static void
-output_message_handler (j_common_ptr UNUSED(cinfo))
+output_message_handler (j_common_ptr)
{
/* This method keeps libjpeg from dumping crap to stderr */
}
-static void init_source (j_decompress_ptr UNUSED(cinfo)) {}
+static void init_source (j_decompress_ptr) {}
static boolean fill_input_buffer (j_decompress_ptr cinfo)
{
ERREXIT(cinfo, JERR_INPUT_EMPTY);
src->bytes_in_buffer -= static_cast<size_t>(num_bytes);
}
}
-static void term_source (j_decompress_ptr UNUSED(cinfo)) {}
+static void term_source (j_decompress_ptr) {}
static void set_mem_src (j_decompress_ptr cinfo, void* buffer, long nbytes)
{
struct jpeg_source_mgr* src;
return lj->pixbuf;
}
-static gchar* image_loader_jpeg_get_format_name(gpointer UNUSED(loader))
+static gchar* image_loader_jpeg_get_format_name(gpointer)
{
return g_strdup("jpeg");
}
-static gchar** image_loader_jpeg_get_format_mime_types(gpointer UNUSED(loader))
+static gchar** image_loader_jpeg_get_format_mime_types(gpointer)
{
static const gchar *mime[] = {"image/jpeg", nullptr};
return g_strdupv(const_cast<gchar **>(mime));
}
-static gboolean image_loader_jpeg_close(gpointer UNUSED(loader), GError **UNUSED(error))
+static gboolean image_loader_jpeg_close(gpointer, GError **)
{
return TRUE;
}
gboolean abort;
};
-static void free_buffer(guchar *pixels, gpointer UNUSED(data))
+static void free_buffer(guchar *pixels, gpointer)
{
g_free(pixels);
}
return nullptr;
}
-static gboolean image_loader_jpegxl_load(gpointer loader, const guchar *buf, gsize count, GError **UNUSED(error))
+static gboolean image_loader_jpegxl_load(gpointer loader, const guchar *buf, gsize count, GError **)
{
auto ld = static_cast<ImageLoaderJPEGXL *>(loader);
gboolean ret = FALSE;
return ld->pixbuf;
}
-static gchar* image_loader_jpegxl_get_format_name(gpointer UNUSED(loader))
+static gchar* image_loader_jpegxl_get_format_name(gpointer)
{
return g_strdup("jxl");
}
-static gchar** image_loader_jpegxl_get_format_mime_types(gpointer UNUSED(loader))
+static gchar** image_loader_jpegxl_get_format_mime_types(gpointer)
{
static const gchar *mime[] = {"image/jxl", nullptr};
return g_strdupv(const_cast<gchar **>(mime));
}
-static gboolean image_loader_jpegxl_close(gpointer UNUSED(loader), GError **UNUSED(error))
+static gboolean image_loader_jpegxl_close(gpointer, GError **)
{
return TRUE;
}
#else /* !define HAVE_RAW */
-void libraw_free_preview(guchar *UNUSED(buf))
+void libraw_free_preview(guchar *)
{
}
-guchar *libraw_get_preview(ImageLoader *UNUSED(il), guint *UNUSED(data_len))
+guchar *libraw_get_preview(ImageLoader *, guint *)
{
return nullptr;
}
gint page_total;
};
-static gboolean image_loader_pdf_load(gpointer loader, const guchar *buf, gsize count, GError **UNUSED(error))
+static gboolean image_loader_pdf_load(gpointer loader, const guchar *buf, gsize count, GError **)
{
auto ld = static_cast<ImageLoaderPDF *>(loader);
GError *poppler_error = nullptr;
return ld->pixbuf;
}
-static gchar* image_loader_pdf_get_format_name(gpointer UNUSED(loader))
+static gchar* image_loader_pdf_get_format_name(gpointer)
{
return g_strdup("pdf");
}
-static gchar** image_loader_pdf_get_format_mime_types(gpointer UNUSED(loader))
+static gchar** image_loader_pdf_get_format_mime_types(gpointer)
{
static const gchar *mime[] = {"application/pdf", nullptr};
return g_strdupv(const_cast<gchar **>(mime));
return ld->page_total;
}
-static gboolean image_loader_pdf_close(gpointer UNUSED(loader), GError **UNUSED(error))
+static gboolean image_loader_pdf_close(gpointer, GError **)
{
return TRUE;
}
g_free(ctx);
}
-static gboolean image_loader_psd_load(gpointer loader, const guchar *buf, gsize count, GError **UNUSED(error))
+static gboolean image_loader_psd_load(gpointer loader, const guchar *buf, gsize count, GError **)
{
auto ld = static_cast<ImageLoaderPSD *>(loader);
auto ctx = g_new0(PsdContext, 1);
return ld->pixbuf;
}
-static gchar* image_loader_psd_get_format_name(gpointer UNUSED(loader))
+static gchar* image_loader_psd_get_format_name(gpointer)
{
return g_strdup("psd");
}
-static gchar** image_loader_psd_get_format_mime_types(gpointer UNUSED(loader))
+static gchar** image_loader_psd_get_format_mime_types(gpointer)
{
static const gchar *mime[] = {"application/psd", nullptr};
return g_strdupv(const_cast<gchar **>(mime));
}
-static gboolean image_loader_psd_close(gpointer UNUSED(loader), GError **UNUSED(error))
+static gboolean image_loader_psd_close(gpointer, GError **)
{
return TRUE;
}
#include "image-load-svgz.h"
-static gchar* image_loader_svgz_get_format_name(gpointer UNUSED(loader))
+static gchar* image_loader_svgz_get_format_name(gpointer)
{
return g_strdup("svg");
}
-static gchar** image_loader_svgz_get_format_mime_types(gpointer UNUSED(loader))
+static gchar** image_loader_svgz_get_format_mime_types(gpointer)
{
static const gchar *mime[] = {"image/svg", nullptr};
return g_strdupv(const_cast<gchar **>(mime));
return loader;
}
-static void image_loader_svgz_abort(gpointer UNUSED(loader))
+static void image_loader_svgz_abort(gpointer)
{
}
gint page_total;
};
-static void free_buffer (guchar *pixels, gpointer UNUSED(data))
+static void free_buffer (guchar *pixels, gpointer)
{
g_free (pixels);
}
}
static tsize_t
-tiff_load_write (thandle_t UNUSED(handle), tdata_t UNUSED(buf), tsize_t UNUSED(size))
+tiff_load_write (thandle_t, tdata_t, tsize_t)
{
return -1;
}
}
static int
-tiff_load_close (thandle_t UNUSED(context))
+tiff_load_close (thandle_t)
{
return 0;
}
}
static void
-tiff_load_unmap_file (thandle_t UNUSED(handle), tdata_t UNUSED(data), toff_t UNUSED(offset))
+tiff_load_unmap_file (thandle_t, tdata_t, toff_t)
{
}
-static gboolean image_loader_tiff_load (gpointer loader, const guchar *buf, gsize count, GError **UNUSED(error))
+static gboolean image_loader_tiff_load (gpointer loader, const guchar *buf, gsize count, GError **)
{
auto lt = static_cast<ImageLoaderTiff *>(loader);
return lt->pixbuf;
}
-static gchar* image_loader_tiff_get_format_name(gpointer UNUSED(loader))
+static gchar* image_loader_tiff_get_format_name(gpointer)
{
return g_strdup("tiff");
}
-static gchar** image_loader_tiff_get_format_mime_types(gpointer UNUSED(loader))
+static gchar** image_loader_tiff_get_format_mime_types(gpointer)
{
static const gchar *mime[] = {"image/tiff", nullptr};
return g_strdupv(const_cast<gchar **>(mime));
}
-static gboolean image_loader_tiff_close(gpointer UNUSED(loader), GError **UNUSED(error))
+static gboolean image_loader_tiff_close(gpointer, GError **)
{
return TRUE;
}
}
};
-static void free_buffer(guchar *pixels, gpointer UNUSED(data))
+static void free_buffer(guchar *pixels, gpointer)
{
g_free(pixels);
}
-static gboolean image_loader_zxscr_load(gpointer loader, const guchar *buf, gsize count, GError **UNUSED(error))
+static gboolean image_loader_zxscr_load(gpointer loader, const guchar *buf, gsize count, GError **)
{
auto ld = static_cast<ImageLoaderZXSCR *>(loader);
guint8 *pixels;
return ld->pixbuf;
}
-static gchar *image_loader_zxscr_get_format_name(gpointer UNUSED(loader))
+static gchar *image_loader_zxscr_get_format_name(gpointer)
{
return g_strdup("zxscr");
}
-static gchar **image_loader_zxscr_get_format_mime_types(gpointer UNUSED(loader))
+static gchar **image_loader_zxscr_get_format_mime_types(gpointer)
{
static const gchar *mime[] = {"application/octet-stream", nullptr};
return g_strdupv(const_cast<gchar **>(mime));
}
-static gboolean image_loader_zxscr_close(gpointer UNUSED(loader), GError **UNUSED(error))
+static gboolean image_loader_zxscr_close(gpointer, GError **)
{
return TRUE;
}
return type;
}
-static void image_loader_init(GTypeInstance *instance, gpointer UNUSED(g_class))
+static void image_loader_init(GTypeInstance *instance, gpointer)
{
auto il = reinterpret_cast<ImageLoader *>(instance);
DEBUG_1("new image loader %p, bufsize=%" G_GSIZE_FORMAT " idle_loop=%u", (void *)il, il->read_buffer_size, il->idle_read_loop_count);
}
-static void image_loader_class_init_wrapper(void *data, void *UNUSED(user_data))
+static void image_loader_class_init_wrapper(void *data, void *)
{
image_loader_class_init(static_cast<ImageLoaderClass *>(data));
}
g_mutex_unlock(il->data_mutex);
}
-static void image_loader_area_updated_cb(gpointer UNUSED(loader),
+static void image_loader_area_updated_cb(gpointer,
guint x, guint y, guint w, guint h,
gpointer data)
{
}
-static void image_loader_thread_run(gpointer data, gpointer UNUSED(user_data))
+static void image_loader_thread_run(gpointer data, gpointer)
{
auto il = static_cast<ImageLoader *>(data);
gboolean cont;
}
}
-static void image_osd_state_cb(ImageWindow *UNUSED(imd), ImageState state, gpointer data)
+static void image_osd_state_cb(ImageWindow *, ImageState state, gpointer data)
{
auto osd = static_cast<OverlayStateData *>(data);
g_free(osd);
}
-static void image_osd_destroy_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void image_osd_destroy_cb(GtkWidget *, gpointer data)
{
auto osd = static_cast<OverlayStateData *>(data);
*-------------------------------------------------------------------
*/
-static void image_click_cb(PixbufRenderer *UNUSED(pr), GdkEventButton *event, gpointer data)
+static void image_click_cb(PixbufRenderer *, GdkEventButton *event, gpointer data)
{
auto imd = static_cast<ImageWindow *>(data);
if (!options->image_lm_click_nav && event->button == MOUSE_BUTTON_MIDDLE)
if (imd->func_complete) imd->func_complete(imd, preload, imd->data_complete);
}
-static void image_render_complete_cb(PixbufRenderer *UNUSED(pr), gpointer data)
+static void image_render_complete_cb(PixbufRenderer *, gpointer data)
{
auto imd = static_cast<ImageWindow *>(data);
if (imd->func_state) imd->func_state(imd, state, imd->data_state);
}
-static void image_zoom_cb(PixbufRenderer *UNUSED(pr), gdouble UNUSED(zoom), gpointer data)
+static void image_zoom_cb(PixbufRenderer *, gdouble, gpointer data)
{
auto imd = static_cast<ImageWindow *>(data);
}
-static void image_post_process_tile_color_cb(PixbufRenderer *UNUSED(pr), GdkPixbuf **pixbuf, gint x, gint y, gint w, gint h, gpointer data)
+static void image_post_process_tile_color_cb(PixbufRenderer *, GdkPixbuf **pixbuf, gint x, gint y, gint w, gint h, gpointer data)
{
auto imd = static_cast<ImageWindow *>(data);
if (imd->cm) color_man_correct_region(static_cast<ColorMan *>(imd->cm), *pixbuf, x, y, w, h);
imd->read_ahead_fd = nullptr;
}
-static void image_read_ahead_done_cb(ImageLoader *UNUSED(il), gpointer data)
+static void image_read_ahead_done_cb(ImageLoader *, gpointer data)
{
auto imd = static_cast<ImageWindow *>(data);
return cache;
}
-static void image_cache_set(ImageWindow *UNUSED(imd), FileData *fd)
+static void image_cache_set(ImageWindow *, FileData *fd)
{
g_assert(fd->pixbuf);
pixbuf_renderer_area_changed(pr, x, y, w, h);
}
-static void image_load_done_cb(ImageLoader *UNUSED(il), gpointer data)
+static void image_load_done_cb(ImageLoader *, gpointer data)
{
auto imd = static_cast<ImageWindow *>(data);
image_read_ahead_start(imd);
}
-static void image_load_size_cb(ImageLoader *UNUSED(il), guint width, guint height, gpointer data)
+static void image_load_size_cb(ImageLoader *, guint width, guint height, gpointer data)
{
auto imd = static_cast<ImageWindow *>(data);
*-------------------------------------------------------------------
*/
-static gboolean image_focus_in_cb(GtkWidget *UNUSED(widget), GdkEventFocus *UNUSED(event), gpointer data)
+static gboolean image_focus_in_cb(GtkWidget *, GdkEventFocus *, gpointer data)
{
auto imd = static_cast<ImageWindow *>(data);
return TRUE;
}
-static gboolean image_scroll_cb(GtkWidget *UNUSED(widget), GdkEventScroll *event, gpointer data)
+static gboolean image_scroll_cb(GtkWidget *, GdkEventScroll *event, gpointer data)
{
auto imd = static_cast<ImageWindow *>(data);
gboolean in_lw = FALSE;
}
}
-void image_to_root_window(ImageWindow *UNUSED(imd), gboolean UNUSED(scaled))
+void image_to_root_window(ImageWindow *, gboolean)
{
}
g_free(imd);
}
-static void image_destroy_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void image_destroy_cb(GtkWidget *, gpointer data)
{
auto imd = static_cast<ImageWindow *>(data);
image_free(imd);
}
-gboolean selectable_frame_draw_cb(GtkWidget *widget, cairo_t *cr, gpointer UNUSED(data))
+gboolean selectable_frame_draw_cb(GtkWidget *widget, cairo_t *cr, gpointer)
{
GtkAllocation allocation;
gtk_widget_get_allocation(widget, &allocation);
*-----------------------------------------------------------------------------
*/
-static void view_window_press_cb(GtkWidget *UNUSED(widget), GdkEventButton *bevent, gpointer data)
+static void view_window_press_cb(GtkWidget *, GdkEventButton *bevent, gpointer data)
{
auto vw = static_cast<ViewWindow *>(data);
image_set_scroll_func(imd, scroll_cb, vw);
}
-static void view_fullscreen_stop_func(FullScreenData *UNUSED(fs), gpointer data)
+static void view_fullscreen_stop_func(FullScreenData *, gpointer data)
{
auto vw = static_cast<ViewWindow *>(data);
if (vw->ss) slideshow_prev(vw->ss);
}
-static void view_slideshow_stop_func(SlideShowData *UNUSED(fs), gpointer data)
+static void view_slideshow_stop_func(SlideShowData *, gpointer data)
{
auto vw = static_cast<ViewWindow *>(data);
GList *work;
if (vw->ss) slideshow_free(vw->ss);
}
-static void view_window_destroy_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void view_window_destroy_cb(GtkWidget *, gpointer data)
{
auto vw = static_cast<ViewWindow *>(data);
gtk_widget_destroy(vw->window);
}
-static gboolean view_window_delete_cb(GtkWidget *UNUSED(w), GdkEventAny *UNUSED(event), gpointer data)
+static gboolean view_window_delete_cb(GtkWidget *, GdkEventAny *, gpointer data)
{
auto vw = static_cast<ViewWindow *>(data);
return vw;
}
-static void view_window_collection_unref_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void view_window_collection_unref_cb(GtkWidget *, gpointer data)
{
auto cd = static_cast<CollectionData *>(data);
*-----------------------------------------------------------------------------
*/
-static void view_new_window_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void view_new_window_cb(GtkWidget *, gpointer data)
{
auto vw = static_cast<ViewWindow *>(data);
CollectionData *cd;
image_alter_orientation(vw->imd, vw->imd->image_fd, type);
}
-static void view_zoom_in_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void view_zoom_in_cb(GtkWidget *, gpointer data)
{
auto vw = static_cast<ViewWindow *>(data);
image_zoom_adjust(view_window_active_image(vw), get_zoom_increment());
}
-static void view_zoom_out_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void view_zoom_out_cb(GtkWidget *, gpointer data)
{
auto vw = static_cast<ViewWindow *>(data);
image_zoom_adjust(view_window_active_image(vw), -get_zoom_increment());
}
-static void view_zoom_1_1_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void view_zoom_1_1_cb(GtkWidget *, gpointer data)
{
auto vw = static_cast<ViewWindow *>(data);
image_zoom_set(view_window_active_image(vw), 1.0);
}
-static void view_zoom_fit_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void view_zoom_fit_cb(GtkWidget *, gpointer data)
{
auto vw = static_cast<ViewWindow *>(data);
image_zoom_set(view_window_active_image(vw), 0.0);
}
-static void view_copy_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void view_copy_cb(GtkWidget *, gpointer data)
{
auto vw = static_cast<ViewWindow *>(data);
ImageWindow *imd;
file_util_copy(image_get_fd(imd), nullptr, nullptr, imd->widget);
}
-static void view_move_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void view_move_cb(GtkWidget *, gpointer data)
{
auto vw = static_cast<ViewWindow *>(data);
ImageWindow *imd;
file_util_move(image_get_fd(imd), nullptr, nullptr, imd->widget);
}
-static void view_rename_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void view_rename_cb(GtkWidget *, gpointer data)
{
auto vw = static_cast<ViewWindow *>(data);
ImageWindow *imd;
file_util_rename(image_get_fd(imd), nullptr, imd->widget);
}
-static void view_delete_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void view_delete_cb(GtkWidget *, gpointer data)
{
auto vw = static_cast<ViewWindow *>(data);
ImageWindow *imd;
file_util_delete(image_get_fd(imd), nullptr, imd->widget);
}
-static void view_move_to_trash_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void view_move_to_trash_cb(GtkWidget *, gpointer data)
{
auto vw = static_cast<ViewWindow *>(data);
ImageWindow *imd;
file_util_delete(image_get_fd(imd), nullptr, imd->widget);
}
-static void view_copy_path_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void view_copy_path_cb(GtkWidget *, gpointer data)
{
auto vw = static_cast<ViewWindow *>(data);
ImageWindow *imd;
file_util_copy_path_to_clipboard(image_get_fd(imd), TRUE);
}
-static void view_copy_path_unquoted_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void view_copy_path_unquoted_cb(GtkWidget *, gpointer data)
{
auto vw = static_cast<ViewWindow *>(data);
ImageWindow *imd;
file_util_copy_path_to_clipboard(image_get_fd(imd), FALSE);
}
-static void view_fullscreen_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void view_fullscreen_cb(GtkWidget *, gpointer data)
{
auto vw = static_cast<ViewWindow *>(data);
view_fullscreen_toggle(vw, FALSE);
}
-static void view_slideshow_start_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void view_slideshow_start_cb(GtkWidget *, gpointer data)
{
auto vw = static_cast<ViewWindow *>(data);
view_slideshow_start(vw);
}
-static void view_slideshow_stop_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void view_slideshow_stop_cb(GtkWidget *, gpointer data)
{
auto vw = static_cast<ViewWindow *>(data);
view_slideshow_stop(vw);
}
-static void view_slideshow_pause_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void view_slideshow_pause_cb(GtkWidget *, gpointer data)
{
auto vw = static_cast<ViewWindow *>(data);
slideshow_pause_toggle(vw->ss);
}
-static void view_close_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void view_close_cb(GtkWidget *, gpointer data)
{
auto vw = static_cast<ViewWindow *>(data);
}
-static void view_set_layout_path_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void view_set_layout_path_cb(GtkWidget *, gpointer data)
{
auto vw = static_cast<ViewWindow *>(data);
LayoutWindow *lw;
view_window_close(vw);
}
-static void view_popup_menu_destroy_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void view_popup_menu_destroy_cb(GtkWidget *, gpointer data)
{
auto editmenu_fd_list = static_cast<GList *>(data);
GList *list;
};
-static void view_dir_list_cancel(GtkWidget *UNUSED(widget), gpointer UNUSED(data))
+static void view_dir_list_cancel(GtkWidget *, gpointer)
{
/* do nothing */
}
}
}
-static void view_dir_list_add(GtkWidget *UNUSED(widget), gpointer data)
+static void view_dir_list_add(GtkWidget *, gpointer data)
{
auto d = static_cast<CViewConfirmD *>(data);
view_dir_list_do(d->vw, d->list, FALSE, FALSE);
}
-static void view_dir_list_recurse(GtkWidget *UNUSED(widget), gpointer data)
+static void view_dir_list_recurse(GtkWidget *, gpointer data)
{
auto d = static_cast<CViewConfirmD *>(data);
view_dir_list_do(d->vw, d->list, FALSE, TRUE);
}
-static void view_dir_list_skip(GtkWidget *UNUSED(widget), gpointer data)
+static void view_dir_list_skip(GtkWidget *, gpointer data)
{
auto d = static_cast<CViewConfirmD *>(data);
view_dir_list_do(d->vw, d->list, TRUE, FALSE);
}
-static void view_dir_list_destroy(GtkWidget *UNUSED(widget), gpointer data)
+static void view_dir_list_destroy(GtkWidget *, gpointer data)
{
auto d = static_cast<CViewConfirmD *>(data);
filelist_free(d->list);
*-----------------------------------------------------------------------------
*/
-static void view_window_get_dnd_data(GtkWidget *UNUSED(widget), GdkDragContext *context,
- gint UNUSED(x), gint UNUSED(y),
+static void view_window_get_dnd_data(GtkWidget *, GdkDragContext *context,
+ gint, gint,
GtkSelectionData *selection_data, guint info,
- guint UNUSED(time), gpointer data)
+ guint, gpointer data)
{
auto vw = static_cast<ViewWindow *>(data);
ImageWindow *imd;
}
}
-static void view_window_set_dnd_data(GtkWidget *UNUSED(widget), GdkDragContext *UNUSED(context),
- GtkSelectionData *selection_data, guint UNUSED(info),
- guint UNUSED(time), gpointer data)
+static void view_window_set_dnd_data(GtkWidget *, GdkDragContext *,
+ GtkSelectionData *selection_data, guint,
+ guint, gpointer data)
{
auto vw = static_cast<ViewWindow *>(data);
FileData *fd;
}
static gint mpo_parse_Attributes_IFD_entry(const guchar *tiff, guint offset,
- guint UNUSED(size), TiffByteOrder bo,
+ guint, TiffByteOrder bo,
gpointer data)
{
guint tag;
static const gchar *layout_titles[] = { N_("Tools"), N_("Files"), N_("Image") };
-static void layout_config_destroy(GtkWidget *UNUSED(widget), gpointer data)
+static void layout_config_destroy(GtkWidget *, gpointer data)
{
auto lc = static_cast<LayoutConfig *>(data);
return group;
}
-static void layout_config_number_cb(GtkTreeViewColumn *UNUSED(tree_column), GtkCellRenderer *cell,
- GtkTreeModel *store, GtkTreeIter *iter, gpointer UNUSED(data))
+static void layout_config_number_cb(GtkTreeViewColumn *, GtkCellRenderer *cell,
+ GtkTreeModel *store, GtkTreeIter *iter, gpointer)
{
GtkTreePath *tpath;
gint *indices;
if (lw->slideshow) slideshow_prev(lw->slideshow);
}
-static void layout_image_slideshow_stop_func(SlideShowData *UNUSED(ss), gpointer data)
+static void layout_image_slideshow_stop_func(SlideShowData *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
}
-static void animation_async_ready_cb(GObject *UNUSED(source_object), GAsyncResult *res, gpointer data)
+static void animation_async_ready_cb(GObject *, GAsyncResult *res, gpointer data)
{
GError *error = nullptr;
auto animation = static_cast<AnimationData *>(data);
*----------------------------------------------------------------------------
*/
-static void li_pop_menu_zoom_in_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void li_pop_menu_zoom_in_cb(GtkWidget *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_zoom_adjust(lw, get_zoom_increment(), FALSE);
}
-static void li_pop_menu_zoom_out_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void li_pop_menu_zoom_out_cb(GtkWidget *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_zoom_adjust(lw, -get_zoom_increment(), FALSE);
}
-static void li_pop_menu_zoom_1_1_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void li_pop_menu_zoom_1_1_cb(GtkWidget *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_zoom_set(lw, 1.0, FALSE);
}
-static void li_pop_menu_zoom_fit_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void li_pop_menu_zoom_fit_cb(GtkWidget *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
image_alter_orientation(lw->image, lw->image->image_fd, type);
}
-static void li_pop_menu_new_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void li_pop_menu_new_cb(GtkWidget *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
li_pop_menu_click_parent(widget, lw));
}
-static void li_pop_menu_copy_path_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void li_pop_menu_copy_path_cb(GtkWidget *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
file_util_copy_path_to_clipboard(layout_image_get_fd(lw), TRUE);
}
-static void li_pop_menu_copy_path_unquoted_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void li_pop_menu_copy_path_unquoted_cb(GtkWidget *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
file_util_copy_path_to_clipboard(layout_image_get_fd(lw), FALSE);
}
-static void li_pop_menu_copy_image_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void li_pop_menu_copy_image_cb(GtkWidget *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
ImageWindow *imd = lw->image;
li_pop_menu_click_parent(widget, lw));
}
-static void li_pop_menu_slide_start_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void li_pop_menu_slide_start_cb(GtkWidget *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_slideshow_start(lw);
}
-static void li_pop_menu_slide_stop_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void li_pop_menu_slide_stop_cb(GtkWidget *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_slideshow_stop(lw);
}
-static void li_pop_menu_slide_pause_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void li_pop_menu_slide_pause_cb(GtkWidget *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_slideshow_pause_toggle(lw);
}
-static void li_pop_menu_full_screen_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void li_pop_menu_full_screen_cb(GtkWidget *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_full_screen_toggle(lw);
}
-static void li_pop_menu_animate_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void li_pop_menu_animate_cb(GtkWidget *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_animate_toggle(lw);
}
-static void li_pop_menu_hide_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void li_pop_menu_hide_cb(GtkWidget *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_tools_hide_toggle(lw);
}
-static void li_set_layout_path_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void li_set_layout_path_cb(GtkWidget *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
FileData *fd;
if (fd) layout_set_fd(lw, fd);
}
-static void li_open_archive_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void li_open_archive_cb(GtkWidget *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
LayoutWindow *lw_new;
return ret;
}
-static void layout_image_popup_menu_destroy_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void layout_image_popup_menu_destroy_cb(GtkWidget *, gpointer data)
{
auto editmenu_fd_list = static_cast<GList *>(data);
*----------------------------------------------------------------------------
*/
-static void layout_image_dnd_receive(GtkWidget *widget, GdkDragContext *UNUSED(context),
- gint UNUSED(x), gint UNUSED(y),
+static void layout_image_dnd_receive(GtkWidget *widget, GdkDragContext *,
+ gint, gint,
GtkSelectionData *selection_data, guint info,
- guint UNUSED(time), gpointer data)
+ guint, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
gint i;
}
}
-static void layout_image_dnd_get(GtkWidget *widget, GdkDragContext *UNUSED(context),
- GtkSelectionData *selection_data, guint UNUSED(info),
- guint UNUSED(time), gpointer data)
+static void layout_image_dnd_get(GtkWidget *widget, GdkDragContext *,
+ GtkSelectionData *selection_data, guint,
+ guint, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
FileData *fd;
}
}
-static void layout_image_dnd_end(GtkWidget *UNUSED(widget), GdkDragContext *context, gpointer data)
+static void layout_image_dnd_end(GtkWidget *, GdkDragContext *context, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
if (gdk_drag_context_get_selected_action(context) == GDK_ACTION_MOVE)
*----------------------------------------------------------------------------
*/
-static void layout_image_update_cb(ImageWindow *UNUSED(imd), gpointer data)
+static void layout_image_update_cb(ImageWindow *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_status_update_image(lw);
layout_image_full_screen_stop(lw);
}
-static void clear_marks_cancel_cb(GenericDialog *gd, gpointer UNUSED(data))
+static void clear_marks_cancel_cb(GenericDialog *gd, gpointer)
{
generic_dialog_close(gd);
}
-static void clear_marks_help_cb(GenericDialog *UNUSED(gd), gpointer UNUSED(data))
+static void clear_marks_help_cb(GenericDialog *, gpointer)
{
help_window_show("GuideMainWindowMenus.html");
}
-void layout_menu_clear_marks_ok_cb(GenericDialog *gd, gpointer UNUSED(data))
+void layout_menu_clear_marks_ok_cb(GenericDialog *gd, gpointer)
{
marks_clear_all();
generic_dialog_close(gd);
}
-static void layout_menu_clear_marks_cb(GtkAction *UNUSED(action), gpointer UNUSED(data))
+static void layout_menu_clear_marks_cb(GtkAction *, gpointer)
{
GenericDialog *gd;
gtk_widget_show(gd->dialog);
}
-static void layout_menu_new_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_new_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
collection_window_new(nullptr);
}
-static void layout_menu_open_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_open_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
collection_dialog_load(nullptr);
}
-static void layout_menu_search_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_search_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
search_new(lw->dir_fd, layout_image_get_fd(lw));
}
-static void layout_menu_dupes_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_dupes_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
dupe_window_new();
}
-static void layout_menu_pan_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_pan_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
pan_window_new(lw->dir_fd);
}
-static void layout_menu_print_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_print_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
print_window_new(layout_image_get_fd(lw), layout_selection_list(lw), layout_list(lw), layout_window(lw));
}
-static void layout_menu_dir_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_dir_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
if (lw->vd) vd_new_folder(lw->vd, lw->dir_fd);
}
-static void layout_menu_copy_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_copy_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
file_util_copy(nullptr, layout_selection_list(lw), nullptr, layout_window(lw));
}
-static void layout_menu_copy_path_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_copy_path_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
file_util_copy_path_list_to_clipboard(layout_selection_list(lw), TRUE);
}
-static void layout_menu_copy_path_unquoted_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_copy_path_unquoted_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
file_util_copy_path_list_to_clipboard(layout_selection_list(lw), FALSE);
}
-static void layout_menu_move_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_move_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
file_util_move(nullptr, layout_selection_list(lw), nullptr, layout_window(lw));
}
-static void layout_menu_rename_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_rename_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
file_util_rename(nullptr, layout_selection_list(lw), layout_window(lw));
}
-static void layout_menu_delete_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_delete_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
file_util_delete(nullptr, layout_selection_list(lw), layout_window(lw));
}
-static void layout_menu_move_to_trash_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_move_to_trash_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
file_util_delete(nullptr, layout_selection_list(lw), layout_window(lw));
}
-static void layout_menu_move_to_trash_key_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_move_to_trash_key_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
}
}
-static void layout_menu_disable_grouping_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_disable_grouping_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
file_data_disable_grouping_list(layout_selection_list(lw), TRUE);
}
-static void layout_menu_enable_grouping_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_enable_grouping_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
file_data_disable_grouping_list(layout_selection_list(lw), FALSE);
}
-void layout_menu_close_cb(GtkAction *UNUSED(action), gpointer data)
+void layout_menu_close_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_close(lw);
}
-static void layout_menu_exit_cb(GtkAction *UNUSED(action), gpointer UNUSED(data))
+static void layout_menu_exit_cb(GtkAction *, gpointer)
{
exit_program();
}
-static void layout_menu_alter_90_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_alter_90_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_alter_orientation(lw, ALTER_ROTATE_90);
}
-static void layout_menu_rating_0_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_rating_0_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_rating(lw, "0");
}
-static void layout_menu_rating_1_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_rating_1_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_rating(lw, "1");
}
-static void layout_menu_rating_2_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_rating_2_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_rating(lw, "2");
}
-static void layout_menu_rating_3_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_rating_3_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_rating(lw, "3");
}
-static void layout_menu_rating_4_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_rating_4_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_rating(lw, "4");
}
-static void layout_menu_rating_5_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_rating_5_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_rating(lw, "5");
}
-static void layout_menu_rating_m1_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_rating_m1_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_rating(lw, "-1");
}
-static void layout_menu_alter_90cc_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_alter_90cc_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_alter_orientation(lw, ALTER_ROTATE_90_CC);
}
-static void layout_menu_alter_180_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_alter_180_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_alter_orientation(lw, ALTER_ROTATE_180);
}
-static void layout_menu_alter_mirror_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_alter_mirror_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_alter_orientation(lw, ALTER_MIRROR);
}
-static void layout_menu_alter_flip_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_alter_flip_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_set_ignore_alpha(lw, gtk_toggle_action_get_active(action));
}
-static void layout_menu_alter_none_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_alter_none_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_reset_orientation(lw);
}
-static void layout_menu_select_rectangle_cb(GtkToggleAction *action, gpointer UNUSED(data))
+static void layout_menu_select_rectangle_cb(GtkToggleAction *action, gpointer)
{
options->draw_rectangle = gtk_toggle_action_get_active(action);
}
layout_image_set_overunderexposed(lw, gtk_toggle_action_get_active(action));
}
-static void layout_menu_write_rotate(GtkToggleAction *UNUSED(action), gpointer data, gboolean keep_date)
+static void layout_menu_write_rotate(GtkToggleAction *, gpointer data, gboolean keep_date)
{
auto lw = static_cast<LayoutWindow *>(data);
GtkTreeModel *store;
layout_menu_write_rotate(action, data, FALSE);
}
-static void layout_menu_config_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_config_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
show_config_window(lw);
}
-static void layout_menu_editors_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_editors_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
show_editor_list_window();
}
-static void layout_menu_layout_config_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_layout_config_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_show_config_window(lw);
}
-static void layout_menu_remove_thumb_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_remove_thumb_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
cache_manager_show();
}
-static void layout_menu_wallpaper_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_wallpaper_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
}
/* single window zoom */
-static void layout_menu_zoom_in_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_zoom_in_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_zoom_adjust(lw, get_zoom_increment(), FALSE);
}
-static void layout_menu_zoom_out_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_zoom_out_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_zoom_adjust(lw, -get_zoom_increment(), FALSE);
}
-static void layout_menu_zoom_1_1_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_zoom_1_1_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_zoom_set(lw, 1.0, FALSE);
}
-static void layout_menu_zoom_fit_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_zoom_fit_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_zoom_set(lw, 0.0, FALSE);
}
-static void layout_menu_zoom_fit_hor_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_zoom_fit_hor_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_zoom_set_fill_geometry(lw, FALSE, FALSE);
}
-static void layout_menu_zoom_fit_vert_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_zoom_fit_vert_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_zoom_set_fill_geometry(lw, TRUE, FALSE);
}
-static void layout_menu_zoom_2_1_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_zoom_2_1_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_zoom_set(lw, 2.0, FALSE);
}
-static void layout_menu_zoom_3_1_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_zoom_3_1_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_zoom_set(lw, 3.0, FALSE);
}
-static void layout_menu_zoom_4_1_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_zoom_4_1_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_zoom_set(lw, 4.0, FALSE);
}
-static void layout_menu_zoom_1_2_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_zoom_1_2_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_zoom_set(lw, -2.0, FALSE);
}
-static void layout_menu_zoom_1_3_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_zoom_1_3_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_zoom_set(lw, -3.0, FALSE);
}
-static void layout_menu_zoom_1_4_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_zoom_1_4_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
}
/* connected zoom */
-static void layout_menu_connect_zoom_in_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_connect_zoom_in_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_zoom_adjust(lw, get_zoom_increment(), TRUE);
}
-static void layout_menu_connect_zoom_out_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_connect_zoom_out_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_zoom_adjust(lw, -get_zoom_increment(), TRUE);
}
-static void layout_menu_connect_zoom_1_1_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_connect_zoom_1_1_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_zoom_set(lw, 1.0, TRUE);
}
-static void layout_menu_connect_zoom_fit_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_connect_zoom_fit_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_zoom_set(lw, 0.0, TRUE);
}
-static void layout_menu_connect_zoom_fit_hor_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_connect_zoom_fit_hor_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_zoom_set_fill_geometry(lw, FALSE, TRUE);
}
-static void layout_menu_connect_zoom_fit_vert_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_connect_zoom_fit_vert_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_zoom_set_fill_geometry(lw, TRUE, TRUE);
}
-static void layout_menu_connect_zoom_2_1_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_connect_zoom_2_1_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_zoom_set(lw, 2.0, TRUE);
}
-static void layout_menu_connect_zoom_3_1_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_connect_zoom_3_1_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_zoom_set(lw, 3.0, TRUE);
}
-static void layout_menu_connect_zoom_4_1_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_connect_zoom_4_1_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_zoom_set(lw, 4.0, TRUE);
}
-static void layout_menu_connect_zoom_1_2_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_connect_zoom_1_2_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_zoom_set(lw, -2.0, TRUE);
}
-static void layout_menu_connect_zoom_1_3_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_connect_zoom_1_3_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_zoom_set(lw, -3.0, TRUE);
}
-static void layout_menu_connect_zoom_1_4_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_connect_zoom_1_4_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
}
-static void layout_menu_split_cb(GtkRadioAction *action, GtkRadioAction *UNUSED(current), gpointer data)
+static void layout_menu_split_cb(GtkRadioAction *action, GtkRadioAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
ImageSplitMode mode;
}
-static void layout_menu_list_cb(GtkRadioAction *action, GtkRadioAction *UNUSED(current), gpointer data)
+static void layout_menu_list_cb(GtkRadioAction *action, GtkRadioAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
}
}
-static void layout_menu_view_in_new_window_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_view_in_new_window_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
view_window_new(layout_image_get_fd(lw));
}
-static void layout_menu_open_archive_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_open_archive_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
LayoutWindow *lw_new;
}
}
-static void layout_menu_fullscreen_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_fullscreen_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_full_screen_toggle(lw);
}
-static void layout_menu_escape_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_escape_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_exit_fullscreen(lw);
}
-static void layout_menu_overlay_toggle_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_overlay_toggle_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_animate_toggle(lw);
}
-static void layout_menu_rectangular_selection_cb(GtkToggleAction *action, gpointer UNUSED(data))
+static void layout_menu_rectangular_selection_cb(GtkToggleAction *action, gpointer)
{
options->collections.rectangular_selection = gtk_toggle_action_get_active(action);
}
-static void layout_menu_histogram_toggle_channel_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_histogram_toggle_channel_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_util_sync_views(lw);
}
-static void layout_menu_histogram_toggle_mode_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_histogram_toggle_mode_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_util_sync_views(lw);
}
-static void layout_menu_histogram_channel_cb(GtkRadioAction *action, GtkRadioAction *UNUSED(current), gpointer data)
+static void layout_menu_histogram_channel_cb(GtkRadioAction *action, GtkRadioAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
gint channel = gtk_radio_action_get_current_value(action);
image_osd_histogram_set_channel(lw->image, channel);
}
-static void layout_menu_histogram_mode_cb(GtkRadioAction *action, GtkRadioAction *UNUSED(current), gpointer data)
+static void layout_menu_histogram_mode_cb(GtkRadioAction *action, GtkRadioAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
gint mode = gtk_radio_action_get_current_value(action);
image_osd_histogram_set_mode(lw->image, mode);
}
-static void layout_menu_refresh_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_refresh_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_refresh(lw);
}
-static void layout_menu_bar_exif_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_bar_exif_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_exif_window_new(lw);
}
-static void layout_menu_search_and_run_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_search_and_run_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_tools_float_toggle(lw);
}
-static void layout_menu_hide_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_hide_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_slideshow_toggle(lw);
}
-static void layout_menu_slideshow_pause_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_slideshow_pause_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_slideshow_pause_toggle(lw);
}
-static void layout_menu_slideshow_slower_cb(GtkAction *UNUSED(action), gpointer UNUSED(data))
+static void layout_menu_slideshow_slower_cb(GtkAction *, gpointer)
{
options->slideshow.delay = options->slideshow.delay + 5;
if (options->slideshow.delay > SLIDESHOW_MAX_SECONDS)
options->slideshow.delay = SLIDESHOW_MAX_SECONDS;
}
-static void layout_menu_slideshow_faster_cb(GtkAction *UNUSED(action), gpointer UNUSED(data))
+static void layout_menu_slideshow_faster_cb(GtkAction *, gpointer)
{
options->slideshow.delay = options->slideshow.delay - 5;
if (options->slideshow.delay < SLIDESHOW_MIN_SECONDS * 10)
}
-static void layout_menu_stereo_mode_next_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_stereo_mode_next_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
gint mode = layout_image_stereo_pixbuf_get(lw);
}
-static void layout_menu_stereo_mode_cb(GtkRadioAction *action, GtkRadioAction *UNUSED(current), gpointer data)
+static void layout_menu_stereo_mode_cb(GtkRadioAction *action, GtkRadioAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
gint mode = gtk_radio_action_get_current_value(action);
layout_image_stereo_pixbuf_set(lw, mode);
}
-static void layout_menu_help_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_help_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
help_window_show("index.html");
}
-static void layout_menu_help_search_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_help_search_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
help_search_window_show();
}
-static void layout_menu_help_keys_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_help_keys_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
help_window_show("GuideReferenceKeyboardShortcuts.html");
}
-static void layout_menu_notes_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_notes_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
help_window_show("release_notes");
}
-static void layout_menu_changelog_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_changelog_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
const gchar *accel_path,
guint accel_key,
GdkModifierType accel_mods,
- gboolean UNUSED(changed))
+ gboolean)
{
gchar *path, *name;
gchar *key_name, *menu_name;
g_free(path);
}
-static void layout_menu_kbd_map_cb(GtkAction *UNUSED(action), gpointer UNUSED(data))
+static void layout_menu_kbd_map_cb(GtkAction *, gpointer)
{
gint fd = -1;
GPtrArray *array;
}
}
-static void layout_menu_about_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_about_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
show_about_window(lw);
}
-static void layout_menu_log_window_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_log_window_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
*-----------------------------------------------------------------------------
*/
-static void layout_menu_select_all_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_select_all_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_select_all(lw);
}
-static void layout_menu_unselect_all_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_unselect_all_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_select_none(lw);
}
-static void layout_menu_invert_selection_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_invert_selection_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
*-----------------------------------------------------------------------------
*/
-static void layout_menu_image_first_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_image_first_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_first(lw);
}
-static void layout_menu_image_prev_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_image_prev_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
gint i;
}
}
-static void layout_menu_image_next_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_image_next_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
gint i;
}
}
-static void layout_menu_page_first_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_page_first_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
FileData *fd = layout_image_get_fd(lw);
}
}
-static void layout_menu_page_last_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_page_last_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
FileData *fd = layout_image_get_fd(lw);
}
}
-static void layout_menu_page_next_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_page_next_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
FileData *fd = layout_image_get_fd(lw);
}
}
-static void layout_menu_page_previous_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_page_previous_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
FileData *fd = layout_image_get_fd(lw);
}
}
-static void layout_menu_image_forward_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_image_forward_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_set_path(lw, image_chain_forward());
}
-static void layout_menu_image_back_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_image_back_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_set_path(lw, image_chain_back());
}
-static void layout_menu_split_pane_next_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_split_pane_next_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
gint active_frame;
layout_image_activate(lw, active_frame, FALSE);
}
-static void layout_menu_split_pane_prev_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_split_pane_prev_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
gint active_frame;
layout_image_activate(lw, active_frame, FALSE);
}
-static void layout_menu_split_pane_updown_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_split_pane_updown_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
gint active_frame;
layout_image_activate(lw, active_frame, FALSE);
}
-static void layout_menu_image_last_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_image_last_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_last(lw);
}
-static void layout_menu_back_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_back_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
FileData *dir_fd;
file_data_unref(dir_fd);
}
-static void layout_menu_forward_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_forward_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
FileData *dir_fd;
file_data_unref(dir_fd);
}
-static void layout_menu_home_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_home_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
const gchar *path;
}
}
-static void layout_menu_up_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_up_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
ViewDir *vd = lw->vd;
}
-static void layout_menu_metadata_write_cb(GtkAction *UNUSED(action), gpointer UNUSED(data))
+static void layout_menu_metadata_write_cb(GtkAction *, gpointer)
{
metadata_write_queue_confirm(TRUE, nullptr, nullptr);
}
static GtkWidget *last_focussed = nullptr;
-static void layout_menu_keyword_autocomplete_cb(GtkAction *UNUSED(action), gpointer data)
+static void layout_menu_keyword_autocomplete_cb(GtkAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
GtkWidget *tmp;
#endif
#ifdef HAVE_LCMS
-static void layout_color_menu_input_cb(GtkRadioAction *action, GtkRadioAction *UNUSED(current), gpointer data)
+static void layout_color_menu_input_cb(GtkRadioAction *action, GtkRadioAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
gint type;
*-----------------------------------------------------------------------------
*/
-static void layout_menu_recent_cb(GtkWidget *widget, gpointer UNUSED(data))
+static void layout_menu_recent_cb(GtkWidget *widget, gpointer)
{
gint n;
gchar *path;
return g_list_sort(listin, layout_window_menu_list_sort_cb);
}
-static void layout_menu_new_window_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void layout_menu_new_window_cb(GtkWidget *, gpointer data)
{
gint n;
}
}
-static void window_rename_cancel_cb(GenericDialog *UNUSED(gd), gpointer data)
+static void window_rename_cancel_cb(GenericDialog *, gpointer data)
{
auto rw = static_cast<RenameWindow *>(data);
g_free(rw);
}
-static void window_rename_ok(GenericDialog *UNUSED(gd), gpointer data)
+static void window_rename_ok(GenericDialog *, gpointer data)
{
auto rw = static_cast<RenameWindow *>(data);
gchar *path;
window_rename_ok(gd, rw);
}
-static void window_delete_cancel_cb(GenericDialog *UNUSED(gd), gpointer data)
+static void window_delete_cancel_cb(GenericDialog *, gpointer data)
{
auto dw = static_cast<DeleteWindow *>(data);
g_free(dw);
}
-static void window_delete_ok_cb(GenericDialog *UNUSED(gd), gpointer data)
+static void window_delete_ok_cb(GenericDialog *, gpointer data)
{
auto dw = static_cast<DeleteWindow *>(data);
gchar *path;
g_free(path);
}
-static void layout_menu_window_default_cb(GtkWidget *UNUSED(widget), gpointer UNUSED(data))
+static void layout_menu_window_default_cb(GtkWidget *, gpointer)
{
layout_new_from_default();
}
-static void layout_menu_windows_menu_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void layout_menu_windows_menu_cb(GtkWidget *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
GtkWidget *menu;
}
}
-static void layout_menu_view_menu_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void layout_menu_view_menu_cb(GtkWidget *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
GtkWidget *menu;
g_object_unref(in_file);
}
-static void layout_menu_window_from_current_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void layout_menu_window_from_current_cb(GtkWidget *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
gint fd_in = -1;
g_free(tmp_file_out);
}
-static void layout_menu_window_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void layout_menu_window_cb(GtkWidget *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_menu_new_window_update(lw);
}
-static void layout_menu_window_rename_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void layout_menu_window_rename_cb(GtkWidget *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
RenameWindow *rw;
gtk_widget_show(rw->gd->dialog);
}
-static void layout_menu_window_delete_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void layout_menu_window_delete_cb(GtkWidget *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
DeleteWindow *dw;
"<accelerator action='ConnectZoomFitAlt1'/>"
"</ui>";
-static gchar *menu_translate(const gchar *path, gpointer UNUSED(data))
+static gchar *menu_translate(const gchar *path, gpointer)
{
return static_cast<gchar *>(_(path));
}
static gint layout_editors_reload_idle_id = -1;
static GList *layout_editors_desktop_files = nullptr;
-static gboolean layout_editors_reload_idle_cb(gpointer UNUSED(data))
+static gboolean layout_editors_reload_idle_cb(gpointer)
{
if (!layout_editors_desktop_files)
{
return lw->bar && gtk_widget_get_visible(lw->bar);
}
-static void layout_bar_destroyed(GtkWidget *UNUSED(widget), gpointer data)
+static void layout_bar_destroyed(GtkWidget *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
}
-static void layout_bar_sort_destroyed(GtkWidget *UNUSED(widget), gpointer data)
+static void layout_bar_sort_destroyed(GtkWidget *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_bar_close(lw);
}
-static gboolean layout_exif_window_destroy(GtkWidget *UNUSED(widget), gpointer data)
+static gboolean layout_exif_window_destroy(GtkWidget *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
lw->exif_window = nullptr;
}
}
-static gboolean layout_set_current_cb(GtkWidget *UNUSED(widget), GdkEventFocus *UNUSED(event), gpointer data)
+static gboolean layout_set_current_cb(GtkWidget *, GdkEventFocus *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
current_lw = lw;
return FALSE;
}
-static void layout_box_folders_changed_cb(GtkWidget *widget, gpointer UNUSED(data))
+static void layout_box_folders_changed_cb(GtkWidget *widget, gpointer)
{
LayoutWindow *lw;
GList *work;
g_free(buf);
}
-static void layout_vd_select_cb(ViewDir *UNUSED(vd), FileData *fd, gpointer data)
+static void layout_vd_select_cb(ViewDir *, FileData *fd, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_set_fd(lw, fd);
}
-static void layout_path_entry_tab_append_cb(const gchar *UNUSED(path), gpointer data, gint n)
+static void layout_path_entry_tab_append_cb(const gchar *, gpointer data, gint n)
{
auto lw = static_cast<LayoutWindow *>(data);
gtk_widget_set_sensitive(lw->back_button, (n > 1));
}
-static gboolean path_entry_tooltip_cb(GtkWidget *widget, gpointer UNUSED(data))
+static gboolean path_entry_tooltip_cb(GtkWidget *widget, gpointer)
{
GList *box_child_list;
GtkComboBox *path_entry;
layout_sort_set(lw, type, lw->sort_ascend);
}
-static void layout_sort_menu_ascend_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void layout_sort_menu_ascend_cb(GtkWidget *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_sort_set(lw, lw->sort_method, !lw->sort_ascend);
}
-static void layout_sort_menu_hide_cb(GtkWidget *widget, gpointer UNUSED(data))
+static void layout_sort_menu_hide_cb(GtkWidget *widget, gpointer)
{
/* destroy the menu */
g_object_unref(widget);
}
-static void layout_sort_button_press_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void layout_sort_button_press_cb(GtkWidget *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
GtkWidget *menu;
image_options_sync();
}
-static void layout_zoom_menu_hide_cb(GtkWidget *widget, gpointer UNUSED(data))
+static void layout_zoom_menu_hide_cb(GtkWidget *widget, gpointer)
{
/* destroy the menu */
g_object_unref(widget);
}
-static void layout_zoom_button_press_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void layout_zoom_button_press_cb(GtkWidget *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
GtkWidget *menu;
gtk_menu_popup_at_pointer(GTK_MENU(menu), nullptr);
}
-static GtkWidget *layout_zoom_button(LayoutWindow *lw, GtkWidget *box, gint size, gboolean UNUSED(expand))
+static GtkWidget *layout_zoom_button(LayoutWindow *lw, GtkWidget *box, gint size, gboolean)
{
GtkWidget *button;
GtkWidget *frame;
return lw->dir_view;
}
-static void layout_list_status_cb(ViewFile *UNUSED(vf), gpointer data)
+static void layout_list_status_cb(ViewFile *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_status_update_info(lw, nullptr);
}
-static void layout_list_thumb_cb(ViewFile *UNUSED(vf), gdouble val, const gchar *text, gpointer data)
+static void layout_list_thumb_cb(ViewFile *, gdouble val, const gchar *text, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
if (lw->vf) vf_marks_set(lw->vf, lw->options.show_marks);
}
-static void layout_list_scroll_to_subpart(LayoutWindow *lw, const gchar *UNUSED(needle))
+static void layout_list_scroll_to_subpart(LayoutWindow *lw, const gchar *)
{
if (!lw) return;
}
lw->options.tools_hidden = hide;
}
-static gboolean layout_tools_delete_cb(GtkWidget *UNUSED(widget), GdkEventAny *UNUSED(event), gpointer data)
+static gboolean layout_tools_delete_cb(GtkWidget *, GdkEventAny *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
static gint layout_config_delete_cb(GtkWidget *w, GdkEventAny *event, gpointer data);
-static void layout_config_close_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void layout_config_close_cb(GtkWidget *, gpointer data)
{
auto lc = static_cast<LayoutConfig *>(data);
g_free(lc);
}
-static gint layout_config_delete_cb(GtkWidget *w, GdkEventAny *UNUSED(event), gpointer data)
+static gint layout_config_delete_cb(GtkWidget *w, GdkEventAny *, gpointer data)
{
layout_config_close_cb(w, data);
return TRUE;
}
-static void layout_config_apply_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void layout_config_apply_cb(GtkWidget *, gpointer data)
{
auto lc = static_cast<LayoutConfig *>(data);
layout_apply_options(lc->lw, &lc->options);
}
-static void layout_config_help_cb(GtkWidget *UNUSED(widget), gpointer UNUSED(data))
+static void layout_config_help_cb(GtkWidget *, gpointer)
{
help_window_show("GuideOptionsLayout.html");
}
layout_config_close_cb(widget, lc);
}
-static void home_path_set_current_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void home_path_set_current_cb(GtkWidget *, gpointer data)
{
auto lc = static_cast<LayoutConfig *>(data);
gtk_entry_set_text(GTK_ENTRY(lc->home_path_entry), layout_get_path(lc->lw));
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-function"
-static void layout_config_save_cb_unused(GtkWidget *UNUSED(widget), gpointer UNUSED(data))
+static void layout_config_save_cb_unused(GtkWidget *, gpointer)
{
//layout_config_apply();
save_options(options);
g_free(lw);
}
-static gboolean layout_delete_cb(GtkWidget *UNUSED(widget), GdkEventAny *UNUSED(event), gpointer data)
+static gboolean layout_delete_cb(GtkWidget *, GdkEventAny *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
static LogWindow *logwindow = nullptr;
-static void hide_cb(GtkWidget *UNUSED(widget), LogWindow *UNUSED(logwin))
+static void hide_cb(GtkWidget *, LogWindow *)
{
}
* <options->log_window.action> <selected text>
*
*/
-static gboolean key_pressed(GtkWidget *UNUSED(widget), GdkEventKey *event, LogWindow *logwin)
+static gboolean key_pressed(GtkWidget *, GdkEventKey *event, LogWindow *logwin)
{
GtkTextBuffer *buffer;
GtkTextIter chr_end;
}
-static void log_window_pause_cb(GtkWidget *UNUSED(widget), gpointer UNUSED(data))
+static void log_window_pause_cb(GtkWidget *, gpointer)
{
options->log_window.paused = !options->log_window.paused;
}
-static void log_window_line_wrap_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void log_window_line_wrap_cb(GtkWidget *, gpointer data)
{
auto logwin = static_cast<LogWindow *>(data);
}
}
-static void log_window_timer_data_cb(GtkWidget *UNUSED(widget), gpointer UNUSED(data))
+static void log_window_timer_data_cb(GtkWidget *, gpointer)
{
options->log_window.timer_data = !options->log_window.timer_data;
}
-static void log_window_regexp_cb(GtkWidget *text_entry, gpointer UNUSED(data))
+static void log_window_regexp_cb(GtkWidget *text_entry, gpointer)
{
gchar *new_regexp;
}
}
-static void search_activate_event(GtkEntry *UNUSED(widget), LogWindow *logwin)
+static void search_activate_event(GtkEntry *, LogWindow *logwin)
{
GtkTextIter start_find;
GtkTextIter start_match;
}
}
-static gboolean search_keypress_event(GtkWidget *UNUSED(widget), GdkEventKey *UNUSED(event), LogWindow *logwin, LogWindowSearchDirection direction)
+static gboolean search_keypress_event(GtkWidget *, GdkEventKey *, LogWindow *logwin, LogWindowSearchDirection direction)
{
GtkTextIter start_find;
GtkTextIter start_match;
return FALSE;
}
-static gboolean debug_changed_cb(GtkSpinButton *widget, LogWindow *UNUSED(logwin))
+static gboolean debug_changed_cb(GtkSpinButton *widget, LogWindow *)
{
set_debug_level((gtk_spin_button_get_value(widget)));
return FALSE;
}
-static void search_entry_icon_cb(GtkEntry *UNUSED(entry), GtkEntryIconPosition pos, GdkEvent *UNUSED(event), gpointer userdata)
+static void search_entry_icon_cb(GtkEntry *, GtkEntryIconPosition pos, GdkEvent *, gpointer userdata)
{
auto logwin = static_cast<LogWindow *>(userdata);
GtkTextIter start_find;
}
}
-static void filter_entry_icon_cb(GtkEntry *entry, GtkEntryIconPosition UNUSED(pos), GdkEvent *UNUSED(event), gpointer UNUSED(userdata))
+static void filter_entry_icon_cb(GtkEntry *entry, GtkEntryIconPosition, GdkEvent *, gpointer)
{
const gchar *blank = "";
gtk_entry_set_text(entry, blank);
gchar *instance_identifier;
#if defined(SA_SIGINFO)
-void sig_handler_cb(int signo, siginfo_t *info, void *UNUSED(context))
+void sig_handler_cb(int signo, siginfo_t *info, void *)
{
gchar hex_char[16];
const gchar *signal_name = nullptr;
exit(EXIT_FAILURE);
}
#else /* defined(SA_SIGINFO) */
-void sig_handler_cb(int UNUSED(signo))
+void sig_handler_cb(int)
{
#ifdef HAVE_EXECINFO_H
gint bt_size;
}
}
-static void parse_command_line_add_dir(const gchar *dir, gchar **UNUSED(path), gchar **UNUSED(file),
- GList **UNUSED(list))
+static void parse_command_line_add_dir(const gchar *dir, gchar **, gchar **, GList **)
{
#if 0
/* This is broken because file filter is not initialized yet.
static GenericDialog *exit_dialog = nullptr;
-static void exit_confirm_cancel_cb(GenericDialog *gd, gpointer UNUSED(data))
+static void exit_confirm_cancel_cb(GenericDialog *gd, gpointer)
{
exit_dialog = nullptr;
generic_dialog_close(gd);
}
-static void exit_confirm_exit_cb(GenericDialog *gd, gpointer UNUSED(data))
+static void exit_confirm_exit_cb(GenericDialog *gd, gpointer)
{
exit_dialog = nullptr;
generic_dialog_close(gd);
return TRUE;
}
-static void exit_program_write_metadata_cb(gint success, const gchar *UNUSED(dest_path), gpointer UNUSED(data))
+static void exit_program_write_metadata_cb(gint success, const gchar *, gpointer)
{
if (success) exit_program();
}
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-function"
#if defined(SIGBUS) && defined(SA_SIGINFO)
-static void sigbus_handler_cb_unused(int UNUSED(signum), siginfo_t *info, void *UNUSED(context))
+static void sigbus_handler_cb_unused(int, siginfo_t *info, void *)
{
/*
* @FIXME Design and implement a POSIX-acceptable approach,
view_window_colors_update();
}
-static gboolean theme_change_cb(GObject *UNUSED(gobject), GParamSpec *UNUSED(pspec), gpointer UNUSED(data))
+static gboolean theme_change_cb(GObject *, GParamSpec *, gpointer)
{
set_theme_bg_color();
#define STAR_RATING_REJECTED 0x274C //Unicode Character 'Cross Mark'
#define STAR_RATING_STAR 0x2738 //Unicode Character 'Heavy Eight Pointed Rectilinear Black Star'
-/* From http://stackoverflow.com/questions/3417837/ */
-#ifdef UNUSED
-#elif defined(__GNUC__)
-# define UNUSED(x) UNUSED_ ## x __attribute__((unused))
-#elif defined(__LCLINT__)
-# define UNUSED(x) /*@unused@*/ x
-#else
-# define UNUSED(x) x
-#endif
-
/*
*----------------------------------------------------------------------------
* main.cc
* edit menu
*-----------------------------------------------------------------------------
*/
-static void edit_item_destroy_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void edit_item_destroy_cb(GtkWidget *, gpointer data)
{
g_free(data);
}
}
GtkWidget *submenu_add_zoom(GtkWidget *menu, GCallback func, gpointer data,
- gboolean UNUSED(include_none), gboolean UNUSED(include_path),
- gboolean show_current, ZoomMode mode)
+ gboolean, gboolean, gboolean show_current, ZoomMode mode)
{
GtkWidget *submenu;
*
* Used by all image windows
*/
-static void add_collection_list(GtkWidget *menu, GCallback func,
- GList *collection_list, gpointer UNUSED(data))
+static void add_collection_list(GtkWidget *menu, GCallback func, GList *collection_list, gpointer)
{
GList *work;
gint index = 0; /* index to existing collection list menu item selected */
}
#pragma GCC diagnostic pop
-void metadata_notify_cb(FileData *fd, NotifyType type, gpointer UNUSED(data))
+void metadata_notify_cb(FileData *fd, NotifyType type, gpointer)
{
if (type & (NOTIFY_REREAD | NOTIFY_CHANGE))
{
return (metadata_write_queue != nullptr);
}
-static gboolean metadata_write_queue_idle_cb(gpointer UNUSED(data))
+static gboolean metadata_write_queue_idle_cb(gpointer)
{
metadata_write_queue_confirm(FALSE, nullptr, nullptr);
metadata_write_idle_id = 0;
*/
-gboolean meta_data_get_keyword_mark(FileData *fd, gint UNUSED(n), gpointer data)
+gboolean meta_data_get_keyword_mark(FileData *fd, gint, gpointer data)
{
/** @FIXME do not use global keyword_tree */
auto path = static_cast<GList *>(data);
return found;
}
-gboolean meta_data_set_keyword_mark(FileData *fd, gint UNUSED(n), gboolean value, gpointer data)
+gboolean meta_data_set_keyword_mark(FileData *fd, gint, gboolean value, gpointer data)
{
auto path = static_cast<GList *>(data);
GList *keywords = nullptr;
return !!g_list_find(list, id);
}
-static gboolean keyword_show_all_in_cb(GtkTreeModel *model, GtkTreePath *UNUSED(path), GtkTreeIter *iter, gpointer data)
+static gboolean keyword_show_all_in_cb(GtkTreeModel *model, GtkTreePath *, GtkTreeIter *iter, gpointer data)
{
keyword_show_in(GTK_TREE_STORE(model), iter, data);
return FALSE;
gtk_tree_model_foreach(GTK_TREE_MODEL(keyword_tree), keyword_show_all_in_cb, id);
}
-static gboolean keyword_revert_hidden_in_cb(GtkTreeModel *model, GtkTreePath *UNUSED(path), GtkTreeIter *iter, gpointer data)
+static gboolean keyword_revert_hidden_in_cb(GtkTreeModel *model, GtkTreePath *, GtkTreeIter *iter, gpointer data)
{
if (keyword_is_hidden_in(GTK_TREE_MODEL(keyword_tree), iter, data))
{
keyword_hide_unset_in_recursive(keyword_tree, &iter, id, keywords);
}
-static gboolean keyword_show_set_in_cb(GtkTreeModel *model, GtkTreePath *UNUSED(path), GtkTreeIter *iter_ptr, gpointer data)
+static gboolean keyword_show_set_in_cb(GtkTreeModel *model, GtkTreePath *, GtkTreeIter *iter_ptr, gpointer data)
{
GtkTreeIter iter = *iter_ptr;
auto keywords = static_cast<GList *>(data);
/* Copied from the libarchive .repo. examples */
#ifndef HAVE_ARCHIVE
-gchar *open_archive(FileData *UNUSED(fd))
+gchar *open_archive(FileData *)
{
log_printf("%s", _("Warning: libarchive not installed"));
return NULL;
g_free(rc_path);
}
-gboolean load_options(ConfOptions *UNUSED(options))
+gboolean load_options(ConfOptions *)
{
gboolean success;
gchar *rc_path;
gtk_widget_grab_focus(GTK_WIDGET(image_overlay_template_view));
}
-static void osd_dnd_get_cb(GtkWidget *btn, GdkDragContext *UNUSED(context),
- GtkSelectionData *selection_data, guint UNUSED(info),
- guint UNUSED(time), gpointer data)
+static void osd_dnd_get_cb(GtkWidget *btn, GdkDragContext *, GtkSelectionData *selection_data, guint, guint, gpointer data)
{
TagData *td;
auto image_overlay_template_view = static_cast<GtkTextView *>(data);
gtk_widget_grab_focus(GTK_WIDGET(image_overlay_template_view));
}
-static void osd_btn_destroy_cb(GtkWidget *btn, GdkDragContext *UNUSED(context),
- GtkSelectionData *UNUSED(selection_data), guint UNUSED(info),
- guint UNUSED(time), gpointer UNUSED(data))
+static void osd_btn_destroy_cb(GtkWidget *btn, GdkDragContext *, GtkSelectionData *, guint, guint, gpointer)
{
TagData *td;
pi->data = shadow;
}
-gint pan_item_box_draw(PanWindow *UNUSED(pw), PanItem *pi, GdkPixbuf *pixbuf, PixbufRenderer *UNUSED(pr),
+gint pan_item_box_draw(PanWindow *, PanItem *pi, GdkPixbuf *pixbuf, PixbufRenderer *,
gint x, gint y, gint width, gint height)
{
gint bw, bh;
*-----------------------------------------------------------------------------
*/
-PanItem *pan_item_tri_new(PanWindow *pw, FileData *UNUSED(fd), gint x, gint y, gint width, gint height,
+PanItem *pan_item_tri_new(PanWindow *pw, FileData *, gint x, gint y, gint width, gint height,
gint x1, gint y1, gint x2, gint y2, gint x3, gint y3,
guint8 r, guint8 g, guint8 b, guint8 a)
{
pi->color2_a = a;
}
-gint pan_item_tri_draw(PanWindow *UNUSED(pw), PanItem *pi, GdkPixbuf *pixbuf, PixbufRenderer *UNUSED(pr),
- gint x, gint y, gint width, gint height)
+gint pan_item_tri_draw(PanWindow *, PanItem *pi, GdkPixbuf *pixbuf, PixbufRenderer *, gint x, gint y, gint width, gint height)
{
gint rx, ry, rw, rh;
return pi;
}
-gint pan_item_text_draw(PanWindow *UNUSED(pw), PanItem *pi, GdkPixbuf *pixbuf, PixbufRenderer *pr,
- gint x, gint y, gint UNUSED(width), gint UNUSED(height))
+gint pan_item_text_draw(PanWindow *, PanItem *pi, GdkPixbuf *pixbuf, PixbufRenderer *pr, gint x, gint y, gint, gint)
{
PangoLayout *layout;
return pi;
}
-gint pan_item_thumb_draw(PanWindow *pw, PanItem *pi, GdkPixbuf *pixbuf, PixbufRenderer *UNUSED(pr),
- gint x, gint y, gint width, gint height)
+gint pan_item_thumb_draw(PanWindow *pw, PanItem *pi, GdkPixbuf *pixbuf, PixbufRenderer *, gint x, gint y, gint width, gint height)
{
gint tx, ty, tw, th;
gint rx, ry, rw, rh;
return pi;
}
-gint pan_item_image_draw(PanWindow *UNUSED(pw), PanItem *pi, GdkPixbuf *pixbuf, PixbufRenderer *UNUSED(pr),
- gint x, gint y, gint width, gint height)
+gint pan_item_image_draw(PanWindow *, PanItem *pi, GdkPixbuf *pixbuf, PixbufRenderer *, gint x, gint y, gint width, gint height)
{
gint rx, ry, rw, rh;
}
#pragma GCC diagnostic pop
-void pan_filter_toggle_button_cb(GtkWidget *UNUSED(button), gpointer data)
+void pan_filter_toggle_button_cb(GtkWidget *, gpointer data)
{
auto pw = static_cast<PanWindow *>(data);
PanViewFilterUi *ui = pw->filter_ui;
return TRUE;
}
-static void pan_window_dispose_tile_cb(PixbufRenderer *UNUSED(pr), gint x, gint y,
- gint width, gint height, GdkPixbuf *UNUSED(pixbuf), gpointer data)
+static void pan_window_dispose_tile_cb(PixbufRenderer *, gint x, gint y,
+ gint width, gint height, GdkPixbuf *, gpointer data)
{
auto pw = static_cast<PanWindow *>(data);
GList *list;
pw->cache_total = g_list_length(pw->cache_todo);
}
-static void pan_cache_step_done_cb(CacheLoader *cl, gint UNUSED(error), gpointer data)
+static void pan_cache_step_done_cb(CacheLoader *cl, gint, gpointer data)
{
auto pw = static_cast<PanWindow *>(data);
}
}
-static void scroll_cb(PixbufRenderer *pr, GdkEventScroll *event, gpointer UNUSED(data))
+static void scroll_cb(PixbufRenderer *pr, GdkEventScroll *event, gpointer)
{
gint w, h;
G_CALLBACK(scroll_cb), pw);
}
-static void pan_fullscreen_stop_func(FullScreenData *UNUSED(fs), gpointer data)
+static void pan_fullscreen_stop_func(FullScreenData *, gpointer data)
{
auto pw = static_cast<PanWindow *>(data);
}
}
-static void pan_window_image_zoom_cb(PixbufRenderer *UNUSED(pr), gdouble UNUSED(zoom), gpointer data)
+static void pan_window_image_zoom_cb(PixbufRenderer *, gdouble, gpointer data)
{
auto pw = static_cast<PanWindow *>(data);
gchar *text;
g_free(pw);
}
-static gboolean pan_window_delete_cb(GtkWidget *UNUSED(w), GdkEventAny *UNUSED(event), gpointer data)
+static gboolean pan_window_delete_cb(GtkWidget *, GdkEventAny *, gpointer data)
{
auto pw = static_cast<PanWindow *>(data);
file_data_unref(dir_fd);
}
-static void pan_warning_hide_cb(GtkWidget *button, gpointer UNUSED(data))
+static void pan_warning_hide_cb(GtkWidget *button, gpointer)
{
gboolean hide_dlg;
#define INFO_IMAGE_SIZE_KEY "image_size_data"
-static void pan_new_window_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void pan_new_window_cb(GtkWidget *, gpointer data)
{
auto pw = static_cast<PanWindow *>(data);
FileData *fd;
}
}
-static void pan_go_to_original_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void pan_go_to_original_cb(GtkWidget *, gpointer data)
{
LayoutWindow *lw = nullptr;
auto pw = static_cast<PanWindow *>(data);
}
}
-static void pan_zoom_in_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void pan_zoom_in_cb(GtkWidget *, gpointer data)
{
auto pw = static_cast<PanWindow *>(data);
image_zoom_adjust(pw->imd, ZOOM_INCREMENT);
}
-static void pan_zoom_out_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void pan_zoom_out_cb(GtkWidget *, gpointer data)
{
auto pw = static_cast<PanWindow *>(data);
image_zoom_adjust(pw->imd, -ZOOM_INCREMENT);
}
-static void pan_zoom_1_1_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void pan_zoom_1_1_cb(GtkWidget *, gpointer data)
{
auto pw = static_cast<PanWindow *>(data);
image_zoom_set(pw->imd, 1.0);
}
-static void pan_copy_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void pan_copy_cb(GtkWidget *, gpointer data)
{
auto pw = static_cast<PanWindow *>(data);
FileData *fd;
if (fd) file_util_copy(fd, nullptr, nullptr, pw->imd->widget);
}
-static void pan_move_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void pan_move_cb(GtkWidget *, gpointer data)
{
auto pw = static_cast<PanWindow *>(data);
FileData *fd;
if (fd) file_util_move(fd, nullptr, nullptr, pw->imd->widget);
}
-static void pan_rename_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void pan_rename_cb(GtkWidget *, gpointer data)
{
auto pw = static_cast<PanWindow *>(data);
FileData *fd;
if (fd) file_util_rename(fd, nullptr, pw->imd->widget);
}
-static void pan_delete_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void pan_delete_cb(GtkWidget *, gpointer data)
{
auto pw = static_cast<PanWindow *>(data);
FileData *fd;
}
}
-static void pan_move_to_trash_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void pan_move_to_trash_cb(GtkWidget *, gpointer data)
{
auto pw = static_cast<PanWindow *>(data);
FileData *fd;
}
}
-static void pan_copy_path_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void pan_copy_path_cb(GtkWidget *, gpointer data)
{
auto pw = static_cast<PanWindow *>(data);
FileData *fd;
if (fd) file_util_copy_path_to_clipboard(fd, TRUE);
}
-static void pan_copy_path_unquoted_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void pan_copy_path_unquoted_cb(GtkWidget *, gpointer data)
{
auto pw = static_cast<PanWindow *>(data);
FileData *fd;
/** @FIXME sync info now */
}
-static void pan_fullscreen_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void pan_fullscreen_cb(GtkWidget *, gpointer data)
{
auto pw = static_cast<PanWindow *>(data);
pan_fullscreen_toggle(pw, FALSE);
}
-static void pan_close_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void pan_close_cb(GtkWidget *, gpointer data)
{
auto pw = static_cast<PanWindow *>(data);
pan_window_close(pw);
}
-static void pan_popup_menu_destroy_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void pan_popup_menu_destroy_cb(GtkWidget *, gpointer data)
{
auto editmenu_fd_list = static_cast<GList *>(data);
filelist_free(editmenu_fd_list);
}
-static void pan_play_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void pan_play_cb(GtkWidget *, gpointer data)
{
auto pw = static_cast<PanWindow *>(data);
*-----------------------------------------------------------------------------
*/
-static void pan_window_get_dnd_data(GtkWidget *UNUSED(widget), GdkDragContext *context,
- gint UNUSED(x), gint UNUSED(y),
+static void pan_window_get_dnd_data(GtkWidget *, GdkDragContext *context,
+ gint, gint,
GtkSelectionData *selection_data, guint info,
- guint UNUSED(time), gpointer data)
+ guint, gpointer data)
{
auto pw = static_cast<PanWindow *>(data);
}
}
-static void pan_window_set_dnd_data(GtkWidget *UNUSED(widget), GdkDragContext *UNUSED(context),
- GtkSelectionData *selection_data, guint UNUSED(info),
- guint UNUSED(time), gpointer data)
+static void pan_window_set_dnd_data(GtkWidget *, GdkDragContext *,
+ GtkSelectionData *selection_data, guint,
+ guint, gpointer data)
{
auto pw = static_cast<PanWindow *>(data);
FileData *fd;
*-------------------------------------------------------------------
*/
-static void pixbuf_renderer_class_init_wrapper(void *g_class, void *UNUSED(class_data))
+static void pixbuf_renderer_class_init_wrapper(void *g_class, void *)
{
pixbuf_renderer_class_init(static_cast<PixbufRendererClass *>(g_class));
}
-static void pixbuf_renderer_init_wrapper(PixbufRenderer *pr, void *UNUSED(class_data))
+static void pixbuf_renderer_init_wrapper(PixbufRenderer *pr, void *)
{
pixbuf_renderer_init(pr);
}
pr_update_signal(pr);
}
-static void pr_size_cb(GtkWidget *UNUSED(widget), GtkAllocation *allocation, gpointer data)
+static void pr_size_cb(GtkWidget *, GtkAllocation *allocation, gpointer data)
{
auto pr = static_cast<PixbufRenderer *>(data);
*-------------------------------------------------------------------
*/
-static gboolean pr_mouse_motion_cb(GtkWidget *widget, GdkEventMotion *event, gpointer UNUSED(data))
+static gboolean pr_mouse_motion_cb(GtkWidget *widget, GdkEventMotion *event, gpointer)
{
PixbufRenderer *pr;
gint accel;
return FALSE;
}
-static gboolean pr_leave_notify_cb(GtkWidget *widget, GdkEventCrossing *UNUSED(cevent), gpointer UNUSED(data))
+static gboolean pr_leave_notify_cb(GtkWidget *widget, GdkEventCrossing *, gpointer)
{
PixbufRenderer *pr;
return FALSE;
}
-static gboolean pr_mouse_press_cb(GtkWidget *widget, GdkEventButton *bevent, gpointer UNUSED(data))
+static gboolean pr_mouse_press_cb(GtkWidget *widget, GdkEventButton *bevent, gpointer)
{
PixbufRenderer *pr;
GtkWidget *parent;
return FALSE;
}
-static gboolean pr_mouse_release_cb(GtkWidget *widget, GdkEventButton *bevent, gpointer UNUSED(data))
+static gboolean pr_mouse_release_cb(GtkWidget *widget, GdkEventButton *bevent, gpointer)
{
PixbufRenderer *pr;
return FALSE;
}
-static gboolean pr_mouse_leave_cb(GtkWidget *widget, GdkEventCrossing *UNUSED(event), gpointer UNUSED(data))
+static gboolean pr_mouse_leave_cb(GtkWidget *widget, GdkEventCrossing *, gpointer)
{
PixbufRenderer *pr;
return FALSE;
}
-static void pr_mouse_drag_cb(GtkWidget *widget, GdkDragContext *UNUSED(context), gpointer UNUSED(data))
+static void pr_mouse_drag_cb(GtkWidget *widget, GdkDragContext *, gpointer)
{
PixbufRenderer *pr;
}
#pragma GCC diagnostic pop
-void pixbuf_renderer_set_size_early(PixbufRenderer *UNUSED(pr), guint UNUSED(width), guint UNUSED(height))
+void pixbuf_renderer_set_size_early(PixbufRenderer *, guint, guint)
{
#if 0
/** @FIXME this function does not consider the image orientation,
}
}
-void pixbuf_draw_layout(GdkPixbuf *pixbuf, PangoLayout *layout, GtkWidget *UNUSED(widget),
+void pixbuf_draw_layout(GdkPixbuf *pixbuf, PangoLayout *layout, GtkWidget *,
gint x, gint y,
guint8 r, guint8 g, guint8 b, guint8 a)
{
static void pixbuf_draw_fade_radius(guchar *p_pix, gint prs, gboolean has_alpha,
gint sx, gint sy, gint border,
gint x1, gint y1, gint x2, gint y2,
- guint8 UNUSED(r), guint8 g, guint8 b, guint8 a)
+ guint8, guint8 g, guint8 b, guint8 a)
{
guchar *pp;
gint p_step;
*-----------------------------------------------------------------------------
*/
-static void zoom_increment_cb(GtkWidget *spin, gpointer UNUSED(data))
+static void zoom_increment_cb(GtkWidget *spin, gpointer)
{
c_options->image.zoom_increment = static_cast<gint>(gtk_spin_button_get_value(GTK_SPIN_BUTTON(spin)) * 100.0 + 0.01);
}
-static void slideshow_delay_hours_cb(GtkWidget *spin, gpointer UNUSED(data))
+static void slideshow_delay_hours_cb(GtkWidget *spin, gpointer)
{
gint mins_secs_tenths, delay;
SLIDESHOW_SUBSECOND_PRECISION;
}
-static void slideshow_delay_minutes_cb(GtkWidget *spin, gpointer UNUSED(data))
+static void slideshow_delay_minutes_cb(GtkWidget *spin, gpointer)
{
gint hours, secs_tenths, delay;
SLIDESHOW_SUBSECOND_PRECISION;
}
-static void slideshow_delay_seconds_cb(GtkWidget *spin, gpointer UNUSED(data))
+static void slideshow_delay_seconds_cb(GtkWidget *spin, gpointer)
{
gint hours_mins, delay;
}
-static gboolean accel_apply_cb(GtkTreeModel *model, GtkTreePath *UNUSED(path), GtkTreeIter *iter, gpointer UNUSED(data))
+static gboolean accel_apply_cb(GtkTreeModel *model, GtkTreePath *, GtkTreeIter *iter, gpointer)
{
gchar *accel_path, *accel;
*-----------------------------------------------------------------------------
*/
-static void config_window_close_cb(GtkWidget *UNUSED(widget), gpointer UNUSED(data))
+static void config_window_close_cb(GtkWidget *, gpointer)
{
gtk_widget_destroy(configwindow);
configwindow = nullptr;
filter_store = nullptr;
}
-static void config_window_help_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void config_window_help_cb(GtkWidget *, gpointer data)
{
auto notebook = static_cast<GtkWidget *>(data);
gint i;
help_window_show(html_section[i]);
}
-static gboolean config_window_delete(GtkWidget *UNUSED(widget), GdkEventAny *UNUSED(event), gpointer UNUSED(data))
+static gboolean config_window_delete(GtkWidget *, GdkEventAny *, gpointer)
{
config_window_close_cb(nullptr, nullptr);
return TRUE;
gtk_widget_show(combo);
}
-static void thumb_size_menu_cb(GtkWidget *combo, gpointer UNUSED(data))
+static void thumb_size_menu_cb(GtkWidget *combo, gpointer)
{
gint n;
}
}
-static void filter_store_ext_edit_cb(GtkCellRendererText *UNUSED(cell), gchar *path_str,
- gchar *new_text, gpointer data)
+static void filter_store_ext_edit_cb(GtkCellRendererText *, gchar *path_str, gchar *new_text, gpointer data)
{
auto model = static_cast<GtkWidget *>(data);
auto fe = static_cast<FilterEntry *>(data);
filter_rebuild();
}
-static void filter_store_class_edit_cb(GtkCellRendererText *UNUSED(cell), gchar *path_str,
- gchar *new_text, gpointer data)
+static void filter_store_class_edit_cb(GtkCellRendererText *, gchar *path_str, gchar *new_text, gpointer data)
{
auto model = static_cast<GtkWidget *>(data);
auto fe = static_cast<FilterEntry *>(data);
filter_rebuild();
}
-static void filter_store_desc_edit_cb(GtkCellRendererText *UNUSED(cell), gchar *path_str,
- gchar *new_text, gpointer data)
+static void filter_store_desc_edit_cb(GtkCellRendererText *, gchar *path_str, gchar *new_text, gpointer data)
{
auto model = static_cast<GtkWidget *>(data);
FilterEntry *fe;
gtk_tree_path_free(tpath);
}
-static void filter_store_enable_cb(GtkCellRendererToggle *UNUSED(renderer),
- gchar *path_str, gpointer data)
+static void filter_store_enable_cb(GtkCellRendererToggle *, gchar *path_str, gpointer data)
{
auto model = static_cast<GtkWidget *>(data);
FilterEntry *fe;
filter_rebuild();
}
-static void filter_store_writable_cb(GtkCellRendererToggle *UNUSED(renderer),
- gchar *path_str, gpointer data)
+static void filter_store_writable_cb(GtkCellRendererToggle *, gchar *path_str, gpointer data)
{
auto model = static_cast<GtkWidget *>(data);
FilterEntry *fe;
filter_rebuild();
}
-static void filter_store_sidecar_cb(GtkCellRendererToggle *UNUSED(renderer),
- gchar *path_str, gpointer data)
+static void filter_store_sidecar_cb(GtkCellRendererToggle *, gchar *path_str, gpointer data)
{
auto model = static_cast<GtkWidget *>(data);
FilterEntry *fe;
filter_rebuild();
}
-static void filter_set_func(GtkTreeViewColumn *UNUSED(tree_column), GtkCellRenderer *cell,
+static void filter_set_func(GtkTreeViewColumn *, GtkCellRenderer *cell,
GtkTreeModel *tree_model, GtkTreeIter *iter, gpointer data)
{
FilterEntry *fe;
return(G_SOURCE_REMOVE);
}
-static void filter_add_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void filter_add_cb(GtkWidget *, gpointer data)
{
filter_add_unique("description", ".new", FORMAT_CLASS_IMAGE, TRUE, FALSE, TRUE);
filter_store_populate();
g_idle_add(static_cast<GSourceFunc>(filter_add_scroll), data);
}
-static void filter_remove_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void filter_remove_cb(GtkWidget *, gpointer data)
{
auto filter_view = static_cast<GtkWidget *>(data);
GtkTreeSelection *selection;
return(G_SOURCE_REMOVE);
}
-static void filter_default_ok_cb(GenericDialog *gd, gpointer UNUSED(data))
+static void filter_default_ok_cb(GenericDialog *gd, gpointer)
{
filter_reset();
filter_add_defaults();
g_idle_add(reinterpret_cast<GSourceFunc>(filter_default_ok_scroll), gd->data);
}
-static void dummy_cancel_cb(GenericDialog *UNUSED(gd), gpointer UNUSED(data))
+static void dummy_cancel_cb(GenericDialog *, gpointer)
{
/* no op, only so cancel button appears */
}
!gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)));
}
-static void safe_delete_view_cb(GtkWidget *UNUSED(widget), gpointer UNUSED(data))
+static void safe_delete_view_cb(GtkWidget *, gpointer)
{
layout_set_path(nullptr, gtk_entry_get_text(GTK_ENTRY(safe_delete_path_entry)));
}
-static void safe_delete_clear_ok_cb(GenericDialog *UNUSED(gd), gpointer UNUSED(data))
+static void safe_delete_clear_ok_cb(GenericDialog *, gpointer)
{
file_util_trash_clear();
}
-static void safe_delete_clear_cb(GtkWidget *widget, gpointer UNUSED(data))
+static void safe_delete_clear_cb(GtkWidget *widget, gpointer)
{
GenericDialog *gd;
GtkWidget *entry;
gtk_widget_show(gd->dialog);
}
-static void image_overlay_template_view_changed_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void image_overlay_template_view_changed_cb(GtkWidget *, gpointer data)
{
GtkWidget *pTextView;
GtkTextBuffer *pTextBuffer;
gtk_text_buffer_get_text(pTextBuffer, &iStart, &iEnd, TRUE));
}
-static void image_overlay_default_template_ok_cb(GenericDialog *UNUSED(gd), gpointer data)
+static void image_overlay_default_template_ok_cb(GenericDialog *, gpointer data)
{
auto text_view = static_cast<GtkTextView *>(data);
GtkTextBuffer *buffer;
gtk_widget_show(gd->dialog);
}
-static void image_overlay_help_cb(GtkWidget *UNUSED(widget), gpointer UNUSED(data))
+static void image_overlay_help_cb(GtkWidget *, gpointer)
{
help_window_show("GuideOptionsOSD.html");
}
-static void image_overlay_set_font_cb(GtkWidget *widget, gpointer UNUSED(data))
+static void image_overlay_set_font_cb(GtkWidget *widget, gpointer)
{
GtkWidget *dialog;
char *font;
gtk_widget_destroy(dialog);
}
-static void image_overlay_set_text_colour_cb(GtkWidget *widget, gpointer UNUSED(data))
+static void image_overlay_set_text_colour_cb(GtkWidget *widget, gpointer)
{
GtkWidget *dialog;
GdkRGBA colour;
}
-static void image_overlay_set_background_colour_cb(GtkWidget *widget, gpointer UNUSED(data))
+static void image_overlay_set_background_colour_cb(GtkWidget *widget, gpointer)
{
GtkWidget *dialog;
GdkRGBA colour;
}
}
-static void accel_store_cleared_cb(GtkCellRendererAccel *UNUSED(accel), gchar *UNUSED(path_string), gpointer UNUSED(user_data))
+static void accel_store_cleared_cb(GtkCellRendererAccel *, gchar *, gpointer)
{
}
-static gboolean accel_remove_key_cb(GtkTreeModel *model, GtkTreePath *UNUSED(path), GtkTreeIter *iter, gpointer data)
+static gboolean accel_remove_key_cb(GtkTreeModel *model, GtkTreePath *, GtkTreeIter *iter, gpointer data)
{
auto accel1 = static_cast<gchar *>(data);
gchar *accel2;
}
-static void accel_store_edited_cb(GtkCellRendererAccel *UNUSED(accel), gchar *path_string, guint accel_key, GdkModifierType accel_mods, guint UNUSED(hardware_keycode), gpointer UNUSED(user_data))
+static void accel_store_edited_cb(GtkCellRendererAccel *, gchar *path_string, guint accel_key, GdkModifierType accel_mods, guint, gpointer)
{
auto model = reinterpret_cast<GtkTreeModel *>(accel_store);
GtkTreeIter iter;
return(G_SOURCE_REMOVE);
}
-static void accel_default_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void accel_default_cb(GtkWidget *, gpointer data)
{
accel_store_populate();
g_idle_add(reinterpret_cast<GSourceFunc>(accel_default_scroll), data);
}
-void accel_clear_selection(GtkTreeModel *UNUSED(model), GtkTreePath *UNUSED(path), GtkTreeIter *iter, gpointer UNUSED(data))
+void accel_clear_selection(GtkTreeModel *, GtkTreePath *, GtkTreeIter *iter, gpointer)
{
gtk_tree_store_set(accel_store, iter, AE_KEY, "", -1);
}
-void accel_reset_selection(GtkTreeModel *model, GtkTreePath *UNUSED(path), GtkTreeIter *iter, gpointer UNUSED(data))
+void accel_reset_selection(GtkTreeModel *model, GtkTreePath *, GtkTreeIter *iter, gpointer)
{
GtkAccelKey key;
gchar *accel_path, *accel;
g_free(accel);
}
-static void accel_clear_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void accel_clear_cb(GtkWidget *, gpointer data)
{
GtkTreeSelection *selection;
gtk_tree_selection_selected_foreach(selection, &accel_clear_selection, nullptr);
}
-static void accel_reset_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void accel_reset_cb(GtkWidget *, gpointer data)
{
GtkTreeSelection *selection;
return vbox;
}
-static void cache_standard_cb(GtkWidget *widget, gpointer UNUSED(data))
+static void cache_standard_cb(GtkWidget *widget, gpointer)
{
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)))
{
}
}
-static void cache_geeqie_cb(GtkWidget *widget, gpointer UNUSED(data))
+static void cache_geeqie_cb(GtkWidget *widget, gpointer)
{
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)))
{
}
}
-static void cache_local_cb(GtkWidget *widget, gpointer UNUSED(data))
+static void cache_local_cb(GtkWidget *widget, gpointer)
{
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)))
{
}
}
-static void help_search_engine_entry_icon_cb(GtkEntry *UNUSED(entry), GtkEntryIconPosition pos,
- GdkEvent *UNUSED(event), gpointer userdata)
+static void help_search_engine_entry_icon_cb(GtkEntry *, GtkEntryIconPosition pos, GdkEvent *, gpointer userdata)
{
if (pos == GTK_ENTRY_ICON_PRIMARY)
{
}
}
-static void star_rating_star_icon_cb(GtkEntry *UNUSED(entry), GtkEntryIconPosition pos,
- GdkEvent *UNUSED(event), gpointer userdata)
+static void star_rating_star_icon_cb(GtkEntry *, GtkEntryIconPosition pos, GdkEvent *, gpointer userdata)
{
gchar *rating_symbol;
}
}
-static void star_rating_rejected_icon_cb(GtkEntry *UNUSED(entry), GtkEntryIconPosition pos,
- GdkEvent *UNUSED(event), gpointer userdata)
+static void star_rating_rejected_icon_cb(GtkEntry *, GtkEntryIconPosition pos, GdkEvent *, gpointer userdata)
{
gchar *rating_symbol;
}
}
-static guint star_rating_symbol_test(GtkWidget *UNUSED(widget), gpointer data)
+static guint star_rating_symbol_test(GtkWidget *, gpointer data)
{
auto hbox = static_cast<GtkContainer *>(data);
GString *str = g_string_new(nullptr);
/* windows tab */
-static void save_default_window_layout_cb(GtkWidget *UNUSED(widget), gpointer UNUSED(data))
+static void save_default_window_layout_cb(GtkWidget *, gpointer)
{
LayoutWindow *lw = nullptr;
gchar *default_path;
return FALSE;
}
-static void default_layout_changed_cb(GtkWidget *UNUSED(button), GtkPopover *popover)
+static void default_layout_changed_cb(GtkWidget *, GtkPopover *popover)
{
gtk_popover_popup(popover);
return ret;
}
-static gboolean search_function_cb(GtkTreeModel *model, gint UNUSED(column), const gchar *key, GtkTreeIter *iter, gpointer UNUSED(search_data))
+static gboolean search_function_cb(GtkTreeModel *model, gint, const gchar *key, GtkTreeIter *iter, gpointer)
{
FilterEntry *fe;
gboolean ret = TRUE;
kfd->list_dir = nullptr;
}
-static void keywords_find_close_cb(GenericDialog *UNUSED(fd), gpointer data)
+static void keywords_find_close_cb(GenericDialog *, gpointer data)
{
auto kfd = static_cast<KeywordFindData *>(data);
gtk_widget_set_sensitive(kfd->button_close, TRUE);
}
-static void keywords_find_stop_cb(GenericDialog *UNUSED(fd), gpointer data)
+static void keywords_find_stop_cb(GenericDialog *, gpointer data)
{
auto kfd = static_cast<KeywordFindData *>(data);
return G_SOURCE_REMOVE;
}
-static void keywords_find_start_cb(GenericDialog *UNUSED(fd), gpointer data)
+static void keywords_find_start_cb(GenericDialog *, gpointer data)
{
auto kfd = static_cast<KeywordFindData *>(data);
gchar *path;
gtk_widget_show(kfd->gd->dialog);
}
-static void keywords_find_cb(GtkWidget *widget, gpointer UNUSED(data))
+static void keywords_find_cb(GtkWidget *widget, gpointer)
{
const gchar *path = layout_get_path(nullptr);
}
/* advanced entry tab */
-static void use_geeqie_trash_cb(GtkWidget *widget, gpointer UNUSED(data))
+static void use_geeqie_trash_cb(GtkWidget *widget, gpointer)
{
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)))
{
}
}
-static void use_system_trash_cb(GtkWidget *widget, gpointer UNUSED(data))
+static void use_system_trash_cb(GtkWidget *widget, gpointer)
{
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)))
{
}
}
-static void use_no_cache_cb(GtkWidget *widget, gpointer UNUSED(data))
+static void use_no_cache_cb(GtkWidget *widget, gpointer)
{
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)))
{
/* accelerators tab */
-static gboolean accel_search_function_cb(GtkTreeModel *model, gint column, const gchar *key, GtkTreeIter *iter, gpointer UNUSED(data))
+static gboolean accel_search_function_cb(GtkTreeModel *model, gint column, const gchar *key, GtkTreeIter *iter, gpointer)
{
gboolean ret = TRUE;
gchar *key_nocase;
return ret;
}
-static void accel_row_activated_cb(GtkTreeView *tree_view, GtkTreePath *UNUSED(path), GtkTreeViewColumn *column, gpointer UNUSED(user_data))
+static void accel_row_activated_cb(GtkTreeView *tree_view, GtkTreePath *, GtkTreeViewColumn *column, gpointer)
{
GList *list;
gint col_num = 0;
}
}
-static void timezone_cancel_button_cb(GenericDialog *UNUSED(gd), gpointer data)
+static void timezone_cancel_button_cb(GenericDialog *, gpointer data)
{
auto tz = static_cast<TZData *>(data);
*template_string = g_strdup(value);
}
-static void image_text_template_view_changed_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void image_text_template_view_changed_cb(GtkWidget *, gpointer data)
{
GtkWidget *pTextView;
GtkTextBuffer *pTextBuffer;
gtk_widget_show(button);
}
-static gboolean paginate_cb(GtkPrintOperation *UNUSED(operation),
- GtkPrintContext *UNUSED(context),
- gpointer data)
+static gboolean paginate_cb(GtkPrintOperation *, GtkPrintContext *, gpointer data)
{
auto pw = static_cast<PrintWindow *>(data);
return text;
}
-static void draw_page(GtkPrintOperation *UNUSED(operation), GtkPrintContext *context,
- gint page_nr, gpointer data)
+static void draw_page(GtkPrintOperation *, GtkPrintContext *context, gint page_nr, gpointer data)
{
auto pw = static_cast<PrintWindow *>(data);
FileData *fd;
if (rotated) g_object_unref(rotated);
}
-static void begin_print(GtkPrintOperation *operation,
- GtkPrintContext *UNUSED(context),
- gpointer user_data)
+static void begin_print(GtkPrintOperation *operation, GtkPrintContext *, gpointer user_data)
{
auto pw = static_cast<PrintWindow *>(user_data);
gint page_count;
}
-GObject *option_tab_cb(GtkPrintOperation *UNUSED(operation), gpointer user_data)
+GObject *option_tab_cb(GtkPrintOperation *, gpointer user_data)
{
auto pw = static_cast<PrintWindow *>(user_data);
g_free(tmp);
}
-static void end_print_cb(GtkPrintOperation *operation,
- GtkPrintContext *UNUSED(context), gpointer data)
+static void end_print_cb(GtkPrintOperation *operation, GtkPrintContext *, gpointer data)
{
auto pw = static_cast<PrintWindow *>(data);
GList *work;
g_free(pw);
}
-void print_window_new(FileData *UNUSED(fd), GList *selection, GList *UNUSED(list), GtkWidget *parent)
+void print_window_new(FileData *, GList *selection, GList *, GtkWidget *parent)
{
GtkWidget *vbox;
GtkPrintOperation *operation;
g_string_append_printf(str, "\n%*s", indent * 4, "");
}
-void write_char_option(GString *str, gint UNUSED(indent), const gchar *label, const gchar *text)
+void write_char_option(GString *str, gint, const gchar *label, const gchar *text)
{
/* this is needed for overlay string, because g_markup_escape_text does not handle \n and such,
ideas for improvement are welcome
return TRUE;
}
-void write_int_option(GString *str, gint UNUSED(indent), const gchar *label, gint n)
+void write_int_option(GString *str, gint, const gchar *label, gint n)
{
g_string_append_printf(str, "%s = \"%d\" ", label, n);
}
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-function"
-void write_ushort_option_unused(GString *str, gint UNUSED(indent), const gchar *label, guint16 n)
+void write_ushort_option_unused(GString *str, gint, const gchar *label, guint16 n)
{
g_string_append_printf(str, "%s = \"%uh\" ", label, n);
}
return TRUE;
}
-void write_uint_option(GString *str, gint UNUSED(indent), const gchar *label, guint n)
+void write_uint_option(GString *str, gint, const gchar *label, guint n)
{
g_string_append_printf(str, "%s = \"%u\" ", label, n);
}
return ret;
}
-void write_int_unit_option(GString *str, gint UNUSED(indent), const gchar *label, gint n, gint subunits)
+void write_int_unit_option(GString *str, gint, const gchar *label, gint n, gint subunits)
{
gint l, r;
return TRUE;
}
-void write_bool_option(GString *str, gint UNUSED(indent), const gchar *label, gint n)
+void write_bool_option(GString *str, gint, const gchar *label, gint n)
{
g_string_append_printf(str, "%s = \"%s\" ", label, n ? "true" : "false");
}
return TRUE;
}
-gboolean save_default_layout_options_to_file(const gchar *utf8_path, ConfOptions *UNUSED(options), LayoutWindow *lw)
+gboolean save_default_layout_options_to_file(const gchar *utf8_path, ConfOptions *, LayoutWindow *lw)
{
SecureSaveInfo *ssi;
gchar *rc_pathl;
return TRUE;
}
-static void options_load_color_profiles(GQParserData *UNUSED(parser_data), GMarkupParseContext *UNUSED(context), const gchar *UNUSED(element_name), const gchar **attribute_names, const gchar **attribute_values, gpointer UNUSED(data), GError **UNUSED(error))
+static void options_load_color_profiles(GQParserData *, GMarkupParseContext *, const gchar *, const gchar **attribute_names, const gchar **attribute_values, gpointer, GError **)
{
while (*attribute_names)
{
}
-static void options_load_profile(GQParserData *parser_data, GMarkupParseContext *UNUSED(context), const gchar *UNUSED(element_name), const gchar **attribute_names, const gchar **attribute_values, gpointer data, GError **UNUSED(error))
+static void options_load_profile(GQParserData *parser_data, GMarkupParseContext *, const gchar *, const gchar **attribute_names, const gchar **attribute_values, gpointer data, GError **)
{
gint i = GPOINTER_TO_INT(data);
if (i < 0 || i >= COLOR_PROFILE_INPUTS) return;
}
-static void options_load_marks_tooltips(GQParserData *parser_data, GMarkupParseContext *UNUSED(context), const gchar *UNUSED(element_name), const gchar **attribute_names, const gchar **attribute_values, gpointer data, GError **UNUSED(error))
+static void options_load_marks_tooltips(GQParserData *parser_data, GMarkupParseContext *, const gchar *, const gchar **attribute_names, const gchar **attribute_values, gpointer data, GError **)
{
gint i = GPOINTER_TO_INT(data);
if (i < 0 || i >= FILEDATA_MARKS_SIZE) return;
}
-static void options_load_disabled_plugins(GQParserData *parser_data, GMarkupParseContext *UNUSED(context), const gchar *UNUSED(element_name), const gchar **attribute_names, const gchar **attribute_values, gpointer data, GError **UNUSED(error))
+static void options_load_disabled_plugins(GQParserData *parser_data, GMarkupParseContext *, const gchar *, const gchar **attribute_names, const gchar **attribute_values, gpointer data, GError **)
{
gint i = GPOINTER_TO_INT(data);
struct {
}
-void options_parse_leaf(GQParserData *parser_data, GMarkupParseContext *UNUSED(context), const gchar *element_name, const gchar **UNUSED(attribute_names), const gchar **UNUSED(attribute_values), gpointer UNUSED(data), GError **UNUSED(error))
+void options_parse_leaf(GQParserData *parser_data, GMarkupParseContext *, const gchar *element_name, const gchar **, const gchar **, gpointer, GError **)
{
log_printf("unexpected: %s\n", element_name);
options_parse_func_push(parser_data, options_parse_leaf, nullptr, nullptr);
}
}
-static void options_parse_class_filter(GQParserData *parser_data, GMarkupParseContext *UNUSED(context), const gchar *element_name, const gchar **attribute_names, const gchar **attribute_values, gpointer UNUSED(data), GError **UNUSED(error))
+static void options_parse_class_filter(GQParserData *parser_data, GMarkupParseContext *, const gchar *element_name, const gchar **attribute_names, const gchar **attribute_values, gpointer, GError **)
{
if (g_ascii_strcasecmp(element_name, "filter_type") == 0)
{
}
}
-static void options_parse_filter(GQParserData *parser_data, GMarkupParseContext *UNUSED(context), const gchar *element_name, const gchar **attribute_names, const gchar **attribute_values, gpointer UNUSED(data), GError **UNUSED(error))
+static void options_parse_filter(GQParserData *parser_data, GMarkupParseContext *, const gchar *element_name, const gchar **attribute_names, const gchar **attribute_values, gpointer, GError **)
{
if (g_ascii_strcasecmp(element_name, "file_type") == 0)
{
}
}
-static void options_parse_filter_end(GQParserData *parser_data, GMarkupParseContext *UNUSED(context), const gchar *UNUSED(element_name), gpointer UNUSED(data), GError **UNUSED(error))
+static void options_parse_filter_end(GQParserData *parser_data, GMarkupParseContext *, const gchar *, gpointer, GError **)
{
if (parser_data->startup) filter_add_defaults();
filter_rebuild();
}
-static void options_parse_keyword_end(GQParserData *UNUSED(parser_data), GMarkupParseContext *UNUSED(context), const gchar *UNUSED(element_name), gpointer data, GError **UNUSED(error))
+static void options_parse_keyword_end(GQParserData *, GMarkupParseContext *, const gchar *, gpointer data, GError **)
{
auto iter_ptr = static_cast<GtkTreeIter *>(data);
gtk_tree_iter_free(iter_ptr);
}
-static void options_parse_keyword(GQParserData *parser_data, GMarkupParseContext *UNUSED(context), const gchar *element_name, const gchar **attribute_names, const gchar **attribute_values, gpointer data, GError **UNUSED(error))
+static void options_parse_keyword(GQParserData *parser_data, GMarkupParseContext *, const gchar *element_name, const gchar **attribute_names, const gchar **attribute_values, gpointer data, GError **)
{
auto iter_ptr = static_cast<GtkTreeIter *>(data);
if (g_ascii_strcasecmp(element_name, "keyword") == 0)
-static void options_parse_keyword_tree(GQParserData *parser_data, GMarkupParseContext *UNUSED(context), const gchar *element_name, const gchar **attribute_names, const gchar **attribute_values, gpointer UNUSED(data), GError **UNUSED(error))
+static void options_parse_keyword_tree(GQParserData *parser_data, GMarkupParseContext *, const gchar *element_name, const gchar **attribute_names, const gchar **attribute_values, gpointer, GError **)
{
if (g_ascii_strcasecmp(element_name, "keyword") == 0)
{
}
}
-static void options_parse_global_end(GQParserData *UNUSED(parser_data), GMarkupParseContext *UNUSED(context), const gchar *UNUSED(element_name), gpointer UNUSED(data), GError **UNUSED(error))
+static void options_parse_global_end(GQParserData *, GMarkupParseContext *, const gchar *, gpointer, GError **)
{
#ifndef HAVE_EXIV2
/* some options do not work without exiv2 */
#endif
}
-static void options_parse_pane_exif(GQParserData *parser_data, GMarkupParseContext *UNUSED(context), const gchar *element_name, const gchar **attribute_names, const gchar **attribute_values, gpointer data, GError **UNUSED(error))
+static void options_parse_pane_exif(GQParserData *parser_data, GMarkupParseContext *, const gchar *element_name, const gchar **attribute_names, const gchar **attribute_values, gpointer data, GError **)
{
auto pane = static_cast<GtkWidget *>(data);
if (g_ascii_strcasecmp(element_name, "entry") == 0)
}
}
-static void options_parse_pane_keywords(GQParserData *parser_data, GMarkupParseContext *UNUSED(context), const gchar *element_name, const gchar **attribute_names, const gchar **attribute_values, gpointer data, GError **UNUSED(error))
+static void options_parse_pane_keywords(GQParserData *parser_data, GMarkupParseContext *, const gchar *element_name, const gchar **attribute_names, const gchar **attribute_values, gpointer data, GError **)
{
auto pane = static_cast<GtkWidget *>(data);
}
}
-static void options_parse_bar(GQParserData *parser_data, GMarkupParseContext *UNUSED(context), const gchar *element_name, const gchar **attribute_names, const gchar **attribute_values, gpointer data, GError **UNUSED(error))
+static void options_parse_bar(GQParserData *parser_data, GMarkupParseContext *, const gchar *element_name, const gchar **attribute_names, const gchar **attribute_values, gpointer data, GError **)
{
auto bar = static_cast<GtkWidget *>(data);
if (g_ascii_strcasecmp(element_name, "pane_comment") == 0)
}
}
-static void options_parse_toolbar(GQParserData *parser_data, GMarkupParseContext *UNUSED(context), const gchar *element_name, const gchar **attribute_names, const gchar **attribute_values, gpointer data, GError **UNUSED(error))
+static void options_parse_toolbar(GQParserData *parser_data, GMarkupParseContext *, const gchar *element_name, const gchar **attribute_names, const gchar **attribute_values, gpointer data, GError **)
{
auto lw = static_cast<LayoutWindow *>(data);
if (g_ascii_strcasecmp(element_name, "toolitem") == 0)
}
}
-static void options_parse_statusbar(GQParserData *parser_data, GMarkupParseContext *UNUSED(context), const gchar *element_name, const gchar **attribute_names, const gchar **attribute_values, gpointer data, GError **UNUSED(error))
+static void options_parse_statusbar(GQParserData *parser_data, GMarkupParseContext *, const gchar *element_name, const gchar **attribute_names, const gchar **attribute_values, gpointer data, GError **)
{
auto lw = static_cast<LayoutWindow *>(data);
if (g_ascii_strcasecmp(element_name, "toolitem") == 0)
}
}
-static void options_parse_dialogs(GQParserData *parser_data, GMarkupParseContext *UNUSED(context), const gchar *element_name, const gchar **attribute_names, const gchar **attribute_values, gpointer UNUSED(data), GError **UNUSED(error))
+static void options_parse_dialogs(GQParserData *parser_data, GMarkupParseContext *, const gchar *element_name, const gchar **attribute_names, const gchar **attribute_values, gpointer, GError **)
{
if (g_ascii_strcasecmp(element_name, "window") == 0)
{
}
}
-static void options_parse_layout(GQParserData *parser_data, GMarkupParseContext *UNUSED(context), const gchar *element_name, const gchar **attribute_names, const gchar **attribute_values, gpointer data, GError **UNUSED(error))
+static void options_parse_layout(GQParserData *parser_data, GMarkupParseContext *, const gchar *element_name, const gchar **attribute_names, const gchar **attribute_values, gpointer data, GError **)
{
auto lw = static_cast<LayoutWindow *>(data);
if (g_ascii_strcasecmp(element_name, "bar") == 0)
}
}
-static void options_parse_layout_end(GQParserData *UNUSED(parser_data), GMarkupParseContext *UNUSED(context), const gchar *UNUSED(element_name), gpointer data, GError **UNUSED(error))
+static void options_parse_layout_end(GQParserData *, GMarkupParseContext *, const gchar *, gpointer data, GError **)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_util_sync(lw);
}
-static void options_parse_toplevel(GQParserData *parser_data, GMarkupParseContext *UNUSED(context), const gchar *element_name, const gchar **attribute_names, const gchar **attribute_values, gpointer UNUSED(data), GError **UNUSED(error))
+static void options_parse_toplevel(GQParserData *parser_data, GMarkupParseContext *, const gchar *element_name, const gchar **attribute_names, const gchar **attribute_values, gpointer, GError **)
{
if (g_ascii_strcasecmp(element_name, "gq") == 0)
{
}
}
-static gboolean remote_server_read_cb(GIOChannel *UNUSED(source), GIOCondition UNUSED(condition), gpointer data)
+static gboolean remote_server_read_cb(GIOChannel *, GIOCondition, gpointer data)
{
auto rc = static_cast<RemoteConnection *>(data);
gint fd;
static sig_atomic_t sigpipe_occurred = FALSE;
-static void sighandler_sigpipe(gint UNUSED(sig))
+static void sighandler_sigpipe(gint)
{
sigpipe_occurred = TRUE;
}
*-----------------------------------------------------------------------------
*/
-static void gr_image_next(const gchar *UNUSED(text), GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_image_next(const gchar *, GIOChannel *, gpointer)
{
layout_image_next(lw_id);
}
-static void gr_new_window(const gchar *UNUSED(text), GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_new_window(const gchar *, GIOChannel *, gpointer)
{
LayoutWindow *lw = nullptr;
layout_set_path(lw_id, pwd);
}
-static gboolean gr_close_window_cb(gpointer UNUSED(data))
+static gboolean gr_close_window_cb(gpointer)
{
if (!layout_valid(&lw_id)) return FALSE;
return G_SOURCE_REMOVE;
}
-static void gr_close_window(const gchar *UNUSED(text), GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_close_window(const gchar *, GIOChannel *, gpointer)
{
g_idle_add((gr_close_window_cb), nullptr);
}
-static void gr_image_prev(const gchar *UNUSED(text), GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_image_prev(const gchar *, GIOChannel *, gpointer)
{
layout_image_prev(lw_id);
}
-static void gr_image_first(const gchar *UNUSED(text), GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_image_first(const gchar *, GIOChannel *, gpointer)
{
layout_image_first(lw_id);
}
-static void gr_image_last(const gchar *UNUSED(text), GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_image_last(const gchar *, GIOChannel *, gpointer)
{
layout_image_last(lw_id);
}
-static void gr_fullscreen_toggle(const gchar *UNUSED(text), GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_fullscreen_toggle(const gchar *, GIOChannel *, gpointer)
{
layout_image_full_screen_toggle(lw_id);
}
-static void gr_fullscreen_start(const gchar *UNUSED(text), GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_fullscreen_start(const gchar *, GIOChannel *, gpointer)
{
layout_image_full_screen_start(lw_id);
}
-static void gr_fullscreen_stop(const gchar *UNUSED(text), GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_fullscreen_stop(const gchar *, GIOChannel *, gpointer)
{
layout_image_full_screen_stop(lw_id);
}
-static void gr_lw_id(const gchar *text, GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_lw_id(const gchar *text, GIOChannel *, gpointer)
{
lw_id = layout_find_by_layout_id(text);
if (!lw_id)
layout_valid(&lw_id);
}
-static void gr_slideshow_start_rec(const gchar *text, GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_slideshow_start_rec(const gchar *text, GIOChannel *, gpointer)
{
GList *list;
gchar *tilde_filename;
layout_image_slideshow_start_from_list(lw_id, list);
}
-static void gr_cache_thumb(const gchar *text, GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_cache_thumb(const gchar *text, GIOChannel *, gpointer)
{
if (!g_strcmp0(text, "clear"))
{
}
}
-static void gr_cache_shared(const gchar *text, GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_cache_shared(const gchar *text, GIOChannel *, gpointer)
{
if (!g_strcmp0(text, "clear"))
cache_manager_standard_process_remote(TRUE);
cache_manager_standard_process_remote(FALSE);
}
-static void gr_cache_metadata(const gchar *UNUSED(text), GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_cache_metadata(const gchar *, GIOChannel *, gpointer)
{
cache_maintain_home_remote(TRUE, FALSE, nullptr);
}
-static void gr_cache_render(const gchar *text, GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_cache_render(const gchar *text, GIOChannel *, gpointer)
{
cache_manager_render_remote(text, FALSE, FALSE, nullptr);
}
-static void gr_cache_render_recurse(const gchar *text, GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_cache_render_recurse(const gchar *text, GIOChannel *, gpointer)
{
cache_manager_render_remote(text, TRUE, FALSE, nullptr);
}
-static void gr_cache_render_standard(const gchar *text, GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_cache_render_standard(const gchar *text, GIOChannel *, gpointer)
{
if(options->thumbnails.spec_standard)
{
}
}
-static void gr_cache_render_standard_recurse(const gchar *text, GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_cache_render_standard_recurse(const gchar *text, GIOChannel *, gpointer)
{
if(options->thumbnails.spec_standard)
{
}
}
-static void gr_slideshow_toggle(const gchar *UNUSED(text), GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_slideshow_toggle(const gchar *, GIOChannel *, gpointer)
{
layout_image_slideshow_toggle(lw_id);
}
-static void gr_slideshow_start(const gchar *UNUSED(text), GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_slideshow_start(const gchar *, GIOChannel *, gpointer)
{
layout_image_slideshow_start(lw_id);
}
-static void gr_slideshow_stop(const gchar *UNUSED(text), GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_slideshow_stop(const gchar *, GIOChannel *, gpointer)
{
layout_image_slideshow_stop(lw_id);
}
-static void gr_slideshow_delay(const gchar *text, GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_slideshow_delay(const gchar *text, GIOChannel *, gpointer)
{
gdouble t1, t2, t3, n;
gint res;
options->slideshow.delay = static_cast<gint>(n * 10.0 + 0.01);
}
-static void gr_tools_show(const gchar *UNUSED(text), GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_tools_show(const gchar *, GIOChannel *, gpointer)
{
gboolean popped;
gboolean hidden;
}
}
-static void gr_tools_hide(const gchar *UNUSED(text), GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_tools_hide(const gchar *, GIOChannel *, gpointer)
{
gboolean popped;
gboolean hidden;
}
}
-static gboolean gr_quit_idle_cb(gpointer UNUSED(data))
+static gboolean gr_quit_idle_cb(gpointer)
{
exit_program();
return G_SOURCE_REMOVE;
}
-static void gr_quit(const gchar *UNUSED(text), GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_quit(const gchar *, GIOChannel *, gpointer)
{
/* schedule exit when idle, if done from within a
* remote handler remote_close will crash
g_idle_add(gr_quit_idle_cb, nullptr);
}
-static void gr_file_load_no_raise(const gchar *text, GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_file_load_no_raise(const gchar *text, GIOChannel *, gpointer)
{
gchar *filename;
gchar *tilde_filename;
gr_raise(text, channel, data);
}
-static void gr_pixel_info(const gchar *UNUSED(text), GIOChannel *channel, gpointer UNUSED(data))
+static void gr_pixel_info(const gchar *, GIOChannel *channel, gpointer)
{
gchar *pixel_info;
gint x_pixel, y_pixel;
}
}
-static void gr_rectangle(const gchar *UNUSED(text), GIOChannel *channel, gpointer UNUSED(data))
+static void gr_rectangle(const gchar *, GIOChannel *channel, gpointer)
{
gchar *rectangle_info;
PixbufRenderer *pr;
}
}
-static void gr_render_intent(const gchar *UNUSED(text), GIOChannel *channel, gpointer UNUSED(data))
+static void gr_render_intent(const gchar *, GIOChannel *channel, gpointer)
{
gchar *render_intent;
file_data_unref(dir_fd);
}
-static void gr_get_selection(const gchar *UNUSED(text), GIOChannel *channel, gpointer UNUSED(data))
+static void gr_get_selection(const gchar *, GIOChannel *channel, gpointer)
{
if (!layout_valid(&lw_id)) return;
g_string_free(out_string, TRUE);
}
-static void gr_selection_add(const gchar *text, GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_selection_add(const gchar *text, GIOChannel *, gpointer)
{
if (!layout_valid(&lw_id)) return;
}
}
-static void gr_selection_clear(const gchar *UNUSED(text), GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_selection_clear(const gchar *, GIOChannel *, gpointer)
{
layout_select_none(lw_id); // Checks lw_id validity internally.
}
-static void gr_selection_remove(const gchar *text, GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_selection_remove(const gchar *text, GIOChannel *, gpointer)
{
if (!layout_valid(&lw_id)) return;
g_free(path);
}
-static void gr_collection(const gchar *text, GIOChannel *channel, gpointer UNUSED(data))
+static void gr_collection(const gchar *text, GIOChannel *channel, gpointer)
{
GString *contents = g_string_new(nullptr);
g_string_free(contents, TRUE);
}
-static void gr_collection_list(const gchar *UNUSED(text), GIOChannel *channel, gpointer UNUSED(data))
+static void gr_collection_list(const gchar *, GIOChannel *channel, gpointer)
{
GList *collection_list = nullptr;
return G_SOURCE_REMOVE;
}
-static void gr_geometry(const gchar *text, GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_geometry(const gchar *text, GIOChannel *, gpointer)
{
gchar **geometry;
g_strfreev(geometry);
}
-static void gr_filelist(const gchar *text, GIOChannel *channel, gpointer UNUSED(data))
+static void gr_filelist(const gchar *text, GIOChannel *channel, gpointer)
{
get_filelist(text, channel, FALSE);
}
-static void gr_filelist_recurse(const gchar *text, GIOChannel *channel, gpointer UNUSED(data))
+static void gr_filelist_recurse(const gchar *text, GIOChannel *channel, gpointer)
{
get_filelist(text, channel, TRUE);
}
-static void gr_file_tell(const gchar *UNUSED(text), GIOChannel *channel, gpointer UNUSED(data))
+static void gr_file_tell(const gchar *, GIOChannel *channel, gpointer)
{
gchar *out_string;
gchar *collection_name = nullptr;
g_free(out_string);
}
-static void gr_file_info(const gchar *UNUSED(text), GIOChannel *channel, gpointer UNUSED(data))
+static void gr_file_info(const gchar *, GIOChannel *channel, gpointer)
{
gchar *filename;
FileData *fd;
return FALSE;
}
-static void gr_config_load(const gchar *text, GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_config_load(const gchar *text, GIOChannel *, gpointer)
{
gchar *filename = expand_tilde(text);
g_free(filename);
}
-static void gr_get_sidecars(const gchar *text, GIOChannel *channel, gpointer UNUSED(data))
+static void gr_get_sidecars(const gchar *text, GIOChannel *channel, gpointer)
{
gchar *filename = expand_tilde(text);
FileData *fd = file_data_new_group(filename);
g_free(filename);
}
-static void gr_get_destination(const gchar *text, GIOChannel *channel, gpointer UNUSED(data))
+static void gr_get_destination(const gchar *text, GIOChannel *channel, gpointer)
{
gchar *filename = expand_tilde(text);
FileData *fd = file_data_new_group(filename);
g_free(filename);
}
-static void gr_file_view(const gchar *text, GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_file_view(const gchar *text, GIOChannel *, gpointer)
{
gchar *filename;
gchar *tilde_filename = expand_tilde(text);
g_free(tilde_filename);
}
-static void gr_list_clear(const gchar *UNUSED(text), GIOChannel *UNUSED(channel), gpointer data)
+static void gr_list_clear(const gchar *, GIOChannel *, gpointer data)
{
auto remote_data = static_cast<RemoteData *>(data);
remote_data->single_dir = TRUE;
}
-static void gr_list_add(const gchar *text, GIOChannel *UNUSED(channel), gpointer data)
+static void gr_list_add(const gchar *text, GIOChannel *, gpointer data)
{
auto remote_data = static_cast<RemoteData *>(data);
gboolean is_new = TRUE;
}
}
-static void gr_raise(const gchar *UNUSED(text), GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_raise(const gchar *, GIOChannel *, gpointer)
{
if (layout_valid(&lw_id))
{
}
}
-static void gr_pwd(const gchar *text, GIOChannel *UNUSED(channel), gpointer UNUSED(data))
+static void gr_pwd(const gchar *text, GIOChannel *, gpointer)
{
LayoutWindow *lw = nullptr;
lw_id = lw;
}
-static void gr_print0(const gchar *UNUSED(text), GIOChannel *channel, gpointer UNUSED(data))
+static void gr_print0(const gchar *, GIOChannel *channel, gpointer)
{
g_io_channel_write_chars(channel, "print0", -1, nullptr, nullptr);
g_io_channel_write_chars(channel, "<gq_end_of_command>", -1, nullptr, nullptr);
}
#ifdef HAVE_LUA
-static void gr_lua(const gchar *text, GIOChannel *channel, gpointer UNUSED(data))
+static void gr_lua(const gchar *text, GIOChannel *channel, gpointer)
{
gchar *result = nullptr;
gchar **lua_command;
return nullptr;
}
-static void remote_cb(RemoteConnection *UNUSED(rc), const gchar *text, GIOChannel *channel, gpointer data)
+static void remote_cb(RemoteConnection *, const gchar *text, GIOChannel *channel, gpointer data)
{
RemoteCommandEntry *entry;
const gchar *offset;
return rt_tile_add(rt, x, y);
}
-static gint pixmap_calc_size(cairo_surface_t *UNUSED(surface))
+static gint pixmap_calc_size(cairo_surface_t *)
{
return options->image.tile_size * options->image.tile_size * 4 / 8;
}
}
}
-void renderer_tiles_overlay_set(void *renderer, gint id, GdkPixbuf *pixbuf, gint UNUSED(x), gint UNUSED(y))
+void renderer_tiles_overlay_set(void *renderer, gint id, GdkPixbuf *pixbuf, gint, gint)
{
auto rc = static_cast<RendererTiles *>(renderer);
PixbufRenderer *pr = rc->pr;
return TRUE;
}
-static void rt_hierarchy_changed_cb(GtkWidget *UNUSED(widget), GtkWidget *UNUSED(previous_toplevel), gpointer data)
+static void rt_hierarchy_changed_cb(GtkWidget *, GtkWidget *, gpointer data)
{
auto rt = static_cast<RendererTiles *>(data);
rt_overlay_list_reset_window(rt);
static gboolean rt_source_tile_render(RendererTiles *rt, ImageTile *it,
gint x, gint y, gint w, gint h,
- gboolean UNUSED(new_data), gboolean fast)
+ gboolean, gboolean fast)
{
PixbufRenderer *pr = rt->pr;
GList *list;
clamp, render, new_data, only_existing);
}
-static void renderer_update_pixbuf(void *renderer, gboolean UNUSED(lazy))
+static void renderer_update_pixbuf(void *renderer, gboolean)
{
rt_queue_clear(static_cast<RendererTiles *>(renderer));
}
return FALSE;
}
-static gboolean rt_draw_cb(GtkWidget *UNUSED(widget), cairo_t *cr, gpointer data)
+static gboolean rt_draw_cb(GtkWidget *, cairo_t *cr, gpointer data)
{
auto rt = static_cast<RendererTiles *>(data);
GList *work;
GtkBuilder *builder;
};
-static gint sort_iter_compare_func (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer UNUSED(data))
+static gint sort_iter_compare_func (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer)
{
gint ret = 0;
gchar *label1, *label2;
return G_SOURCE_REMOVE;
}
-static gboolean entry_box_activate_cb(GtkWidget *UNUSED(widget), gpointer data)
+static gboolean entry_box_activate_cb(GtkWidget *, gpointer data)
{
auto sar = static_cast<SarData *>(data);
return TRUE;
}
-static gboolean keypress_cb(GtkWidget *UNUSED(widget), GdkEventKey *event, gpointer data)
+static gboolean keypress_cb(GtkWidget *, GdkEventKey *event, gpointer data)
{
auto sar = static_cast<SarData *>(data);
gboolean ret = FALSE;
return ret;
}
-static gboolean match_selected_cb(GtkEntryCompletion *UNUSED(widget), GtkTreeModel *model, GtkTreeIter *iter, gpointer data)
+static gboolean match_selected_cb(GtkEntryCompletion *, GtkTreeModel *model, GtkTreeIter *iter, gpointer data)
{
auto sar = static_cast<SarData *>(data);
return g_list_reverse(list);
}
-static gboolean search_result_free_node(GtkTreeModel *store, GtkTreePath *UNUSED(tpath),
- GtkTreeIter *iter, gpointer UNUSED(data))
+static gboolean search_result_free_node(GtkTreeModel *store, GtkTreePath *, GtkTreeIter *iter, gpointer)
{
MatchFileData *mfd;
}
}
-static gboolean search_result_select_cb(GtkTreeSelection *UNUSED(selection), GtkTreeModel *UNUSED(store),
- GtkTreePath *UNUSED(tpath), gboolean UNUSED(selected), gpointer data)
+static gboolean search_result_select_cb(GtkTreeSelection *, GtkTreeModel *, GtkTreePath *, gboolean, gpointer data)
{
auto sd = static_cast<SearchData *>(data);
search_result_thumb_set(sd, fd, nullptr);
}
-static void search_result_thumb_done_cb(ThumbLoader *UNUSED(tl), gpointer data)
+static void search_result_thumb_done_cb(ThumbLoader *, gpointer data)
{
auto sd = static_cast<SearchData *>(data);
*-------------------------------------------------------------------
*/
-static void sr_menu_view_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void sr_menu_view_cb(GtkWidget *, gpointer data)
{
auto sd = static_cast<SearchData *>(data);
if (sd->click_fd) layout_set_fd(nullptr, sd->click_fd);
}
-static void sr_menu_viewnew_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void sr_menu_viewnew_cb(GtkWidget *, gpointer data)
{
auto sd = static_cast<SearchData *>(data);
GList *list;
filelist_free(list);
}
-static void sr_menu_select_all_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void sr_menu_select_all_cb(GtkWidget *, gpointer data)
{
auto sd = static_cast<SearchData *>(data);
GtkTreeSelection *selection;
gtk_tree_selection_select_all(selection);
}
-static void sr_menu_select_none_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void sr_menu_select_none_cb(GtkWidget *, gpointer data)
{
auto sd = static_cast<SearchData *>(data);
GtkTreeSelection *selection;
search_result_edit_selected(sd, key);
}
-static void sr_menu_print_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void sr_menu_print_cb(GtkWidget *, gpointer data)
{
auto sd = static_cast<SearchData *>(data);
search_result_get_filelist(sd), sd->window);
}
-static void sr_menu_copy_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void sr_menu_copy_cb(GtkWidget *, gpointer data)
{
auto sd = static_cast<SearchData *>(data);
file_util_copy(nullptr, search_result_selection_list(sd), nullptr, sd->window);
}
-static void sr_menu_move_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void sr_menu_move_cb(GtkWidget *, gpointer data)
{
auto sd = static_cast<SearchData *>(data);
file_util_move(nullptr, search_result_selection_list(sd), nullptr, sd->window);
}
-static void sr_menu_rename_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void sr_menu_rename_cb(GtkWidget *, gpointer data)
{
auto sd = static_cast<SearchData *>(data);
file_util_rename(nullptr, search_result_selection_list(sd), sd->window);
}
-static void sr_menu_delete_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void sr_menu_delete_cb(GtkWidget *, gpointer data)
{
auto sd = static_cast<SearchData *>(data);
file_util_delete(nullptr, search_result_selection_list(sd), sd->window);
}
-static void sr_menu_move_to_trash_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void sr_menu_move_to_trash_cb(GtkWidget *, gpointer data)
{
auto sd = static_cast<SearchData *>(data);
file_util_delete(nullptr, search_result_selection_list(sd), sd->window);
}
-static void sr_menu_copy_path_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void sr_menu_copy_path_cb(GtkWidget *, gpointer data)
{
auto sd = static_cast<SearchData *>(data);
file_util_copy_path_list_to_clipboard(search_result_selection_list(sd), TRUE);
}
-static void sr_menu_copy_path_unquoted_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void sr_menu_copy_path_unquoted_cb(GtkWidget *, gpointer data)
{
auto sd = static_cast<SearchData *>(data);
file_util_copy_path_list_to_clipboard(search_result_selection_list(sd), FALSE);
}
-static void sr_menu_play_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void sr_menu_play_cb(GtkWidget *, gpointer data)
{
auto sd = static_cast<SearchData *>(data);
start_editor_from_file(options->image_l_click_video_editor, sd->click_fd);
}
-static void search_result_menu_destroy_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void search_result_menu_destroy_cb(GtkWidget *, gpointer data)
{
auto editmenu_fd_list = static_cast<GList *>(data);
return stop_signal;
}
-static gboolean search_window_keypress_cb(GtkWidget *UNUSED(widget), GdkEventKey *event, gpointer data)
+static gboolean search_window_keypress_cb(GtkWidget *, GdkEventKey *event, gpointer data)
{
auto sd = static_cast<SearchData *>(data);
gboolean stop_signal = FALSE;
};
static gint n_result_drop_types = 2;
-static void search_dnd_data_set(GtkWidget *UNUSED(widget), GdkDragContext *UNUSED(context),
- GtkSelectionData *selection_data, guint UNUSED(info),
- guint UNUSED(time), gpointer data)
+static void search_dnd_data_set(GtkWidget *, GdkDragContext *,
+ GtkSelectionData *selection_data, guint,
+ guint, gpointer data)
{
auto sd = static_cast<SearchData *>(data);
GList *list;
}
}
-static void search_gps_dnd_received_cb(GtkWidget *UNUSED(pane), GdkDragContext *UNUSED(context),
- gint UNUSED(x), gint UNUSED(y),
+static void search_gps_dnd_received_cb(GtkWidget *, GdkDragContext *,
+ gint, gint,
GtkSelectionData *selection_data, guint info,
- guint UNUSED(time), gpointer data)
+ guint, gpointer data)
{
auto sd = static_cast<SearchData *>(data);
GList *list;
}
}
-static void search_path_entry_dnd_received_cb(GtkWidget *UNUSED(pane), GdkDragContext *UNUSED(context),
- gint UNUSED(x), gint UNUSED(y),
+static void search_path_entry_dnd_received_cb(GtkWidget *, GdkDragContext *,
+ gint, gint,
GtkSelectionData *selection_data, guint info,
- guint UNUSED(time), gpointer data)
+ guint, gpointer data)
{
auto sd = static_cast<SearchData *>(data);
GList *list;
}
}
-static void search_image_content_dnd_received_cb(GtkWidget *UNUSED(pane), GdkDragContext *UNUSED(context),
- gint UNUSED(x), gint UNUSED(y),
+static void search_image_content_dnd_received_cb(GtkWidget *, GdkDragContext *,
+ gint, gint,
GtkSelectionData *selection_data, guint info,
- guint UNUSED(time), gpointer data)
+ guint, gpointer data)
{
auto sd = static_cast<SearchData *>(data);
GList *list;
sd->search_idle_id = g_idle_add(search_step_cb, sd);
}
-static void search_file_load_done_cb(ImageLoader *UNUSED(il), gpointer data)
+static void search_file_load_done_cb(ImageLoader *, gpointer data)
{
auto sd = static_cast<SearchData *>(data);
search_file_load_process(sd, sd->img_cd);
return G_SOURCE_CONTINUE;
}
-static void search_similarity_load_done_cb(ImageLoader *UNUSED(il), gpointer data)
+static void search_similarity_load_done_cb(ImageLoader *, gpointer data)
{
auto sd = static_cast<SearchData *>(data);
search_file_load_process(sd, sd->search_similarity_cd);
sd->search_idle_id = g_idle_add(search_step_cb, sd);
}
-static void search_start_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void search_start_cb(GtkWidget *, gpointer data)
{
auto sd = static_cast<SearchData *>(data);
GtkTreeViewColumn *column;
gtk_widget_destroy(sd->window);
}
-static void search_window_close_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void search_window_close_cb(GtkWidget *, gpointer data)
{
auto sd = static_cast<SearchData *>(data);
search_window_close(sd);
}
-static void search_window_help_cb(GtkWidget *UNUSED(widget), gpointer UNUSED(data))
+static void search_window_help_cb(GtkWidget *, gpointer)
{
help_window_show("GuideImageSearchSearch.html");
}
-static gboolean search_window_delete_cb(GtkWidget *UNUSED(widget), GdkEventAny *UNUSED(event), gpointer data)
+static gboolean search_window_delete_cb(GtkWidget *, GdkEventAny *, gpointer data)
{
auto sd = static_cast<SearchData *>(data);
return TRUE;
}
-static void search_window_destroy_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void search_window_destroy_cb(GtkWidget *, gpointer data)
{
auto sd = static_cast<SearchData *>(data);
g_free(sd);
}
-static void select_collection_dialog_close_cb(FileDialog *fdlg, gpointer UNUSED(data))
+static void select_collection_dialog_close_cb(FileDialog *fdlg, gpointer)
{
file_dialog_close(fdlg);
}
g_free(collection);
}
-static void select_collection_clicked_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void select_collection_clicked_cb(GtkWidget *, gpointer data)
{
auto sd = static_cast<SearchData *>(data);
FileDialog *fdlg;
shortcuts_add_close(scd);
}
-static void shortcuts_add_cancel_cb(FileDialog *UNUSED(fd), gpointer data)
+static void shortcuts_add_cancel_cb(FileDialog *, gpointer data)
{
auto scd = static_cast<ShortcutsData *>(data);
gtk_widget_show(GENERIC_DIALOG(scd->dialog)->dialog);
}
-static void shortcuts_destroy(GtkWidget *UNUSED(widget), gpointer data)
+static void shortcuts_destroy(GtkWidget *, gpointer data)
{
auto scd = static_cast<ShortcutsData *>(data);
return scd->vbox;
}
-GtkWidget *shortcuts_new_from_config(LayoutWindow *lw, const gchar **UNUSED(attribute_names), const gchar **UNUSED(attribute_values))
+GtkWidget *shortcuts_new_from_config(LayoutWindow *lw, const gchar **, const gchar **)
{
GtkWidget *shortcuts_bar;
if (tl->func_error) tl->func_error(tl, tl->data);
}
-static void thumb_loader_std_progress_cb(ImageLoader *UNUSED(il), gdouble percent, gpointer data)
+static void thumb_loader_std_progress_cb(ImageLoader *, gdouble percent, gpointer data)
{
auto tl = static_cast<ThumbLoaderStd *>(data);
thumb_loader_std_thumb_file_validate_free(tv);
}
-static void thumb_loader_std_thumb_file_validate_done_cb(ThumbLoaderStd *UNUSED(tl), gpointer data)
+static void thumb_loader_std_thumb_file_validate_done_cb(ThumbLoaderStd *, gpointer data)
{
auto tv = static_cast<ThumbValidate *>(data);
GdkPixbuf *pixbuf;
thumb_loader_std_thumb_file_validate_finish(tv, valid);
}
-static void thumb_loader_std_thumb_file_validate_error_cb(ThumbLoaderStd *UNUSED(tl), gpointer data)
+static void thumb_loader_std_thumb_file_validate_error_cb(ThumbLoaderStd *, gpointer data)
{
auto tv = static_cast<ThumbValidate *>(data);
static gboolean thumb_std_maint_move_idle(gpointer data);
-static void thumb_std_maint_move_validate_cb(const gchar *UNUSED(path), gboolean UNUSED(valid), gpointer data)
+static void thumb_std_maint_move_validate_cb(const gchar *, gboolean, gpointer data)
{
auto tm = static_cast<TMaintMove *>(data);
GdkPixbuf *pixbuf;
thumb_std_maint_move_validate_cb, tm);
}
-static gboolean thumb_std_maint_move_idle(gpointer UNUSED(data))
+static gboolean thumb_std_maint_move_idle(gpointer)
{
TMaintMove *tm;
gchar *pathl;
return success;
}
-static void thumb_loader_percent_cb(ImageLoader *UNUSED(il), gdouble percent, gpointer data)
+static void thumb_loader_percent_cb(ImageLoader *, gdouble percent, gpointer data)
{
auto tl = static_cast<ThumbLoader *>(data);
}
/* release thumb_pixbuf on file change - this forces reload. */
-void thumb_notify_cb(FileData *fd, NotifyType type, gpointer UNUSED(data))
+void thumb_notify_cb(FileData *fd, NotifyType type, gpointer)
{
if ((type & (NOTIFY_REREAD | NOTIFY_CHANGE)) && fd->thumb_pixbuf)
{
}
#undef XV_BUFFER
-static void free_rgb_buffer(guchar *pixels, gpointer UNUSED(data))
+static void free_rgb_buffer(guchar *pixels, gpointer)
{
g_free(pixels);
}
* @param single_step Move up/down one step, or to top/bottom
*
*/
-static void toolbar_item_move(GtkWidget *UNUSED(widget), gpointer data,
- gboolean up, gboolean single_step)
+static void toolbar_item_move(GtkWidget *, gpointer data, gboolean up, gboolean single_step)
{
auto list_item = static_cast<GtkWidget *>(data);
GtkWidget *box;
toolbar_item_move(widget, data, FALSE, FALSE);
}
-static void toolbar_item_delete_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void toolbar_item_delete_cb(GtkWidget *, gpointer data)
{
gtk_widget_destroy(GTK_WIDGET(data));
}
gtk_menu_popup_at_pointer(GTK_MENU(menu), nullptr);
}
-static gboolean toolbar_press_cb(GtkGesture *UNUSED(gesture), int UNUSED(n_press), double UNUSED(x), double UNUSED(y), gpointer data)
+static gboolean toolbar_press_cb(GtkGesture *, int, double, double, gpointer data)
{
auto button_data = static_cast<ToolbarButtonData *>(data);
g_list_free(editors_list);
}
-static void toolbar_menu_add_popup(GtkWidget *UNUSED(widget), gpointer data)
+static void toolbar_menu_add_popup(GtkWidget *, gpointer data)
{
GtkWidget *menu;
GList *editors_list;
return dest;
}
-static void move_to_trash_failed_cb(GenericDialog *UNUSED(gd), gpointer UNUSED(data))
+static void move_to_trash_failed_cb(GenericDialog *, gpointer)
{
help_window_show("TrashFailed.html");
}
if (bm->select_func) bm->select_func(b->path, bm->select_data);
}
-static void bookmark_edit_destroy_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void bookmark_edit_destroy_cb(GtkWidget *, gpointer data)
{
auto p = static_cast<BookPropData *>(data);
g_free(p);
}
-static void bookmark_edit_cancel_cb(GenericDialog *UNUSED(gd), gpointer UNUSED(data))
+static void bookmark_edit_cancel_cb(GenericDialog *, gpointer)
{
}
-static void bookmark_edit_ok_cb(GenericDialog *UNUSED(gd), gpointer data)
+static void bookmark_edit_ok_cb(GenericDialog *, gpointer data)
{
auto p = static_cast<BookPropData *>(data);
const gchar *name;
bookmark_move(bm, bm->active_button->button, direction);
}
-static void bookmark_menu_up_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void bookmark_menu_up_cb(GtkWidget *, gpointer data)
{
bookmark_menu_move(static_cast<BookMarkData *>(data), -1);
}
-static void bookmark_menu_down_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void bookmark_menu_down_cb(GtkWidget *, gpointer data)
{
bookmark_menu_move(static_cast<BookMarkData *>(data), 1);
}
-static void bookmark_menu_remove_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void bookmark_menu_remove_cb(GtkWidget *, gpointer data)
{
auto bm = static_cast<BookMarkData *>(data);
bookmark_populate_all(bm->key);
}
-static void bookmark_menu_popup(BookMarkData *bm, GtkWidget *button,
- gint UNUSED(button_n), guint32 UNUSED(time), gboolean local)
+static void bookmark_menu_popup(BookMarkData *bm, GtkWidget *button, gint, guint32, gboolean local)
{
GtkWidget *menu;
BookButtonData *b;
static void bookmark_drag_set_data(GtkWidget *button,
GdkDragContext *context, GtkSelectionData *selection_data,
- guint UNUSED(info), guint UNUSED(time), gpointer data)
+ guint, guint, gpointer data)
{
auto bm = static_cast<BookMarkData *>(data);
BookButtonData *b;
g_list_free(list);
}
-static void bookmark_drag_begin(GtkWidget *button, GdkDragContext *context, gpointer UNUSED(data))
+static void bookmark_drag_begin(GtkWidget *button, GdkDragContext *context, gpointer)
{
GdkPixbuf *pixbuf;
GdkModifierType mask;
g_object_unref(pixbuf);
}
-static gboolean bookmark_path_tooltip_cb(GtkWidget *button, gpointer UNUSED(data))
+static gboolean bookmark_path_tooltip_cb(GtkWidget *button, gpointer)
{
BookButtonData *b;
}
}
-static void bookmark_dnd_get_data(GtkWidget *UNUSED(widget),
- GdkDragContext *UNUSED(context), gint UNUSED(x), gint UNUSED(y),
- GtkSelectionData *selection_data, guint UNUSED(info),
- guint UNUSED(time), gpointer data)
+static void bookmark_dnd_get_data(GtkWidget *, GdkDragContext *,
+ gint, gint,
+ GtkSelectionData *selection_data, guint,
+ guint, gpointer data)
{
auto bm = static_cast<BookMarkData *>(data);
GList *list = nullptr;
}
}
-static void bookmark_list_destroy(GtkWidget *UNUSED(widget), gpointer data)
+static void bookmark_list_destroy(GtkWidget *, gpointer data)
{
auto bm = static_cast<BookMarkData *>(data);
gint history_levels;
};
-static void history_combo_destroy(GtkWidget *UNUSED(widget), gpointer data)
+static void history_combo_destroy(GtkWidget *, gpointer data)
{
auto hc = static_cast<HistoryComboData *>(data);
}
}
-static void download_web_file_cancel_button_cb(GenericDialog *UNUSED(gd), gpointer data)
+static void download_web_file_cancel_button_cb(GenericDialog *, gpointer data)
{
auto web = static_cast<WebData *>(data);
gtk_text_view_scroll_to_iter(GTK_TEXT_VIEW(text), &iter, 0.0, TRUE, 0, 0);
}
-static gboolean help_window_delete_cb(GtkWidget *widget, GdkEventAny *UNUSED(event), gpointer UNUSED(data))
+static gboolean help_window_delete_cb(GtkWidget *widget, GdkEventAny *, gpointer)
{
gtk_widget_destroy(widget);
return TRUE;
}
-static void help_window_close(GtkWidget *UNUSED(widget), gpointer data)
+static void help_window_close(GtkWidget *, gpointer data)
{
auto window = static_cast<GtkWidget *>(data);
gtk_widget_destroy(window);
*-----------------------------------------------------------------------------
*/
-static void popup_menu_short_lived_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void popup_menu_short_lived_cb(GtkWidget *, gpointer data)
{
/* destroy the menu */
g_object_unref(G_OBJECT(data));
GtkWidget *pref_radiobutton_new_int_unused(GtkWidget *parent_box, GtkWidget *sibling,
const gchar *text, gboolean active,
gboolean *result, gboolean value,
- GCallback UNUSED(func), gpointer UNUSED(data))
+ GCallback, gpointer)
{
GtkWidget *button;
G_CALLBACK(pref_spin_int_cb), value_var);
}
-static void pref_link_sensitivity_cb(GtkWidget *watch, GtkStateType UNUSED(prev_state), gpointer data)
+static void pref_link_sensitivity_cb(GtkWidget *watch, GtkStateType, gpointer data)
{
auto widget = static_cast<GtkWidget *>(data);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(ds->button), FALSE);
}
-static gboolean date_selection_popup_release_cb(GtkWidget *UNUSED(widget), GdkEventButton *UNUSED(event), gpointer data)
+static gboolean date_selection_popup_release_cb(GtkWidget *, GdkEventButton *, gpointer data)
{
auto ds = static_cast<DateSelection *>(data);
return TRUE;
}
-static gboolean date_selection_popup_press_cb(GtkWidget *UNUSED(widget), GdkEventButton *event, gpointer data)
+static gboolean date_selection_popup_press_cb(GtkWidget *, GdkEventButton *event, gpointer data)
{
auto ds = static_cast<DateSelection *>(data);
gint x, y;
date_selection_set(ds->box, day, month + 1, year);
}
-static gboolean date_selection_popup_keypress_cb(GtkWidget *UNUSED(widget), GdkEventKey *event, gpointer data)
+static gboolean date_selection_popup_keypress_cb(GtkWidget *, GdkEventKey *event, gpointer data)
{
auto ds = static_cast<DateSelection *>(data);
return FALSE;
}
-static void date_selection_day_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void date_selection_day_cb(GtkWidget *, gpointer data)
{
auto ds = static_cast<DateSelection *>(data);
date_selection_popup_sync(ds);
}
-static void date_selection_doubleclick_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void date_selection_doubleclick_cb(GtkWidget *, gpointer data)
{
auto ds = static_cast<DateSelection *>(data);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(ds->button), TRUE);
}
-static void date_selection_button_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void date_selection_button_cb(GtkWidget *, gpointer data)
{
auto ds = static_cast<DateSelection *>(data);
gtk_widget_set_size_request(spin, req.width + value, -1);
}
-static void date_selection_destroy_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void date_selection_destroy_cb(GtkWidget *, gpointer data)
{
auto ds = static_cast<DateSelection *>(data);
}
}
-gboolean defined_mouse_buttons(GtkWidget *UNUSED(widget), GdkEventButton *event, gpointer data)
+gboolean defined_mouse_buttons(GtkWidget *, GdkEventButton *event, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
GtkAction *action;
*-----------------------------------------------------------------------------
*/
-static void dest_free_data(GtkWidget *UNUSED(widget), gpointer data)
+static void dest_free_data(GtkWidget *, gpointer data)
{
auto dd = static_cast<Dest_Data *>(data);
#define dest_drag_types_n 2
-static void dest_dnd_set_data(GtkWidget *view,
- GdkDragContext *UNUSED(context), GtkSelectionData *selection_data,
- guint UNUSED(info), guint UNUSED(time), gpointer UNUSED(data))
+static void dest_dnd_set_data(GtkWidget *view, GdkDragContext *,
+ GtkSelectionData *selection_data,
+ guint, guint, gpointer)
{
gchar *path = nullptr;
GList *list = nullptr;
g_free(text);
}
-static void dest_view_delete_dlg_cancel(GenericDialog *UNUSED(gd), gpointer data)
+static void dest_view_delete_dlg_cancel(GenericDialog *, gpointer data)
{
auto dl = static_cast<DestDel_Data *>(data);
g_free(path);
}
-static void dest_popup_dir_rename_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dest_popup_dir_rename_cb(GtkWidget *, gpointer data)
{
auto dd = static_cast<Dest_Data *>(data);
dest_view_rename(dd, GTK_TREE_VIEW(dd->d_view));
}
-static void dest_popup_dir_bookmark_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dest_popup_dir_bookmark_cb(GtkWidget *, gpointer data)
{
auto dd = static_cast<Dest_Data *>(data);
dest_view_bookmark(dd, GTK_TREE_VIEW(dd->d_view));
}
-static void dest_popup_file_rename_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dest_popup_file_rename_cb(GtkWidget *, gpointer data)
{
auto dd = static_cast<Dest_Data *>(data);
dest_view_rename(dd, GTK_TREE_VIEW(dd->f_view));
}
-static void dest_popup_file_delete_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dest_popup_file_delete_cb(GtkWidget *, gpointer data)
{
auto dd = static_cast<Dest_Data *>(data);
dest_view_delete(dd, GTK_TREE_VIEW(dd->f_view));
}
-static void dest_popup_file_bookmark_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dest_popup_file_bookmark_cb(GtkWidget *, gpointer data)
{
auto dd = static_cast<Dest_Data *>(data);
dest_view_bookmark(dd, GTK_TREE_VIEW(dd->f_view));
}
-static gboolean dest_popup_menu(Dest_Data *dd, GtkTreeView *view,
- guint UNUSED(button), guint32 UNUSED(time), gboolean local)
+static gboolean dest_popup_menu(Dest_Data *dd, GtkTreeView *view, guint, guint32, gboolean local)
{
GtkWidget *menu;
g_free(path);
}
-static void dest_activate_cb(GtkWidget *view, GtkTreePath *tpath, GtkTreeViewColumn *UNUSED(column), gpointer data)
+static void dest_activate_cb(GtkWidget *view, GtkTreePath *tpath, GtkTreeViewColumn *, gpointer data)
{
auto dd = static_cast<Dest_Data *>(data);
GtkTreeModel *store;
g_free(path);
}
-static void dest_home_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dest_home_cb(GtkWidget *, gpointer data)
{
auto dd = static_cast<Dest_Data *>(data);
dest_change_dir(dd, homedir(), (dd->f_view != nullptr));
}
-static void dest_show_hidden_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void dest_show_hidden_cb(GtkWidget *, gpointer data)
{
auto dd = static_cast<Dest_Data *>(data);
gchar *buf;
g_free(buf);
}
-static void dest_entry_changed_cb(GtkEditable *UNUSED(editable), gpointer data)
+static void dest_entry_changed_cb(GtkEditable *, gpointer data)
{
auto dd = static_cast<Dest_Data *>(data);
const gchar *path;
dest_filter_add(dd, "*", _("All Files"), TRUE);
}
-static void dest_filter_changed_cb(GtkEditable *UNUSED(editable), gpointer data)
+static void dest_filter_changed_cb(GtkEditable *, gpointer data)
{
auto dd = static_cast<Dest_Data *>(data);
GtkWidget *entry;
gtk_widget_set_sensitive(sp->image, (interval >= 0));
}
-static void spinner_destroy_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void spinner_destroy_cb(GtkWidget *, gpointer data)
{
auto sp = static_cast<SpinnerData *>(data);
g_free(pathl);
}
-static void tab_completion_destroy(GtkWidget *UNUSED(widget), gpointer data)
+static void tab_completion_destroy(GtkWidget *, gpointer data)
{
auto td = static_cast<TabCompData *>(data);
return (stop_signal);
}
-static void tab_completion_button_pressed(GtkWidget *UNUSED(widget), gpointer data)
+static void tab_completion_button_pressed(GtkWidget *, gpointer data)
{
TabCompData *td;
auto entry = static_cast<GtkWidget *>(data);
gtk_widget_show(GENERIC_DIALOG(td->fd)->dialog);
}
-static void tab_completion_select_pressed(GtkWidget *UNUSED(widget), gpointer data)
+static void tab_completion_select_pressed(GtkWidget *, gpointer data)
{
auto td = static_cast<TabCompData *>(data);
}
}
-static gboolean tree_edit_click_end_cb(GtkWidget *UNUSED(widget), GdkEventButton *UNUSED(event), gpointer data)
+static gboolean tree_edit_click_end_cb(GtkWidget *, GdkEventButton *, gpointer data)
{
auto ted = static_cast<TreeEditData *>(data);
return TRUE;
}
-static gboolean tree_edit_click_cb(GtkWidget *UNUSED(widget), GdkEventButton *event, gpointer data)
+static gboolean tree_edit_click_cb(GtkWidget *, GdkEventButton *event, gpointer data)
{
auto ted = static_cast<TreeEditData *>(data);
GdkWindow *window = gtk_widget_get_window(ted->window);
return FALSE;
}
-static gboolean tree_edit_key_press_cb(GtkWidget *UNUSED(widget), GdkEventKey *event, gpointer data)
+static gboolean tree_edit_key_press_cb(GtkWidget *, GdkEventKey *event, gpointer data)
{
auto ted = static_cast<TreeEditData *>(data);
return FALSE;
}
-static gboolean generic_dialog_delete_cb(GtkWidget *UNUSED(w), GdkEventAny *UNUSED(event), gpointer data)
+static gboolean generic_dialog_delete_cb(GtkWidget *, GdkEventAny *, gpointer data)
{
auto gd = static_cast<GenericDialog *>(data);
gboolean auto_close;
*-----------------------------------------------------------------------------
*/
-static void warning_dialog_ok_cb(GenericDialog *UNUSED(gd), gpointer UNUSED(data))
+static void warning_dialog_ok_cb(GenericDialog *, gpointer)
{
/* no op */
}
return TRUE;
}
-static gboolean user_close_cb(GtkWidget *UNUSED(widget), GdkEvent *UNUSED(event), gpointer data)
+static gboolean user_close_cb(GtkWidget *, GdkEvent *, gpointer data)
{
auto appimage_data = static_cast<AppImageData *>(data);
g_free(ui_path);
}
-void appimage_notification_func(gpointer data, gpointer UNUSED(user_data))
+void appimage_notification_func(gpointer data, gpointer)
{
gboolean internet_available = FALSE;
gchar *architecture;
reinterpret_cast<void(*)(GenericDialog *, gpointer)>(func_cb), is_default);
}
-static void file_dialog_entry_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void file_dialog_entry_cb(GtkWidget *, gpointer data)
{
auto fdlg = static_cast<FileDialog *>(data);
g_free(fdlg->dest_path);
fdlg->dest_path = remove_trailing_slash(gtk_entry_get_text(GTK_ENTRY(fdlg->entry)));
}
-static void file_dialog_entry_enter_cb(const gchar *UNUSED(path), gpointer data)
+static void file_dialog_entry_enter_cb(const gchar *, gpointer data)
{
auto gd = static_cast<GenericDialog *>(data);
* because it does not have a mouse center option,
* and we must center it before show, implement it here.
*/
-static void file_util_warning_dialog_ok_cb(GenericDialog *UNUSED(gd), gpointer UNUSED(data))
+static void file_util_warning_dialog_ok_cb(GenericDialog *, gpointer)
{
/* no op */
}
/* call file_util_perform_ci_internal or start_editor_from_filelist_full */
-static void file_util_resume_cb(GenericDialog *UNUSED(gd), gpointer data)
+static void file_util_resume_cb(GenericDialog *, gpointer data)
{
auto ud = static_cast<UtilityData *>(data);
if (ud->external)
file_util_perform_ci_internal(ud);
}
-static void file_util_abort_cb(GenericDialog *UNUSED(gd), gpointer data)
+static void file_util_abort_cb(GenericDialog *, gpointer data)
{
auto ud = static_cast<UtilityData *>(data);
if (ud->external)
file_util_dialog_run(ud);
}
-static gint file_util_perform_ci_dir_cb(gpointer UNUSED(resume_data), EditorFlags flags, GList *UNUSED(list), gpointer data)
+static gint file_util_perform_ci_dir_cb(gpointer, EditorFlags flags, GList *, gpointer data)
{
auto ud = static_cast<UtilityData *>(data);
file_util_perform_ci_dir(ud, FALSE, !EDITOR_ERRORS_BUT_SKIPPED(flags));
}
}
-static void file_util_check_resume_cb(GenericDialog *UNUSED(gd), gpointer data)
+static void file_util_check_resume_cb(GenericDialog *, gpointer data)
{
auto ud = static_cast<UtilityData *>(data);
ud->phase = UTILITY_PHASE_CHECKED;
file_util_dialog_run(ud);
}
-static void file_util_check_abort_cb(GenericDialog *UNUSED(gd), gpointer data)
+static void file_util_check_abort_cb(GenericDialog *, gpointer data)
{
auto ud = static_cast<UtilityData *>(data);
ud->phase = UTILITY_PHASE_START;
file_util_dialog_run(ud);
}
-static void file_util_dest_folder_entry_cb(GtkWidget *UNUSED(entry), gpointer data)
+static void file_util_dest_folder_entry_cb(GtkWidget *, gpointer data)
{
auto ud = static_cast<UtilityData *>(data);
file_util_dest_folder_update_path(ud);
}
-static void file_util_rename_preview_entry_cb(GtkWidget *UNUSED(entry), gpointer data)
+static void file_util_rename_preview_entry_cb(GtkWidget *, gpointer data)
{
auto ud = static_cast<UtilityData *>(data);
file_util_rename_preview_update(ud);
}
-static void file_util_rename_preview_adj_cb(GtkWidget *UNUSED(spin), gpointer data)
+static void file_util_rename_preview_adj_cb(GtkWidget *, gpointer data)
{
auto ud = static_cast<UtilityData *>(data);
file_util_rename_preview_update(ud);
return G_SOURCE_REMOVE;
}
-static void file_util_rename_preview_order_cb(GtkTreeModel *UNUSED(treemodel), GtkTreePath *UNUSED(tpath),
- GtkTreeIter *UNUSED(iter), gpointer data)
+static void file_util_rename_preview_order_cb(GtkTreeModel *, GtkTreePath *, GtkTreeIter *, gpointer data)
{
auto ud = static_cast<UtilityData *>(data);
}
-static gboolean file_util_preview_cb(GtkTreeSelection *UNUSED(selection), GtkTreeModel *store,
+static gboolean file_util_preview_cb(GtkTreeSelection *, GtkTreeModel *store,
GtkTreePath *tpath, gboolean path_currently_selected,
gpointer data)
{
gtk_widget_set_sensitive(label, FALSE);
}
-static void file_util_details_cb(GenericDialog *UNUSED(gd), gpointer data)
+static void file_util_details_cb(GenericDialog *, gpointer data)
{
auto ud = static_cast<UtilityData *>(data);
if (ud->details_func && ud->sel_fd)
file_util_warning_dialog(title, _("Another operation in progress.\n"), GTK_STOCK_DIALOG_ERROR, nullptr);
}
-static void file_util_details_dialog_close_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void file_util_details_dialog_close_cb(GtkWidget *, gpointer data)
{
gtk_widget_destroy(GTK_WIDGET(data));
}
-static void file_util_details_dialog_ok_cb(GenericDialog *UNUSED(gd), gpointer UNUSED(data))
+static void file_util_details_dialog_ok_cb(GenericDialog *, gpointer)
{
/* no op */
}
return G_SOURCE_REMOVE;
}
-static void file_util_write_metadata_first_done(gboolean success, const gchar *UNUSED(done_path), gpointer data)
+static void file_util_write_metadata_first_done(gboolean success, const gchar *, gpointer data)
{
auto dd = static_cast<UtilityDelayData *>(data);
*
*
*/
-static void clipboard_clear_func(GtkClipboard *UNUSED(clipboard), gpointer data)
+static void clipboard_clear_func(GtkClipboard *, gpointer data)
{
auto cbd = static_cast<ClipboardData *>(data);
filelist_free(fd_list);
}
-static void new_folder_entry_activate_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void new_folder_entry_activate_cb(GtkWidget *, gpointer data)
{
auto dialog = static_cast<GtkDialog *>(data);
return options->view_dir_list_single_click_enter;
}
-void vdlist_destroy_cb(GtkWidget *UNUSED(widget), gpointer data)
+void vdlist_destroy_cb(GtkWidget *, gpointer data)
{
auto vd = static_cast<ViewDir *>(data);
filelist_free(VDLIST(vd)->list);
}
-ViewDir *vdlist_new(ViewDir *vd, FileData *UNUSED(dir_fd))
+ViewDir *vdlist_new(ViewDir *vd, FileData *)
{
GtkListStore *store;
GtkTreeSelection *selection;
static gboolean selection_is_ok = FALSE;
-static gboolean vdtree_select_cb(GtkTreeSelection *UNUSED(selection), GtkTreeModel *UNUSED(store), GtkTreePath *UNUSED(tpath), gboolean UNUSED(path_currently_selected), gpointer UNUSED(data))
+static gboolean vdtree_select_cb(GtkTreeSelection *, GtkTreeModel *, GtkTreePath *, gboolean, gpointer)
{
return selection_is_ok;
}
vdtree_populate_path(vd, vd->dir_fd, FALSE, TRUE);
}
-const gchar *vdtree_row_get_path(ViewDir *UNUSED(vd), gint UNUSED(row))
+const gchar *vdtree_row_get_path(ViewDir *, gint)
{
/** @FIXME no get row path */
log_printf("FIXME: no get row path\n");
}
static gboolean vdtree_clicked_on_expander(GtkTreeView *treeview, GtkTreePath *tpath,
- GtkTreeViewColumn *column, gint x, gint UNUSED(y), gint *left_of_expander)
+ GtkTreeViewColumn *column, gint x, gint, gint *left_of_expander)
{
gint depth;
gint size;
}
}
-static gint vdtree_sort_cb(GtkTreeModel *store, GtkTreeIter *a, GtkTreeIter *b, gpointer UNUSED(data))
+static gint vdtree_sort_cb(GtkTreeModel *store, GtkTreeIter *a, GtkTreeIter *b, gpointer)
{
NodeData *nda;
NodeData *ndb;
vdtree_populate_path(vd, fd, FALSE, FALSE);
}
-static gboolean vdtree_destroy_node_cb(GtkTreeModel *store, GtkTreePath *UNUSED(tpath), GtkTreeIter *iter, gpointer UNUSED(data))
+static gboolean vdtree_destroy_node_cb(GtkTreeModel *store, GtkTreePath *, GtkTreeIter *iter, gpointer)
{
NodeData *nd;
return FALSE;
}
-void vdtree_destroy_cb(GtkWidget *UNUSED(widget), gpointer data)
+void vdtree_destroy_cb(GtkWidget *, gpointer data)
{
auto vd = static_cast<ViewDir *>(data);
GtkTreeModel *store;
gtk_tree_model_foreach(store, vdtree_destroy_node_cb, vd);
}
-ViewDir *vdtree_new(ViewDir *vd, FileData *UNUSED(dir_fd))
+ViewDir *vdtree_new(ViewDir *vd, FileData *)
{
GtkTreeStore *store;
GtkTreeSelection *selection;
}
}
-static gboolean vd_rename_cb(TreeEditData *td, const gchar *UNUSED(old_name), const gchar *new_name, gpointer data)
+static gboolean vd_rename_cb(TreeEditData *td, const gchar *, const gchar *new_name, gpointer data)
{
auto vd = static_cast<ViewDir *>(data);
FileData *fd;
}
}
-void vd_popup_destroy_cb(GtkWidget *UNUSED(widget), gpointer data)
+void vd_popup_destroy_cb(GtkWidget *, gpointer data)
{
auto vd = static_cast<ViewDir *>(data);
*-----------------------------------------------------------------------------
*/
-static void vd_drop_menu_copy_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vd_drop_menu_copy_cb(GtkWidget *, gpointer data)
{
auto vd = static_cast<ViewDir *>(data);
const gchar *path;
file_util_copy_simple(list, path, vd->widget);
}
-static void vd_drop_menu_move_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vd_drop_menu_move_cb(GtkWidget *, gpointer data)
{
auto vd = static_cast<ViewDir *>(data);
const gchar *path;
*-----------------------------------------------------------------------------
*/
-static void vd_pop_menu_up_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vd_pop_menu_up_cb(GtkWidget *, gpointer data)
{
auto vd = static_cast<ViewDir *>(data);
gchar *path;
g_free(path);
}
-static void vd_pop_menu_slide_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vd_pop_menu_slide_cb(GtkWidget *, gpointer data)
{
auto vd = static_cast<ViewDir *>(data);
layout_image_slideshow_start(vd->layout);
}
-static void vd_pop_menu_slide_rec_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vd_pop_menu_slide_rec_cb(GtkWidget *, gpointer data)
{
auto vd = static_cast<ViewDir *>(data);
GList *list;
filelist_free(list);
}
-static void vd_pop_menu_dupe_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vd_pop_menu_dupe_cb(GtkWidget *, gpointer data)
{
auto vd = static_cast<ViewDir *>(data);
vd_pop_menu_dupe(vd, FALSE);
}
-static void vd_pop_menu_dupe_rec_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vd_pop_menu_dupe_rec_cb(GtkWidget *, gpointer data)
{
auto vd = static_cast<ViewDir *>(data);
vd_pop_menu_dupe(vd, TRUE);
}
-static void vd_pop_menu_delete_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vd_pop_menu_delete_cb(GtkWidget *, gpointer data)
{
auto vd = static_cast<ViewDir *>(data);
file_util_delete_dir(vd->click_fd, vd->widget);
}
-static void vd_pop_menu_copy_path_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vd_pop_menu_copy_path_cb(GtkWidget *, gpointer data)
{
auto vd = static_cast<ViewDir *>(data);
file_util_copy_path_to_clipboard(vd->click_fd, TRUE);
}
-static void vd_pop_menu_copy_path_unquoted_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vd_pop_menu_copy_path_unquoted_cb(GtkWidget *, gpointer data)
{
auto vd = static_cast<ViewDir *>(data);
layout_views_set(vd->layout, new_type, vd->layout->options.file_view_type);
}
-static void vd_pop_menu_refresh_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vd_pop_menu_refresh_cb(GtkWidget *, gpointer data)
{
auto vd = static_cast<ViewDir *>(data);
if (vd->layout) layout_refresh(vd->layout);
}
-static void vd_toggle_show_hidden_files_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vd_toggle_show_hidden_files_cb(GtkWidget *, gpointer data)
{
auto vd = static_cast<ViewDir *>(data);
gtk_tree_path_free(tpath);
}
-static void vd_pop_menu_new_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vd_pop_menu_new_cb(GtkWidget *, gpointer data)
{
auto vd = static_cast<ViewDir *>(data);
FileData *dir_fd = nullptr;
file_util_create_dir(dir_fd, vd->layout->window, vd_pop_menu_new_folder_cb, vd);
}
-static void vd_pop_menu_rename_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vd_pop_menu_rename_cb(GtkWidget *, gpointer data)
{
auto vd = static_cast<ViewDir *>(data);
}
}
-static void vd_dnd_get(GtkWidget *UNUSED(widget), GdkDragContext *UNUSED(context),
+static void vd_dnd_get(GtkWidget *, GdkDragContext *,
GtkSelectionData *selection_data, guint info,
- guint UNUSED(time), gpointer data)
+ guint, gpointer data)
{
auto vd = static_cast<ViewDir *>(data);
GList *list;
}
}
-static void vd_dnd_begin(GtkWidget *UNUSED(widget), GdkDragContext *UNUSED(context), gpointer data)
+static void vd_dnd_begin(GtkWidget *, GdkDragContext *, gpointer data)
{
auto vd = static_cast<ViewDir *>(data);
vd_dest_set(vd, FALSE);
}
-static void vd_dnd_end(GtkWidget *UNUSED(widget), GdkDragContext *context, gpointer data)
+static void vd_dnd_end(GtkWidget *, GdkDragContext *context, gpointer data)
{
auto vd = static_cast<ViewDir *>(data);
vd_dest_set(vd, TRUE);
}
-static void vd_dnd_drop_receive(GtkWidget *widget,
- GdkDragContext *UNUSED(context), gint x, gint y,
+static void vd_dnd_drop_receive(GtkWidget *widget, GdkDragContext *,
+ gint x, gint y,
GtkSelectionData *selection_data, guint info,
- guint UNUSED(time), gpointer data)
+ guint, gpointer data)
{
auto vd = static_cast<ViewDir *>(data);
GtkTreePath *tpath;
return G_SOURCE_REMOVE;
}
-static gboolean vd_auto_scroll_notify_cb(GtkWidget *UNUSED(widget), gint UNUSED(x), gint UNUSED(y), gpointer data)
+static gboolean vd_auto_scroll_notify_cb(GtkWidget *, gint, gint, gpointer data)
{
auto vd = static_cast<ViewDir *>(data);
return TRUE;
}
-static gboolean vd_dnd_drop_motion(GtkWidget *UNUSED(widget), GdkDragContext *context,
- gint x, gint y, guint time, gpointer data)
+static gboolean vd_dnd_drop_motion(GtkWidget *, GdkDragContext *context, gint x, gint y, guint time, gpointer data)
{
auto vd = static_cast<ViewDir *>(data);
return FALSE;
}
-static void vd_dnd_drop_leave(GtkWidget *UNUSED(widget), GdkDragContext *UNUSED(context), guint UNUSED(time), gpointer data)
+static void vd_dnd_drop_leave(GtkWidget *, GdkDragContext *, guint, gpointer data)
{
auto vd = static_cast<ViewDir *>(data);
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-function"
-void vd_menu_position_cb_unused(GtkMenu *menu, gint *x, gint *y, gboolean *UNUSED(push_in), gpointer data)
+void vd_menu_position_cb_unused(GtkMenu *menu, gint *x, gint *y, gboolean *, gpointer data)
{
ViewDir *vd = static_cast<ViewDir *>(data);
GtkTreeModel *store;
}
#pragma GCC diagnostic pop
-void vd_activate_cb(GtkTreeView *tview, GtkTreePath *tpath, GtkTreeViewColumn *UNUSED(column), gpointer data)
+void vd_activate_cb(GtkTreeView *tview, GtkTreePath *tpath, GtkTreeViewColumn *, gpointer data)
{
auto vd = static_cast<ViewDir *>(data);
FileData *fd = vd_get_fd_from_tree_path(vd, tview, tpath);
return &color;
}
-void vd_color_cb(GtkTreeViewColumn *UNUSED(tree_column), GtkCellRenderer *cell,
- GtkTreeModel *tree_model, GtkTreeIter *iter, gpointer data)
+void vd_color_cb(GtkTreeViewColumn *, GtkCellRenderer *cell, GtkTreeModel *tree_model, GtkTreeIter *iter, gpointer data)
{
auto vd = static_cast<ViewDir *>(data);
gboolean set;
*-----------------------------------------------------------------------------
*/
-GList *vficon_selection_get_one(ViewFile *UNUSED(vf), FileData *fd)
+GList *vficon_selection_get_one(ViewFile *, FileData *fd)
{
return g_list_prepend(filelist_copy(fd->sidecar_files), file_data_ref(fd));
}
return vficon_selection_get_one(vf, VFICON(vf)->click_fd);
}
-void vficon_pop_menu_view_cb(GtkWidget *UNUSED(widget), gpointer data)
+void vficon_pop_menu_view_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
}
}
-void vficon_pop_menu_rename_cb(GtkWidget *UNUSED(widget), gpointer data)
+void vficon_pop_menu_rename_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
file_util_rename(nullptr, vf_pop_menu_file_list(vf), vf->listview);
}
-void vficon_pop_menu_show_names_cb(GtkWidget *UNUSED(widget), gpointer data)
+void vficon_pop_menu_show_names_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
vficon_populate_at_new_size(vf, allocation.width, allocation.height, TRUE);
}
-void vficon_pop_menu_show_star_rating_cb(GtkWidget *UNUSED(widget), gpointer data)
+void vficon_pop_menu_show_star_rating_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
vficon_toggle_star_rating(vf);
}
-void vficon_pop_menu_refresh_cb(GtkWidget *UNUSED(widget), gpointer data)
+void vficon_pop_menu_refresh_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
vf_refresh(vf);
}
-void vficon_popup_destroy_cb(GtkWidget *UNUSED(widget), gpointer data)
+void vficon_popup_destroy_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
vficon_selection_remove(vf, VFICON(vf)->click_fd, SELECTION_PRELIGHT, nullptr);
*-------------------------------------------------------------------
*/
-static void vficon_dnd_get(GtkWidget *UNUSED(widget), GdkDragContext *UNUSED(context),
- GtkSelectionData *selection_data, guint UNUSED(info),
- guint UNUSED(time), gpointer data)
+static void vficon_dnd_get(GtkWidget *, GdkDragContext *,
+ GtkSelectionData *selection_data, guint,
+ guint, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
GList *list = nullptr;
filelist_free(list);
}
-static void vficon_drag_data_received(GtkWidget *UNUSED(entry_widget), GdkDragContext *UNUSED(context),
+static void vficon_drag_data_received(GtkWidget *, GdkDragContext *,
int x, int y, GtkSelectionData *selection,
- guint info, guint UNUSED(time), gpointer data)
+ guint info, guint, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
}
}
-static void vficon_dnd_end(GtkWidget *UNUSED(widget), GdkDragContext *context, gpointer data)
+static void vficon_dnd_end(GtkWidget *, GdkDragContext *context, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
vficon_selection_set(vf, fd, static_cast<SelectionType>(fd->selected & ~mask), iter);
}
-void vficon_marks_set(ViewFile *vf, gint UNUSED(enable))
+void vficon_marks_set(ViewFile *vf, gint)
{
GtkAllocation allocation;
gtk_widget_get_allocation(vf->listview, &allocation);
vficon_populate_at_new_size(vf, allocation.width, allocation.height, TRUE);
}
-void vficon_star_rating_set(ViewFile *vf, gint UNUSED(enable))
+void vficon_star_rating_set(ViewFile *vf, gint)
{
GtkAllocation allocation;
gtk_widget_get_allocation(vf->listview, &allocation);
*-------------------------------------------------------------------
*/
-static gboolean vficon_motion_cb(GtkWidget *UNUSED(widget), GdkEventMotion *event, gpointer data)
+static gboolean vficon_motion_cb(GtkWidget *, GdkEventMotion *event, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
FileData *fd;
return FALSE;
}
-gboolean vficon_press_cb(GtkWidget *UNUSED(widget), GdkEventButton *bevent, gpointer data)
+gboolean vficon_press_cb(GtkWidget *, GdkEventButton *bevent, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
GtkTreeIter iter;
return TRUE;
}
-static gboolean vficon_leave_cb(GtkWidget *UNUSED(widget), GdkEventCrossing *UNUSED(event), gpointer data)
+static gboolean vficon_leave_cb(GtkWidget *, GdkEventCrossing *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
*-------------------------------------------------------------------
*/
-static gboolean vficon_destroy_node_cb(GtkTreeModel *store, GtkTreePath *UNUSED(tpath), GtkTreeIter *iter, gpointer UNUSED(data))
+static gboolean vficon_destroy_node_cb(GtkTreeModel *store, GtkTreePath *, GtkTreeIter *iter, gpointer)
{
GList *list;
vf_star_update(vf);
}
-static void vficon_populate_at_new_size(ViewFile *vf, gint w, gint UNUSED(h), gboolean force)
+static void vficon_populate_at_new_size(ViewFile *vf, gint w, gint, gboolean force)
{
gint new_cols;
gint thumb_width;
DEBUG_1("col tab pop cols=%d rows=%d", VFICON(vf)->columns, VFICON(vf)->rows);
}
-static void vficon_sized_cb(GtkWidget *UNUSED(widget), GtkAllocation *allocation, gpointer data)
+static void vficon_sized_cb(GtkWidget *, GtkAllocation *allocation, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
gint number;
};
-static void vficon_cell_data_cb(GtkTreeViewColumn *UNUSED(tree_column), GtkCellRenderer *cell,
+static void vficon_cell_data_cb(GtkTreeViewColumn *, GtkCellRenderer *cell,
GtkTreeModel *tree_model, GtkTreeIter *iter, gpointer data)
{
GList *list;
return ret;
}
-void vficon_destroy_cb(GtkWidget *UNUSED(widget), gpointer data)
+void vficon_destroy_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
g_list_free(VFICON(vf)->selection);
}
-ViewFile *vficon_new(ViewFile *vf, FileData *UNUSED(dir_fd))
+ViewFile *vficon_new(ViewFile *vf, FileData *)
{
GtkListStore *store;
GtkTreeSelection *selection;
gint row;
};
-static gboolean vflist_find_row_cb(GtkTreeModel *model, GtkTreePath *UNUSED(path), GtkTreeIter *iter, gpointer data)
+static gboolean vflist_find_row_cb(GtkTreeModel *model, GtkTreePath *, GtkTreeIter *iter, gpointer data)
{
auto find = static_cast<ViewFileFindRowData *>(data);
FileData *fd;
return -1;
}
-static FileData *vflist_find_data_by_coord(ViewFile *vf, gint x, gint y, GtkTreeIter *UNUSED(iter))
+static FileData *vflist_find_data_by_coord(ViewFile *vf, gint x, gint y, GtkTreeIter *)
{
GtkTreePath *tpath;
GtkTreeViewColumn *column;
return nullptr;
}
-static gboolean vflist_store_clear_cb(GtkTreeModel *model, GtkTreePath *UNUSED(path), GtkTreeIter *iter, gpointer UNUSED(data))
+static gboolean vflist_store_clear_cb(GtkTreeModel *model, GtkTreePath *, GtkTreeIter *iter, gpointer)
{
FileData *fd;
gtk_tree_model_get(model, iter, FILE_COLUMN_POINTER, &fd, -1);
*-----------------------------------------------------------------------------
*/
-static void vflist_dnd_get(GtkWidget *UNUSED(widget), GdkDragContext *UNUSED(context),
- GtkSelectionData *selection_data, guint UNUSED(info),
- guint UNUSED(time), gpointer data)
+static void vflist_dnd_get(GtkWidget *, GdkDragContext *,
+ GtkSelectionData *selection_data, guint,
+ guint, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
GList *list = nullptr;
}
}
-static void vflist_dnd_end(GtkWidget *UNUSED(widget), GdkDragContext *context, gpointer data)
+static void vflist_dnd_end(GtkWidget *, GdkDragContext *context, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
}
}
-static void vflist_drag_data_received(GtkWidget *UNUSED(entry_widget), GdkDragContext *UNUSED(context),
+static void vflist_drag_data_received(GtkWidget *, GdkDragContext *,
int x, int y, GtkSelectionData *selection,
- guint info, guint UNUSED(time), gpointer data)
+ guint info, guint, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
}
-void vflist_pop_menu_view_cb(GtkWidget *UNUSED(widget), gpointer data)
+void vflist_pop_menu_view_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
}
}
-void vflist_pop_menu_rename_cb(GtkWidget *UNUSED(widget), gpointer data)
+void vflist_pop_menu_rename_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
GList *list;
file_util_rename(nullptr, list, vf->listview);
}
-void vflist_pop_menu_thumbs_cb(GtkWidget *UNUSED(widget), gpointer data)
+void vflist_pop_menu_thumbs_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
g_list_free(columns);
}
-void vflist_pop_menu_show_star_rating_cb(GtkWidget *UNUSED(widget), gpointer data)
+void vflist_pop_menu_show_star_rating_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
vflist_star_rating_set(vf, options->show_star_rating);
}
-void vflist_pop_menu_refresh_cb(GtkWidget *UNUSED(widget), gpointer data)
+void vflist_pop_menu_refresh_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
gtk_tree_view_columns_autosize(GTK_TREE_VIEW(vf->listview));
}
-void vflist_popup_destroy_cb(GtkWidget *UNUSED(widget), gpointer data)
+void vflist_popup_destroy_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
vflist_color_set(vf, VFLIST(vf)->click_fd, FALSE);
*-----------------------------------------------------------------------------
*/
-static gboolean vflist_row_rename_cb(TreeEditData *UNUSED(td), const gchar *old_name, const gchar *new_name, gpointer data)
+static gboolean vflist_row_rename_cb(TreeEditData *, const gchar *old_name, const gchar *new_name, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
gchar *new_path;
}
}
-static gboolean vflist_select_cb(GtkTreeSelection *UNUSED(selection), GtkTreeModel *store, GtkTreePath *tpath, gboolean path_currently_selected, gpointer data)
+static gboolean vflist_select_cb(GtkTreeSelection *, GtkTreeModel *store, GtkTreePath *tpath, gboolean path_currently_selected, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
GtkTreeIter iter;
return TRUE;
}
-static void vflist_expand_cb(GtkTreeView *UNUSED(tree_view), GtkTreeIter *iter, GtkTreePath *UNUSED(path), gpointer data)
+static void vflist_expand_cb(GtkTreeView *, GtkTreeIter *iter, GtkTreePath *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
vflist_set_expanded(vf, iter, TRUE);
}
-static void vflist_collapse_cb(GtkTreeView *UNUSED(tree_view), GtkTreeIter *iter, GtkTreePath *UNUSED(path), gpointer data)
+static void vflist_collapse_cb(GtkTreeView *, GtkTreeIter *iter, GtkTreePath *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
vflist_set_expanded(vf, iter, FALSE);
return &color;
}
-static void vflist_listview_color_cb(GtkTreeViewColumn *UNUSED(tree_column), GtkCellRenderer *cell,
+static void vflist_listview_color_cb(GtkTreeViewColumn *, GtkCellRenderer *cell,
GtkTreeModel *tree_model, GtkTreeIter *iter, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
return ret;
}
-void vflist_destroy_cb(GtkWidget *UNUSED(widget), gpointer data)
+void vflist_destroy_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
filelist_free(vf->list);
}
-ViewFile *vflist_new(ViewFile *vf, FileData *UNUSED(dir_fd))
+ViewFile *vflist_new(ViewFile *vf, FileData *)
{
GtkTreeStore *store;
GtkTreeSelection *selection;
}
}
-static void vf_pop_menu_open_archive_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vf_pop_menu_open_archive_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
LayoutWindow *lw_new;
}
}
-static void vf_pop_menu_copy_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vf_pop_menu_copy_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
file_util_copy(nullptr, vf_pop_menu_file_list(vf), nullptr, vf->listview);
}
-static void vf_pop_menu_move_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vf_pop_menu_move_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
}
}
-static void vf_pop_menu_delete_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vf_pop_menu_delete_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
file_util_delete(nullptr, vf_pop_menu_file_list(vf), vf->listview);
}
-static void vf_pop_menu_move_to_trash_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vf_pop_menu_move_to_trash_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
file_util_delete(nullptr, vf_pop_menu_file_list(vf), vf->listview);
}
-static void vf_pop_menu_copy_path_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vf_pop_menu_copy_path_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
file_util_copy_path_list_to_clipboard(vf_pop_menu_file_list(vf), TRUE);
}
-static void vf_pop_menu_copy_path_unquoted_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vf_pop_menu_copy_path_unquoted_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
file_util_copy_path_list_to_clipboard(vf_pop_menu_file_list(vf), FALSE);
}
-static void vf_pop_menu_enable_grouping_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vf_pop_menu_enable_grouping_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
file_data_disable_grouping_list(vf_pop_menu_file_list(vf), FALSE);
}
-static void vf_pop_menu_duplicates_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vf_pop_menu_duplicates_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
DupeWindow *dw;
dupe_window_add_files(dw, vf_pop_menu_file_list(vf), FALSE);
}
-static void vf_pop_menu_disable_grouping_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vf_pop_menu_disable_grouping_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
}
}
-static void vf_pop_menu_sort_ascend_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vf_pop_menu_sort_ascend_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
}
}
-static void vf_pop_menu_sel_mark_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vf_pop_menu_sel_mark_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
vf_mark_to_selection(vf, vf->active_mark, MTS_MODE_SET);
}
-static void vf_pop_menu_sel_mark_and_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vf_pop_menu_sel_mark_and_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
vf_mark_to_selection(vf, vf->active_mark, MTS_MODE_AND);
}
-static void vf_pop_menu_sel_mark_or_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vf_pop_menu_sel_mark_or_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
vf_mark_to_selection(vf, vf->active_mark, MTS_MODE_OR);
}
-static void vf_pop_menu_sel_mark_minus_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vf_pop_menu_sel_mark_minus_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
vf_mark_to_selection(vf, vf->active_mark, MTS_MODE_MINUS);
}
-static void vf_pop_menu_set_mark_sel_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vf_pop_menu_set_mark_sel_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
vf_selection_to_mark(vf, vf->active_mark, STM_MODE_SET);
}
-static void vf_pop_menu_res_mark_sel_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vf_pop_menu_res_mark_sel_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
vf_selection_to_mark(vf, vf->active_mark, STM_MODE_RESET);
}
-static void vf_pop_menu_toggle_mark_sel_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vf_pop_menu_toggle_mark_sel_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
vf_selection_to_mark(vf, vf->active_mark, STM_MODE_TOGGLE);
g_free(vf);
}
-static void vf_marks_filter_toggle_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vf_marks_filter_toggle_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
vf_refresh_idle(vf);
generic_dialog_close(gd);
}
-void vf_marks_filter_on_icon_press(GtkEntry *UNUSED(entry), GtkEntryIconPosition UNUSED(pos),
- GdkEvent *UNUSED(event), gpointer userdata)
+void vf_marks_filter_on_icon_press(GtkEntry *, GtkEntryIconPosition, GdkEvent *, gpointer userdata)
{
auto mte = static_cast<MarksTextEntry *>(userdata);
gtk_entry_set_text(GTK_ENTRY(mte->edit_widget), "");
}
-static void vf_marks_tooltip_help_cb(GenericDialog *UNUSED(gd), gpointer UNUSED(data))
+static void vf_marks_tooltip_help_cb(GenericDialog *, gpointer)
{
help_window_show("GuideImageMarks.html");
}
return TRUE;
}
-static void vf_file_filter_save_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vf_file_filter_save_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
gchar *entry_text;
g_free(entry_text);
}
-static void vf_file_filter_cb(GtkWidget *UNUSED(widget), gpointer data)
+static void vf_file_filter_cb(GtkWidget *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
vf_refresh(vf);
}
-static gboolean vf_file_filter_press_cb(GtkWidget *widget, GdkEventButton *UNUSED(bevent), gpointer data)
+static gboolean vf_file_filter_press_cb(GtkWidget *widget, GdkEventButton *, gpointer data)
{
auto vf = static_cast<ViewFile *>(data);
vf->file_filter.last_selected = gtk_combo_box_get_active(GTK_COMBO_BOX(vf->file_filter.combo));
vf_refresh(vf);
}
-static void file_filter_clear_cb(GtkEntry *UNUSED(entry), GtkEntryIconPosition pos, GdkEvent *UNUSED(event), gpointer userdata)
+static void file_filter_clear_cb(GtkEntry *, GtkEntryIconPosition pos, GdkEvent *, gpointer userdata)
{
if (pos == GTK_ENTRY_ICON_SECONDARY)
{
static GtkWidget *help_window = nullptr;
-static void help_window_destroy_cb(GtkWidget *UNUSED(window), gpointer UNUSED(data))
+static void help_window_destroy_cb(GtkWidget *, gpointer)
{
help_window = nullptr;
}
gchar *text_entry;
};
-static void help_search_window_show_icon_press(GtkEntry *UNUSED(entry), GtkEntryIconPosition UNUSED(pos),
- GdkEvent *UNUSED(event), gpointer userdata)
+static void help_search_window_show_icon_press(GtkEntry *, GtkEntryIconPosition, GdkEvent *, gpointer userdata)
{
auto hsd = static_cast<HelpSearchData *>(userdata);
gtk_entry_set_text(GTK_ENTRY(hsd->edit_widget), hsd->text_entry);
}
-static void help_search_window_ok_cb(GenericDialog *UNUSED(gd), gpointer data)
+static void help_search_window_ok_cb(GenericDialog *, gpointer data)
{
auto hsd = static_cast<HelpSearchData *>(data);
gchar *search_command;
g_free(hsd);
}
-static void help_search_window_cancel_cb(GenericDialog *UNUSED(gd), gpointer data)
+static void help_search_window_cancel_cb(GenericDialog *, gpointer data)
{
auto hsd = static_cast<HelpSearchData *>(data);