comparison src/gtkconn.c @ 10065:006410d0ae0c

[gaim-migrate @ 11040] sf patch 1035572, give a title to the disconnected window. Thanks to Philip Van Hoof (freax) committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 27 Sep 2004 21:46:01 +0000
parents bdec08a8fc5b
children 952fb08c60b0
comparison
equal deleted inserted replaced
10064:467144765989 10065:006410d0ae0c
375 { 375 {
376 GtkTreeIter iter; 376 GtkTreeIter iter;
377 GtkTreeSelection *sel = NULL; 377 GtkTreeSelection *sel = NULL;
378 GtkTreeModel *model = NULL; 378 GtkTreeModel *model = NULL;
379 GaimAccount *account = NULL; 379 GaimAccount *account = NULL;
380 380
381 switch (id) { 381 switch (id) {
382 case GTK_RESPONSE_APPLY: /* Reconnect All */ 382 case GTK_RESPONSE_APPLY: /* Reconnect All */
383 model = gtk_tree_view_get_model(GTK_TREE_VIEW(disconnect_window->treeview)); 383 model = gtk_tree_view_get_model(GTK_TREE_VIEW(disconnect_window->treeview));
384 if (gtk_tree_model_get_iter_first(model, &iter)) { 384 if (gtk_tree_model_get_iter_first(model, &iter)) {
385 /* tree rows to be deleted */ 385 /* tree rows to be deleted */
570 disconnect_window->window = gtk_dialog_new_with_buttons(GAIM_ALERT_TITLE, NULL, GTK_DIALOG_NO_SEPARATOR, NULL); 570 disconnect_window->window = gtk_dialog_new_with_buttons(GAIM_ALERT_TITLE, NULL, GTK_DIALOG_NO_SEPARATOR, NULL);
571 g_signal_connect(G_OBJECT(disconnect_window->window), "response", G_CALLBACK(disconnect_response_cb), disconnect_window); 571 g_signal_connect(G_OBJECT(disconnect_window->window), "response", G_CALLBACK(disconnect_response_cb), disconnect_window);
572 572
573 gtk_container_set_border_width(GTK_CONTAINER(disconnect_window->window), 6); 573 gtk_container_set_border_width(GTK_CONTAINER(disconnect_window->window), 6);
574 gtk_window_set_resizable(GTK_WINDOW(disconnect_window->window), FALSE); 574 gtk_window_set_resizable(GTK_WINDOW(disconnect_window->window), FALSE);
575 gtk_window_set_title(GTK_WINDOW(disconnect_window->window), _("Disconnected"));
575 gtk_dialog_set_has_separator(GTK_DIALOG(disconnect_window->window), FALSE); 576 gtk_dialog_set_has_separator(GTK_DIALOG(disconnect_window->window), FALSE);
576 gtk_box_set_spacing(GTK_BOX(GTK_DIALOG(disconnect_window->window)->vbox), 12); 577 gtk_box_set_spacing(GTK_BOX(GTK_DIALOG(disconnect_window->window)->vbox), 12);
577 gtk_container_set_border_width(GTK_CONTAINER(GTK_DIALOG(disconnect_window->window)->vbox), 6); 578 gtk_container_set_border_width(GTK_CONTAINER(GTK_DIALOG(disconnect_window->window)->vbox), 6);
578 579
579 hbox = gtk_hbox_new(FALSE, 12); 580 hbox = gtk_hbox_new(FALSE, 12);
629 630
630 rend = gtk_cell_renderer_text_new(); 631 rend = gtk_cell_renderer_text_new();
631 col = gtk_tree_view_column_new_with_attributes (_("Time"), 632 col = gtk_tree_view_column_new_with_attributes (_("Time"),
632 rend, "text", 2, NULL); 633 rend, "text", 2, NULL);
633 gtk_tree_view_append_column (GTK_TREE_VIEW(disconnect_window->treeview), col); 634 gtk_tree_view_append_column (GTK_TREE_VIEW(disconnect_window->treeview), col);
634 635
635 g_object_unref(G_OBJECT(list_store)); 636 g_object_unref(G_OBJECT(list_store));
636 gtk_container_add(GTK_CONTAINER(disconnect_window->sw), disconnect_window->treeview); 637 gtk_container_add(GTK_CONTAINER(disconnect_window->sw), disconnect_window->treeview);
637 638
638 sel = gtk_tree_view_get_selection (GTK_TREE_VIEW (disconnect_window->treeview)); 639 sel = gtk_tree_view_get_selection (GTK_TREE_VIEW (disconnect_window->treeview));
639 gtk_widget_set_size_request(disconnect_window->treeview, -1, 96); 640 gtk_widget_set_size_request(disconnect_window->treeview, -1, 96);