~audio-recorder/audio-recorder/trunk

« back to all changes in this revision

Viewing changes to src/systray-icon.c

  • Committer: Osmo Antero Maatta
  • Date: 2011-01-21 12:04:03 UTC
  • Revision ID: osmoma@gmail.com-20110121120403-e8dbdmjb3mcrfg55
Added instructions for translators

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
    LOG_SYSTRAY("systray_set_menu_items2, show:%d\n", show);
96
96
 
97
97
    if (!show) {
 
98
        // Tray menu.
 
99
        // Translators: This belongs to tray menu (menu on the system tray).
98
100
        gtk_menu_item_set_label(GTK_MENU_ITEM(menu_item), _("Show window"));
99
101
    }
100
102
    else {
 
103
        // Tray menu.
 
104
        // Translators: This belongs to tray menu (menu on the system tray).
101
105
        gtk_menu_item_set_label(GTK_MENU_ITEM(menu_item), _("Hide window"));
102
106
    }
103
107
}
210
214
        // g_print("state=%d  - %d\n", state, GDK_WINDOW_STATE_ICONIFIED);
211
215
 
212
216
        if (visible && state != GDK_WINDOW_STATE_ICONIFIED ) {
 
217
            // Tray menu.
213
218
                menu_item = gtk_menu_item_new_with_label(_("Hide window"));
214
219
                g_signal_connect((gpointer)menu_item, "activate", G_CALLBACK(systray_popup_menu_cb), "hide");
215
220
        }
216
221
        else {
 
222
            // Tray menu.
217
223
                menu_item = gtk_menu_item_new_with_label(_("Show window"));
218
224
                g_signal_connect((gpointer)menu_item, "activate", G_CALLBACK(systray_popup_menu_cb), "show");
219
225
        }
230
236
    #endif
231
237
    }
232
238
 
233
 
    // Start recording
 
239
    // Start recording.
 
240
    // Translators: This belongs to tray menu (menu on the system tray).
234
241
        menu_item = gtk_menu_item_new_with_label(_("Start recording"));
235
242
        gtk_widget_show(menu_item);
236
243
        g_signal_connect((gpointer)menu_item, "activate", G_CALLBACK(systray_popup_menu_cb), "start");
238
245
    // Save this item
239
246
    g_object_set_data(G_OBJECT(menu), "menu-item-start-recording", menu_item);
240
247
 
241
 
    // Continue recording
 
248
    // Continue recording.
 
249
    // Translators: This belongs to tray menu (menu on the system tray).
242
250
        menu_item = gtk_menu_item_new_with_label(_("Continue recording"));
243
251
    // Hide this
244
252
        gtk_widget_hide(menu_item);
247
255
    // Save this item
248
256
    g_object_set_data(G_OBJECT(menu), "menu-item-continue-recording", menu_item);
249
257
 
250
 
    // Stop recording
 
258
    // Stop recording.
 
259
    // Translators: This belongs to tray menu (menu on the system tray).
251
260
        menu_item = gtk_menu_item_new_with_label(_("Stop recording"));
252
261
    // Hide this
253
262
        gtk_widget_hide(menu_item);
256
265
    // Save this item
257
266
    g_object_set_data(G_OBJECT(menu), "menu-item-stop-recording", menu_item);
258
267
 
259
 
    // Pause recording
 
268
    // Pause recording.
 
269
    // Translators: This belongs to tray menu (menu on the system tray).
260
270
        menu_item = gtk_menu_item_new_with_label(_("Pause recording"));
261
271
    // Hide this
262
272
        gtk_widget_hide(menu_item);