/gpump/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/gpump/trunk

« back to all changes in this revision

Viewing changes to src/GPumpApp.c

  • Committer: Gustav Hatvigsson
  • Date: 2014-04-07 17:57:37 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140407175737-t8jdlivnybf2n70k
* Made GPump single instance.
  It will not create the new window and such when the application
  allready is present.

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
 
92
92
void gpump_app_activate (GApplication * application) {
93
93
  g_print ("GPumpApp activate.\n");
94
 
 
 
94
  
 
95
  /* Check for uniques of window */
 
96
  GList * w_list = gtk_application_get_windows (application);
 
97
  if (w_list) {
 
98
    gtk_window_present (GTK_WINDOW (w_list->data));
 
99
    return;
 
100
  }
 
101
  
 
102
  g_list_free (w_list);
 
103
  
95
104
  GPUMP_APP(application)->priv->gpump_settings = gpump_settings_new (
96
105
    GPUMP_APP(application)->priv->window);
97
106