~ubuntu-branches/debian/sid/gworldclock/sid

« back to all changes in this revision

Viewing changes to main.c

  • Committer: Bazaar Package Importer
  • Author(s): Drew Parsons
  • Date: 2006-11-24 01:27:31 UTC
  • mfrom: (2.1.7 feisty)
  • Revision ID: james.westby@ubuntu.com-20061124012731-95bipxfgk4nx099j
Tags: 1.4.4-6
Use gworldclock.png as icon in the Debian menu. Funny, the menu
docs say they only accept xpm, but png seems to work fine. I can't
find any window manager which uses icons in the menu that won't
display it. If you know something I don't know then tell me,
otherwise I'll just keep the one icon file for simplicity.
Closes: #397429.

Show diffs side-by-side

added added

removed removed

Lines of Context:
311
311
                      G_CALLBACK (gtk_main_quit), 
312
312
                      "WM destroy");
313
313
  gtk_window_set_title (GTK_WINDOW(window), "gworldclock");
 
314
  gtk_window_set_icon_from_file (GTK_WINDOW (window),
 
315
                               "/usr/share/pixmaps/gworldclock.png",
 
316
                               NULL);
314
317
 
315
318
  main_vbox = gtk_vbox_new (FALSE, 5);
316
319
  gtk_container_border_width (GTK_CONTAINER (main_vbox), 1);
375
378
 
376
379
  /* set up menu */
377
380
  action_group = gtk_action_group_new ("UIActions");
 
381
  gtk_action_group_set_translation_domain (action_group, textdomain(NULL));
378
382
  gtk_action_group_add_actions (action_group, entries, G_N_ELEMENTS (entries), clocklist);  
379
383
  gtk_action_group_add_toggle_actions (action_group, toggle_entries, G_N_ELEMENTS (toggle_entries), clocklist);
380
384
  g_object_set_data(G_OBJECT(clocklist), ACTIONS, action_group);