mirror of
https://github.com/GNOME/gedit
synced 2024-07-08 00:42:24 +00:00
Do not use gdk_cursor_unref
Also remove busy cursor from the view, since it seems unused.
This commit is contained in:
parent
27a0c1cc3d
commit
5e8d324205
|
@ -44,8 +44,6 @@ struct _GeditFileBrowserViewPrivate
|
|||
GtkTreeModel *model;
|
||||
GtkTreeRowReference *editable;
|
||||
|
||||
GdkCursor *busy_cursor;
|
||||
|
||||
/* Click policy */
|
||||
GeditFileBrowserViewClickPolicy click_policy;
|
||||
/* Both clicks in a double click need to be on the same row */
|
||||
|
@ -114,7 +112,7 @@ gedit_file_browser_view_finalize (GObject *object)
|
|||
GeditFileBrowserView *obj = GEDIT_FILE_BROWSER_VIEW (object);
|
||||
|
||||
if (obj->priv->hand_cursor)
|
||||
gdk_cursor_unref (obj->priv->hand_cursor);
|
||||
g_object_unref (obj->priv->hand_cursor);
|
||||
|
||||
if (obj->priv->hover_path)
|
||||
gtk_tree_path_free (obj->priv->hover_path);
|
||||
|
@ -125,8 +123,6 @@ gedit_file_browser_view_finalize (GObject *object)
|
|||
obj->priv->expand_state = NULL;
|
||||
}
|
||||
|
||||
gdk_cursor_unref (obj->priv->busy_cursor);
|
||||
|
||||
G_OBJECT_CLASS (gedit_file_browser_view_parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
|
@ -334,7 +330,7 @@ set_click_policy_property (GeditFileBrowserView *obj,
|
|||
|
||||
if (obj->priv->hand_cursor)
|
||||
{
|
||||
gdk_cursor_unref (obj->priv->hand_cursor);
|
||||
g_object_unref (obj->priv->hand_cursor);
|
||||
obj->priv->hand_cursor = NULL;
|
||||
}
|
||||
}
|
||||
|
@ -1022,8 +1018,6 @@ gedit_file_browser_view_init (GeditFileBrowserView *obj)
|
|||
drag_source_targets,
|
||||
G_N_ELEMENTS (drag_source_targets),
|
||||
GDK_ACTION_COPY);
|
||||
|
||||
obj->priv->busy_cursor = gdk_cursor_new (GDK_WATCH);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
|
@ -365,7 +365,8 @@ gedit_file_browser_widget_finalize (GObject *object)
|
|||
|
||||
cancel_async_operation (obj);
|
||||
|
||||
gdk_cursor_unref (obj->priv->busy_cursor);
|
||||
if (obj->priv->busy_cursor)
|
||||
g_object_unref (obj->priv->busy_cursor);
|
||||
|
||||
g_free (obj->priv->filter_pattern_str);
|
||||
|
||||
|
@ -2158,7 +2159,7 @@ set_busy (GeditFileBrowserWidget *obj,
|
|||
{
|
||||
cursor = gdk_cursor_new (GDK_WATCH);
|
||||
gdk_window_set_cursor (window, cursor);
|
||||
gdk_cursor_unref (cursor);
|
||||
g_object_unref (cursor);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user