diff options
| author | Stefano Facchini <stefano.facchini@gmail.com> | 2017-10-14 09:50:10 +0000 |
|---|---|---|
| committer | Stefano Facchini <stefano.facchini@gmail.com> | 2017-10-19 17:22:34 +0000 |
| commit | 846fc829ce4ab4487a8b6836083d7cc72db16463 (patch) | |
| tree | 14035c24539dfab7fa161f6894c5e10fc52da5de /src/ui/widget/selected-style.cpp | |
| parent | Remove a useless conditional (diff) | |
| download | inkscape-846fc829ce4ab4487a8b6836083d7cc72db16463.tar.gz inkscape-846fc829ce4ab4487a8b6836083d7cc72db16463.zip | |
Use standard glib macro instead of a custom one
Diffstat (limited to 'src/ui/widget/selected-style.cpp')
| -rw-r--r-- | src/ui/widget/selected-style.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ui/widget/selected-style.cpp b/src/ui/widget/selected-style.cpp index 5d911e9d2..d9b93f6db 100644 --- a/src/ui/widget/selected-style.cpp +++ b/src/ui/widget/selected-style.cpp @@ -107,8 +107,7 @@ static const GtkTargetEntry ui_drop_target_entries [] = { {"application/x-color", 0, APP_X_COLOR} }; -#define ENTRIES_SIZE(n) sizeof(n)/sizeof(n[0]) -static guint nui_drop_target_entries = ENTRIES_SIZE(ui_drop_target_entries); +static guint nui_drop_target_entries = G_N_ELEMENTS(ui_drop_target_entries); /* convenience function */ static Dialog::FillAndStroke *get_fill_and_stroke_panel(SPDesktop *desktop); |
