~ubuntu-branches/ubuntu/utopic/anjuta/utopic-proposed

« back to all changes in this revision

Viewing changes to plugins/debug-manager/plugin.c

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson, Jackson Doak
  • Date: 2014-07-12 15:17:39 UTC
  • mfrom: (1.4.14)
  • Revision ID: package-import@ubuntu.com-20140712151739-p9xy0ntlgbpm2nxq
Tags: 2:3.12.0-1
* Team upload.

[ Jackson Doak ]
* New upstream release
* Drop 03_valac_0.22.patch, fixed upstream\
* debian/control:
  - Bump b-dep version on libgtk-3-dev (>= 3.6.0), libglib2.0-dev (>= 2.34.0)
  - Bump stardards-version to 3.9.5. No changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
273
273
        editor = g_value_get_object (value);
274
274
        DEBUG_PRINT("add value current editor %p",  editor);
275
275
 
 
276
        if (self->current_editor)
 
277
                g_object_remove_weak_pointer (G_OBJECT (self->current_editor), (gpointer *)(gpointer)&self->current_editor);
 
278
 
276
279
        if (!IANJUTA_IS_EDITOR(editor))
277
280
        {
278
281
                self->current_editor = NULL;
388
391
static void
389
392
dma_plugin_debugger_started (DebugManagerPlugin *this)
390
393
{
391
 
        AnjutaUI *ui;
392
394
        GtkAction *action;
393
395
        AnjutaStatus* status;
394
396
 
395
397
        DEBUG_PRINT ("%s", "DMA: dma_plugin_debugger_started");
396
398
 
397
 
        ui = anjuta_shell_get_ui (ANJUTA_PLUGIN (this)->shell, NULL);
398
 
 
399
399
        /* Update ui */
400
400
        action = gtk_action_group_get_action (this->start_group, "ActionDebuggerStop");
401
401
        gtk_action_set_sensitive (action, TRUE);
415
415
static void
416
416
dma_plugin_program_loaded (DebugManagerPlugin *this)
417
417
{
418
 
        AnjutaUI *ui;
419
418
        AnjutaStatus* status;
420
419
 
421
420
        DEBUG_PRINT ("%s", "DMA: dma_plugin_program_loaded");
422
421
 
423
422
        /* Update ui */
424
 
        ui = anjuta_shell_get_ui (ANJUTA_PLUGIN (this)->shell, NULL);
425
423
        gtk_action_group_set_sensitive (this->loaded_group, TRUE);
426
424
        gtk_action_group_set_sensitive (this->stopped_group, FALSE);
427
425
        gtk_action_group_set_sensitive (this->running_group, FALSE);
437
435
static void
438
436
dma_plugin_program_running (DebugManagerPlugin *this)
439
437
{
440
 
        AnjutaUI *ui;
441
438
        AnjutaStatus* status;
442
439
 
443
440
        DEBUG_PRINT ("%s", "DMA: dma_plugin_program_running");
444
441
 
445
442
        /* Update ui */
446
 
        ui = anjuta_shell_get_ui (ANJUTA_PLUGIN (this)->shell, NULL);
447
443
        gtk_action_group_set_sensitive (this->loaded_group, TRUE);
448
444
        gtk_action_group_set_sensitive (this->stopped_group, FALSE);
449
445
        gtk_action_group_set_sensitive (this->running_group, TRUE);
464
460
static void
465
461
dma_plugin_program_stopped (DebugManagerPlugin *this)
466
462
{
467
 
        AnjutaUI *ui;
468
463
        AnjutaStatus* status;
469
464
 
470
465
        DEBUG_PRINT ("%s", "DMA: dma_plugin_program_broken");
471
466
 
472
467
        /* Update ui */
473
 
        ui = anjuta_shell_get_ui (ANJUTA_PLUGIN (this)->shell, NULL);
474
468
        gtk_action_group_set_sensitive (this->loaded_group, TRUE);
475
469
        gtk_action_group_set_sensitive (this->stopped_group, TRUE);
476
470
        gtk_action_group_set_sensitive (this->running_group, FALSE);
498
492
static void
499
493
dma_plugin_program_unload (DebugManagerPlugin *this)
500
494
{
501
 
        AnjutaUI *ui;
502
495
        AnjutaStatus* status;
503
496
 
504
497
        DEBUG_PRINT ("%s", "DMA: dma_plugin_program_unload");
505
498
 
506
499
        /* Update ui */
507
 
        ui = anjuta_shell_get_ui (ANJUTA_PLUGIN (this)->shell, NULL);
508
500
        gtk_action_group_set_visible (this->start_group, TRUE);
509
501
        gtk_action_group_set_sensitive (this->start_group, TRUE);
510
502
        gtk_action_group_set_visible (this->loaded_group, TRUE);
523
515
static void
524
516
dma_plugin_debugger_stopped (DebugManagerPlugin *self, GError *err)
525
517
{
526
 
        AnjutaUI *ui;
527
518
        GtkAction *action;
528
519
        AnjutaStatus* state;
529
520
 
532
523
        dma_plugin_program_unload (self);
533
524
 
534
525
        /* Update ui */
535
 
        ui = anjuta_shell_get_ui (ANJUTA_PLUGIN (self)->shell, NULL);
536
526
        gtk_action_group_set_visible (self->start_group, TRUE);
537
527
        gtk_action_group_set_sensitive (self->start_group, TRUE);
538
528
        action = gtk_action_group_get_action (self->start_group, "ActionDebuggerStop");