~ubuntu-branches/ubuntu/saucy/alarm-clock-applet/saucy

« back to all changes in this revision

Viewing changes to src/alarm-actions.c

  • Committer: Bazaar Package Importer
  • Author(s): Chow Loong Jin, Chow Loong Jin, Peter Pentchev
  • Date: 2011-03-29 00:25:40 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110329002540-73r2b2w3qss8wont
Tags: 0.3.2-1
[ Chow Loong Jin ]
* [48e1cb8] New upstream release:
  + New features:
    - Add support for application indicators
    - Countdown label for application indicator
    - New status icon indicating triggered alarms
  + Bugs fixed:
    - Add countdown label (for application indicator) (LP: #565302)
    - Create ~/.config/autostart if it doesn't exist (LP: #610632)
    - Add support for libnotify 0.7 (LP: #671962)
    - Properly stop triggered alarms that are not playing sound (LP: #682999)
    - Add support for application indicators (LP: #704956)
    - Clicking on status icon should bring up list instead of snoozing
      (LP: #706832)
  + Translation updates:
    - ar, courtesy of Ahmed Mohammed
    - ast, courtesy of Xuacu Saturio <xuacusk8@gmail.com>
    - be, courtesy of Mikola Tsekhan <mail@tsekhan.com>
    - ca, courtesy of I. De Marchi
    - cs, courtesy of Oliwer <linuch@centrum.cz>
    - de, courtesy of Christoph Wickert
    - es, courtesy of Fitoschido <fitoschido@gmail.com>
    - et, courtesy of Tarmo Ilves <tarmo.ilves.001@mail.ee>
    - fi, courtesy of Jiri Grönroos
    - fo, courtesy of Gunleif Joensen
    - fr, courtesy of Nicolas Delvaux
    - gl, courtesy of Miguel Anxo Bouzada <mbouzada@gmail.com>
    - he, courtesy of Yaron <sh.yaron@gmail.com>
    - hu, courtesy of Papp Bence <papp.bence89@gmail.com>
    - id, courtesy of Arief Setiadi Wibowo <q_thrynx@yahoo.com>
    - ja, courtesy of jugger Yamamoto
    - ka, courtesy of Giorgi Maghlakelidze <acidlabz@gmail.com>
    - la, courtesy of nivek1385 <nivek1385@yeltrahnivek.com>
    - nb, courtesy of Johannes H. Jensen <joh@pseudoberries.com>
    - nl, courtesy of Rachid
    - pl, courtesy of XeonBloomfield
    - pt_BR, courtesy of André Gondim <andregondim@ubuntu.com>
    - ru, courtesy of Сергій Матрунчик (SkyMan)
    - tr, courtesy of Burak Ilgıcıoğlu
    - uk, courtesy of Сергій Матрунчик (SkyMan)
    - zh_CN, courtesy of Lele Long <schemacs@gmail.com>
    - zh_TW, courtesy of Cheng-Chia Tseng <pswo10680@gmail.com>
* [002292e] Drop README.source since we use debsrc3.0
* [8dbb35e] No-change Standards-Version (3.8.4 → 3.9.1)
* [45f456f] Drop override_dh_auto_install (no longer needed)

[ Peter Pentchev ]
* [e8eaaa5] Fix a typo in the get-orig-source target.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
        applet->list_window->accel_group);
65
65
 
66
66
    applet->action_toggle_autostart = GTK_TOGGLE_ACTION (GET_ACTION ("autostart-action"));
 
67
    applet->action_toggle_show_label = GTK_TOGGLE_ACTION (GET_ACTION ("show-label-action"));
67
68
 
68
69
    gtk_action_group_add_action (applet->actions_global, applet->action_new);
69
70
    gtk_action_group_add_action (applet->actions_global, applet->action_stop_all);
71
72
    gtk_action_group_add_action_with_accel (applet->actions_global, 
72
73
        GTK_ACTION (applet->action_toggle_list_win), "Escape");
73
74
    gtk_action_group_add_action (applet->actions_global, GTK_ACTION (applet->action_toggle_autostart));
 
75
    gtk_action_group_add_action (applet->actions_global, GTK_ACTION (applet->action_toggle_show_label));
74
76
 
75
77
    gtk_action_connect_accelerator (GTK_ACTION (applet->action_toggle_list_win));
76
78
    
343
345
        }
344
346
}
345
347
 
 
348
/*
 
349
 * Toggle show_label action
 
350
 */
 
351
void
 
352
alarm_action_toggle_show_label (GtkAction *action, gpointer data)
 
353
{
 
354
        AlarmApplet *applet = (AlarmApplet *)data;
 
355
        gboolean active = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
 
356
        gboolean show_label_state = prefs_show_label_get(applet);
 
357
        //gboolean check_active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (applet->pref_autostart_check));
 
358
 
 
359
        g_debug ("AlarmAction: toggle show_label to %d", active);
 
360
 
 
361
        if (active != show_label_state) {
 
362
                g_debug ("AlarmAction: set show_label to %d!", active);
 
363
                prefs_show_label_set (applet, active);
 
364
        }
 
365
}
 
366
 
346
367
 
347
368
 
348
369