[gnome-commander] Assert for plugin!=NULL BEFORE using it
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Assert for plugin!=NULL BEFORE using it
- Date: Fri, 7 Jan 2011 22:48:33 +0000 (UTC)
commit 9f65ddafe6c0cebaf9082ff70cbf6a9c59db7df1
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Fri Jan 7 23:35:06 2011 +0100
Assert for plugin!=NULL BEFORE using it
src/plugin_manager.cc | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/plugin_manager.cc b/src/plugin_manager.cc
index 65d812f..322ec17 100644
--- a/src/plugin_manager.cc
+++ b/src/plugin_manager.cc
@@ -381,10 +381,11 @@ static void on_about (GtkButton *button, GtkWidget *dialog)
{
GtkCList *list = GTK_CLIST (lookup_widget (dialog, "avail_list"));
PluginData *data = get_selected_plugin (list);
- GtkWidget *about = gnome_cmd_about_plugin_new (data->info);
g_return_if_fail (data != NULL);
+ GtkWidget *about = gnome_cmd_about_plugin_new (data->info);
+
gtk_window_set_transient_for (GTK_WINDOW (about), *main_win);
g_object_ref (about);
gtk_widget_show (about);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]