From f9abb37b21b3cea6d6d7730a11a112c7b570493e Mon Sep 17 00:00:00 2001 From: James Liggett Date: Sat, 31 May 2008 16:50:24 -0700 Subject: [PATCH] Fix a crash in the log viewer on plugin activation. --- plugins/git/git-log-dialog.c | 13 ------------- plugins/git/git-log-dialog.h | 1 - plugins/git/plugin.c | 1 - 3 files changed, 15 deletions(-) diff --git a/plugins/git/git-log-dialog.c b/plugins/git/git-log-dialog.c index d28bd08a..3e065045 100644 --- a/plugins/git/git-log-dialog.c +++ b/plugins/git/git-log-dialog.c @@ -561,19 +561,6 @@ git_log_window_clear (Git *plugin) gtk_text_buffer_set_text (buffer, "", 0); } -void -git_log_set_whole_project_sensitive (Git *plugin, gboolean sensitive) -{ - LogData *data; - GtkWidget *whole_project_check; - - data = g_object_get_data (G_OBJECT (plugin->log_viewer), "log-data"); - whole_project_check = glade_xml_get_widget (data->gxml, - "whole_project_check"); - - gtk_widget_set_sensitive (whole_project_check, sensitive); -} - GitRevision * git_log_get_selected_revision (Git *plugin) { diff --git a/plugins/git/git-log-dialog.h b/plugins/git/git-log-dialog.h index 36000712..721632aa 100644 --- a/plugins/git/git-log-dialog.h +++ b/plugins/git/git-log-dialog.h @@ -40,7 +40,6 @@ void on_fm_git_log (GtkAction *action, Git *plugin); GtkWidget *git_log_window_create (Git *plugin); void git_log_window_clear (Git *plugin); -void git_log_set_whole_project_sensitive (Git *plugin, gboolean sensitive); GitRevision *git_log_get_selected_revision (Git *plugin); #endif diff --git a/plugins/git/plugin.c b/plugins/git/plugin.c index 98579108..9a1d1e25 100644 --- a/plugins/git/plugin.c +++ b/plugins/git/plugin.c @@ -237,7 +237,6 @@ on_project_root_added (AnjutaPlugin *plugin, const gchar *name, gtk_action_set_sensitive (git_menu_action, TRUE); gtk_widget_set_sensitive (git_plugin->log_viewer, TRUE); - git_log_set_whole_project_sensitive (git_plugin, TRUE); g_free (project_root_uri); } -- 2.11.4.GIT