Commit 210059d7 authored by Yang Hong's avatar Yang Hong Committed by James Liggett

Fixed #570929, initialize widgets before add watches.

2009-02-08  Yang Hong  <hongyang@redflag-linux.com>

	* plugins/git/plugin.c (git_activate_plugin):
	Fixed #570929, initialize widgets before add watches.

svn path=/trunk/; revision=4710
parent 99d45746
2009-02-08 Yang Hong <hongyang@redflag-linux.com>
* plugins/git/plugin.c (git_activate_plugin):
Fixed #570929, initialize widgets before add watches.
2009-02-07 Massimo Cora' <mcora@svn.gnome.org>
* plugins/symbol-db/plugin.c (isymbol_manager_search_project):
......@@ -597,6 +597,17 @@ git_activate_plugin (AnjutaPlugin *plugin)
git_plugin->log_popup_menu = gtk_ui_manager_get_widget (GTK_UI_MANAGER (ui),
"/PopupLog");
/* Log viewer */
git_plugin->log_viewer = git_log_window_create (git_plugin);
anjuta_shell_add_widget (plugin->shell,
git_plugin->log_viewer,
"GitLogViewer",
_("Git Log"),
GTK_STOCK_ZOOM_100,
ANJUTA_SHELL_PLACEMENT_CENTER,
NULL);
g_object_unref (git_plugin->log_viewer);
/* Add watches */
git_plugin->project_root_watch_id = anjuta_plugin_add_watch (plugin,
IANJUTA_PROJECT_MANAGER_PROJECT_ROOT_URI,
......@@ -616,17 +627,6 @@ git_activate_plugin (AnjutaPlugin *plugin)
on_fm_file_removed,
NULL);
/* Log viewer */
git_plugin->log_viewer = git_log_window_create (git_plugin);
anjuta_shell_add_widget (plugin->shell,
git_plugin->log_viewer,
"GitLogViewer",
_("Git Log"),
GTK_STOCK_ZOOM_100,
ANJUTA_SHELL_PLACEMENT_CENTER,
NULL);
g_object_unref (git_plugin->log_viewer);
/* Git needs a working directory to work with; it can't take full paths,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment