~ubuntu-branches/ubuntu/vivid/slurm-llnl/vivid

« back to all changes in this revision

Viewing changes to src/sview/sview.c

  • Committer: Bazaar Package Importer
  • Author(s): Gennaro Oliva
  • Date: 2009-09-24 23:28:15 UTC
  • mfrom: (1.1.11 upstream) (3.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090924232815-enh65jn32q1ebg07
Tags: 2.0.5-1
* New upstream release 
* Changed dependecy from lib-mysqlclient15 to lib-mysqlclient 
* Added Default-Start for runlevel 2 and 4 and $remote_fs requirement in
  init.d scripts (Closes: #541252)
* Postinst checks for wrong runlevels 2 and 4 links
* Upgraded to standard version 3.8.3
* Add lintian overrides for missing slurm-llnl-configurator.html in doc
  base registration
* modified postrm scripts to ignore pkill return value in order to avoid
  postrm failure when no slurm process is running
* Checking for slurmctld.pid before cancelling running and pending
  jobs during package removal 

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *  sview.c - main for sview
3
3
 *****************************************************************************
4
4
 *  Copyright (C) 2002-2007 The Regents of the University of California.
5
 
 *  Copyright (C) 2008 Lawrence Livermore National Security.
 
5
 *  Copyright (C) 2008-2009 Lawrence Livermore National Security.
6
6
 *  Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
7
7
 *  Written by Danny Auble <da@llnl.gov>, et. al.
8
 
 *  LLNL-CODE-402394.
 
8
 *  CODE-OCEC-09-009. All rights reserved.
9
9
 *  
10
10
 *  This file is part of SLURM, a resource management program.
11
 
 *  For details, see <http://www.llnl.gov/linux/slurm/>.
 
11
 *  For details, see <https://computing.llnl.gov/linux/slurm/>.
 
12
 *  Please also read the included file: DISCLAIMER.
12
13
 *  
13
14
 *  SLURM is free software; you can redistribute it and/or modify it under
14
15
 *  the terms of the GNU General Public License as published by the Free
78
79
         refresh_main, create_model_part, admin_edit_part,
79
80
         get_info_part, specific_info_part, 
80
81
         set_menus_part, NULL},
 
82
        {G_TYPE_NONE, RESV_PAGE, "Reservations", TRUE, -1, 
 
83
         refresh_main, create_model_resv, admin_edit_resv,
 
84
         get_info_resv, specific_info_resv, 
 
85
         set_menus_resv, NULL},
81
86
#ifdef HAVE_BG
82
87
        {G_TYPE_NONE, BLOCK_PAGE, "BG Blocks", TRUE, -1,
83
88
         refresh_main, NULL, NULL,
133
138
                        return NULL;
134
139
        }
135
140
        gdk_threads_enter();
136
 
        sview_reset_grid();
 
141
        //sview_reset_grid();
137
142
        thread_count++;
138
143
        gdk_flush();
139
144
        gdk_threads_leave();
379
384
                "      <separator/>"
380
385
                "        <menuitem action='node_name'/>"
381
386
                "        <menuitem action='node_state'/>"
 
387
                "      <separator/>"
 
388
                "        <menuitem action='reservation_name'/>"
382
389
                "      </menu>"
383
390
                "      <menuitem action='refresh'/>"
384
391
                "      <menuitem action='reconfig'/>"
459
466
                 "", "Search for a Node in a given state", 
460
467
#endif
461
468
                 G_CALLBACK(create_search_popup)},              
 
469
                {"reservation_name", NULL, "Reservation Name", 
 
470
                 "", "Search for reservation", 
 
471
                 G_CALLBACK(create_search_popup)},
462
472
                {"tab_pos", NULL, "_Tab Pos"},
463
473
                {"interval", GTK_STOCK_REFRESH, "Set Refresh _Interval", 
464
474
                 "<control>i", "Change Refresh Interval", 
513
523
        gtk_action_group_add_toggle_actions(action_group, toggle_entries, 
514
524
                                           G_N_ELEMENTS(toggle_entries), 
515
525
                                           NULL);
516
 
        admin_action_group = gtk_action_group_new ("MenuActions");
 
526
        admin_action_group = gtk_action_group_new ("MenuAdminActions");
517
527
        gtk_action_group_add_actions(admin_action_group, admin_entries, 
518
528
                                     G_N_ELEMENTS(admin_entries),
519
529
                                     window);
537
547
        /* Finally, return the actual menu bar created by the item factory. */
538
548
        return gtk_ui_manager_get_widget (ui_manager, "/main");
539
549
}
 
550
 
540
551
void *_popup_thr_main(void *arg)
541
552
{
542
553
        popup_thr(arg);