~ubuntu-branches/ubuntu/gutsy/evms/gutsy

« back to all changes in this revision

Viewing changes to ui/gtk/region_cb.c

  • Committer: Bazaar Package Importer
  • Author(s): Steinar H. Gunderson
  • Date: 2006-09-14 19:32:30 UTC
  • mfrom: (2.1.13 edgy)
  • Revision ID: james.westby@ubuntu.com-20060914193230-4b1pmy0coqk81sqa
Tags: 2.5.5-18
* Apply patches from upstream:
  * cli_query_segfault.patch, fixes a segfault in the CLI when doing a
    query.
  * cli_reload_options.patch, reloads the right option descriptors after
    a change.
  * ntfs_unmkfs.patch, fixes a bug in the wiping of NTFS file systems.
  * raid5_remove_spare_fix.patch + raid5_remove_spare_fix_2.patch, lets the
    user remove a spare if resync does not run.
  * raid5_algorithm.patch, makes EVMS heed the parity algorithm the user
    selects when creating a RAID-5 array.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *
 
3
 *   (C) Copyright IBM Corp. 2001, 2003
 
4
 *
 
5
 *   This program is free software;  you can redistribute it and/or modify
 
6
 *   it under the terms of the GNU General Public License as published by
 
7
 *   the Free Software Foundation; either version 2 of the License, or 
 
8
 *   (at your option) any later version.
 
9
 * 
 
10
 *   This program is distributed in the hope that it will be useful,
 
11
 *   but WITHOUT ANY WARRANTY;  without even the implied warranty of
 
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
 
13
 *   the GNU General Public License for more details.
 
14
 *
 
15
 *   You should have received a copy of the GNU General Public License
 
16
 *   along with this program;  if not, write to the Free Software 
 
17
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
18
 *
 
19
 * Module: region_cb.c
 
20
 */
 
21
 
 
22
#include <frontend.h>
 
23
#include <gtk/gtk.h>
 
24
 
 
25
#include "support.h"
 
26
#include "plugin_cb.h"
 
27
#include "region_cb.h"
 
28
 
 
29
/*
 
30
 *
 
31
 *   void on_region_manager_clist_realize (GtkWidget *, gpointer)
 
32
 *   
 
33
 *   Description:
 
34
 *      This routine populates the given GtkCList with the list
 
35
 *      of region manager plugins to choose from.
 
36
 * 
 
37
 *   Entry:
 
38
 *      widget    - address of the selections GtkCList widget
 
39
 *      user_data - contains task action code for action to use list
 
40
 *
 
41
 *   Exit:
 
42
 *      Selection list populated with available region manager plugins
 
43
 *
 
44
 */
 
45
void on_region_manager_clist_realize(GtkWidget * widget, gpointer user_data)
 
46
{
 
47
        set_selection_window_clist_column_titles(GTK_CLIST(widget), NULL,
 
48
                                                 _("Region Manager Plugin"), NULL);
 
49
        on_plugin_selection_clist_realize(GTK_CLIST(widget), EVMS_REGION_MANAGER, 0,
 
50
                                          GPOINTER_TO_UINT(user_data));
 
51
}