Do not use moo_history_list_new()
parent
79ba20591b
commit
72a66037b4
|
@ -298,7 +298,8 @@ moo_editor_init (MooEditor *editor)
|
|||
|
||||
editor->priv->filter_mgr = moo_filter_mgr_new ();
|
||||
|
||||
editor->priv->history = moo_history_list_new ("Editor");
|
||||
editor->priv->history = moo_history_list_get ("Editor");
|
||||
g_object_ref (editor->priv->history);
|
||||
moo_history_list_set_display_func (editor->priv->history,
|
||||
moo_history_list_display_basename,
|
||||
NULL);
|
||||
|
|
|
@ -83,9 +83,9 @@ init_find_history (void)
|
|||
{
|
||||
been_here = TRUE;
|
||||
|
||||
search_history = moo_history_list_new ("MooFind");
|
||||
search_history = moo_history_list_get ("MooFind");
|
||||
moo_history_list_set_max_entries (search_history, 20);
|
||||
replace_history = moo_history_list_new ("MooReplace");
|
||||
replace_history = moo_history_list_get ("MooReplace");
|
||||
moo_history_list_set_max_entries (replace_history, 20);
|
||||
last_search = moo_history_list_get_last_item (search_history);
|
||||
|
||||
|
|
|
@ -170,7 +170,8 @@ project_plugin_init (ProjectPlugin *plugin)
|
|||
"closure-callback", close_project_cb,
|
||||
NULL);
|
||||
|
||||
plugin->recent_list = moo_history_list_new (MP_RECENT_LIST_ID);
|
||||
plugin->recent_list = moo_history_list_get (MP_RECENT_LIST_ID);
|
||||
g_object_ref (plugin->recent_list);
|
||||
g_signal_connect (plugin->recent_list, "activate-item",
|
||||
G_CALLBACK (recent_item_activated), plugin);
|
||||
moo_window_class_new_action_custom (klass, "OpenRecentProject", NULL,
|
||||
|
|
|
@ -181,9 +181,8 @@ set_history_list_id (MooHistoryCombo *combo,
|
|||
{
|
||||
if (id)
|
||||
{
|
||||
MooHistoryList *list = moo_history_list_new (id);
|
||||
MooHistoryList *list = moo_history_list_get (id);
|
||||
moo_history_combo_set_list (combo, list);
|
||||
g_object_unref (list);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -481,9 +480,8 @@ moo_history_combo_new (const char *user_id)
|
|||
|
||||
if (user_id)
|
||||
{
|
||||
MooHistoryList *list = moo_history_list_new (user_id);
|
||||
MooHistoryList *list = moo_history_list_get (user_id);
|
||||
moo_history_combo_set_list (combo, list);
|
||||
g_object_unref (list);
|
||||
}
|
||||
|
||||
return GTK_WIDGET (combo);
|
||||
|
|
Loading…
Reference in New Issue