/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 21:39:44 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140407213944-dkrgky5jnx2sipdo
* Started work on GPumpAuth authentication widget, much to do...

* Made the main only hide when using the clicking the close button in
  the header bar.

* Fixed a few compiletime and runtime errors...

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
  g_print ("GPumpApp activate.\n");
94
94
  
95
95
  /* Check for uniques of window */
96
 
  GList * w_list = gtk_application_get_windows (application);
 
96
  GList * w_list = gtk_application_get_windows (GTK_APPLICATION(application));
97
97
  if (w_list) {
98
98
    gtk_window_present (GTK_WINDOW (w_list->data));
99
99
    return;
138
138
  
139
139
  GtkWidget * post_list_box = priv->post_list_box =
140
140
    gtk_list_box_new ();
141
 
 
142
141
  
143
142
  gtk_container_add (GTK_CONTAINER(scroll), post_list_box);
144
143
  
148
147
  gtk_box_pack_start (GTK_BOX (layout), scroll, TRUE, TRUE, 1);
149
148
  
150
149
  gtk_container_add (GTK_CONTAINER (window), layout);
 
150
  
 
151
  /* Hide window instead of destroying it */
 
152
  g_signal_connect (G_OBJECT (window), "delete_event" ,
 
153
                  G_CALLBACK (gtk_widget_hide_on_delete), self);
151
154
}
152
155
 
153
156
void _prepere_app_menu (GPumpApp * self) {
189
192
  gtk_widget_show (GTK_WIDGET(mi_profiles));
190
193
  
191
194
  /* Hook up signals. */
 
195
  /*
192
196
  g_signal_connect (G_OBJECT (mi_profiles), "activate",
193
197
                    NULL, self);
194
 
  
 
198
  */
195
199
  
196
200
  /* create and attatch the gear menu button */
197
201
  priv->btn_gear = gtk_menu_button_new ();