mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-10-02 03:57:36 +00:00
Make copy_attribute() a function instead of a macro
Signed-off-by: Federico Mena Quintero <federico@novell.com>
This commit is contained in:
parent
442484a280
commit
2f3367fbf8
@ -6577,13 +6577,15 @@ my_g_format_time_for_display (glong secs)
|
|||||||
return date_str;
|
return date_str;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define copy_attribute(to, from, attribute) G_STMT_START { \
|
static void
|
||||||
GFileAttributeType type; \
|
copy_attribute (GFileInfo *to, GFileInfo *from, const char *attribute)
|
||||||
gpointer value; \
|
{
|
||||||
\
|
GFileAttributeType type;
|
||||||
if (g_file_info_get_attribute_data (from, attribute, &type, &value, NULL)) \
|
gpointer value;
|
||||||
g_file_info_set_attribute (to, attribute, type, value); \
|
|
||||||
}G_STMT_END
|
if (g_file_info_get_attribute_data (from, attribute, &type, &value, NULL))
|
||||||
|
g_file_info_set_attribute (to, attribute, type, value);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
file_system_model_got_thumbnail (GObject *object, GAsyncResult *res, gpointer data)
|
file_system_model_got_thumbnail (GObject *object, GAsyncResult *res, gpointer data)
|
||||||
|
Loading…
Reference in New Issue
Block a user