Changeset 14670 for trunk/gtk/main.c


Ignore:
Timestamp:
Jan 9, 2016, 6:06:17 PM (6 years ago)
Author:
mikedld
Message:

#6051: transmission-gtk --version shouldn't require display

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/main.c

    r14581 r14670  
    644644  g_type_init ();
    645645#endif
    646   gtk_init (&argc, &argv);
    647646  g_set_application_name (_("Transmission"));
    648   gtk_window_set_default_icon_name (MY_CONFIG_NAME);
    649647
    650648  /* parse the command line */
    651649  option_context = g_option_context_new (_("[torrent files or urls]"));
    652650  g_option_context_add_main_entries (option_context, option_entries, GETTEXT_PACKAGE);
     651  g_option_context_add_group (option_context, gtk_get_option_group (FALSE));
    653652  g_option_context_set_translation_domain (option_context, GETTEXT_PACKAGE);
    654653  if (!g_option_context_parse (option_context, &argc, &argv, &error))
     
    667666      return 0;
    668667    }
     668
     669  gtk_window_set_default_icon_name (MY_CONFIG_NAME);
    669670
    670671  /* init the unit formatters */
Note: See TracChangeset for help on using the changeset viewer.