constify drag'n'drop data, remove unused variable, use G_N_ELEMENTS where
2007-07-27 Jens Granseuer <jensgr@gmx.net> * appearance-themes.c: (themes_init): constify drag'n'drop data, remove unused variable, use G_N_ELEMENTS where applicable svn path=/trunk/; revision=7905
This commit is contained in:
parent
2e3a38749e
commit
323bb9f54d
2 changed files with 10 additions and 7 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-07-27 Jens Granseuer <jensgr@gmx.net>
|
||||
|
||||
* appearance-themes.c: (themes_init): constify drag'n'drop data, remove
|
||||
unused variable, use G_N_ELEMENTS where applicable
|
||||
|
||||
2007-07-27 Jens Granseuer <jensgr@gmx.net>
|
||||
|
||||
* appearance-themes.c: (themes_init, theme_postinit): remove workarounds
|
||||
|
|
|
@ -39,14 +39,12 @@ enum
|
|||
TARGET_NS_URL
|
||||
};
|
||||
|
||||
GtkTargetEntry drop_types[] =
|
||||
static const GtkTargetEntry drop_types[] =
|
||||
{
|
||||
{"text/uri-list", 0, TARGET_URI_LIST},
|
||||
{"_NETSCAPE_URL", 0, TARGET_NS_URL}
|
||||
};
|
||||
|
||||
gint n_drop_types = sizeof (drop_types) / sizeof (GtkTargetEntry);
|
||||
|
||||
static void
|
||||
theme_thumbnail_done_cb (GdkPixbuf *pixbuf, gchar *theme_name, AppearanceData *data)
|
||||
{
|
||||
|
@ -610,7 +608,7 @@ themes_init (AppearanceData *data)
|
|||
|
||||
w = glade_xml_get_widget (data->xml, "appearance_window");
|
||||
gtk_drag_dest_set (w, GTK_DEST_DEFAULT_ALL,
|
||||
drop_types, sizeof (drop_types) / sizeof (GtkTargetEntry),
|
||||
drop_types, G_N_ELEMENTS (drop_types),
|
||||
GDK_ACTION_COPY | GDK_ACTION_LINK | GDK_ACTION_MOVE);
|
||||
g_signal_connect (G_OBJECT (w), "drag-data-received", G_CALLBACK (appearance_window_drag_data_received_cb), NULL);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue