[libwnck] WnckTasklist: no need to initialize priv values to FALSE, NULL or 0
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libwnck] WnckTasklist: no need to initialize priv values to FALSE, NULL or 0
- Date: Fri, 19 Jul 2013 23:17:33 +0000 (UTC)
commit 0e0156bb01d7ebca71bb20ee7b6015e12b026bb9
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Sat Jul 20 00:38:04 2013 +0200
WnckTasklist: no need to initialize priv values to FALSE, NULL or 0
libwnck/tasklist.c | 41 -----------------------------------------
1 files changed, 0 insertions(+), 41 deletions(-)
---
diff --git a/libwnck/tasklist.c b/libwnck/tasklist.c
index d688a42..677b72a 100644
--- a/libwnck/tasklist.c
+++ b/libwnck/tasklist.c
@@ -622,58 +622,17 @@ wnck_tasklist_init (WnckTasklist *tasklist)
tasklist->priv = WNCK_TASKLIST_GET_PRIVATE (tasklist);
- tasklist->priv->screen = NULL;
-
- tasklist->priv->active_task = NULL;
- tasklist->priv->active_class_group = NULL;
-
- tasklist->priv->include_all_workspaces = FALSE;
-
- tasklist->priv->class_groups = NULL;
- tasklist->priv->windows = NULL;
- tasklist->priv->windows_without_class_group = NULL;
-
- tasklist->priv->startup_sequences = NULL;
-
- tasklist->priv->skipped_windows = NULL;
-
tasklist->priv->class_group_hash = g_hash_table_new (NULL, NULL);
tasklist->priv->win_hash = g_hash_table_new (NULL, NULL);
- tasklist->priv->max_button_width = 0;
- tasklist->priv->max_button_height = 0;
-
- tasklist->priv->switch_workspace_on_unminimize = FALSE;
- tasklist->priv->middle_click_close = FALSE;
-
tasklist->priv->grouping = WNCK_TASKLIST_AUTO_GROUP;
tasklist->priv->grouping_limit = DEFAULT_GROUPING_LIMIT;
- tasklist->priv->activate_timeout_id = 0;
- for (i = 0; i < N_SCREEN_CONNECTIONS; i++)
- tasklist->priv->screen_connections[i] = 0;
-
- tasklist->priv->idle_callback_tag = 0;
-
- tasklist->priv->size_hints = NULL;
- tasklist->priv->size_hints_len = 0;
-
- tasklist->priv->icon_loader = NULL;
- tasklist->priv->icon_loader_data = NULL;
- tasklist->priv->free_icon_loader_data = NULL;
-
-#ifdef HAVE_STARTUP_NOTIFICATION
- tasklist->priv->sn_context = NULL;
- tasklist->priv->startup_sequence_timeout = 0;
-#endif
-
tasklist->priv->monitor_num = -1;
tasklist->priv->monitor_geometry.width = -1; /* invalid value */
tasklist->priv->relief = GTK_RELIEF_NORMAL;
tasklist->priv->orientation = GTK_ORIENTATION_HORIZONTAL;
- tasklist->priv->drag_start_time = 0;
-
atk_obj = gtk_widget_get_accessible (widget);
atk_object_set_name (atk_obj, _("Window List"));
atk_object_set_description (atk_obj, _("Tool to switch between visible windows"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]