~ubuntu-branches/ubuntu/gutsy/ekiga/gutsy

« back to all changes in this revision

Viewing changes to src/gui/addressbook.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2006-02-13 22:43:18 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060213224318-1dn5o31239l0e3hg
Tags: 1.99.1-0ubuntu1
* [Kilian Krause <kilian@debian.org>]
  - New upstream release (2.0 BETA 2).
  - Name changed from GnomeMeeting to Ekiga.
* [Daniel Holbach]:
  - adjusted versions.
  - debian/control.in:
    - added liblaunchpad-integration-dev.
  - debian/patches/01_lpi.dpatch,
    debian/patches/02_autoconf.dpatch:
    - re-added, updated.

Show diffs side-by-side

added added

removed removed

Lines of Context:
671
671
  if (gtk_tree_selection_get_selected (selection, &model, &iter)) {
672
672
 
673
673
    abook = gm_addressbook_new ();
 
674
    if (abook->aid)
 
675
      g_free (abook->aid);
 
676
    if (abook->url)
 
677
      g_free (abook->url);
674
678
 
675
679
    gtk_tree_model_get (GTK_TREE_MODEL (model), &iter, 
676
680
                        COLUMN_NAME, &abook->name, 
869
873
  GtkWidget *page = NULL;
870
874
  GtkWidget *hbox = NULL;
871
875
  GtkWidget *vbox = NULL;
872
 
  GtkWidget *handle = NULL;
873
876
  GtkWidget *scroll = NULL;
874
877
 
875
878
  GtkWidget *find_button = NULL;
1110
1113
  
1111
1114
  /* The search entry */
1112
1115
  hbox = gtk_hbox_new (FALSE, 0);
1113
 
  handle = gtk_handle_box_new ();
1114
 
  gtk_box_pack_start (GTK_BOX (vbox), handle, FALSE, FALSE, 0);  
1115
 
  gtk_container_add (GTK_CONTAINER (handle), hbox);
1116
 
  gtk_container_set_border_width (GTK_CONTAINER (handle), 0);
1117
 
 
 
1116
  gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
1118
1117
  
1119
1118
  /* The option menu */
1120
1119
    
1124
1123
  gtk_combo_box_append_text (GTK_COMBO_BOX (awp->awp_option_menu), _("URL contains"));
1125
1124
  if (gnomemeeting_addressbook_is_local (addressbook))
1126
1125
    gtk_combo_box_append_text (GTK_COMBO_BOX (awp->awp_option_menu), _("Belongs to category"));
 
1126
  else
 
1127
    gtk_combo_box_append_text (GTK_COMBO_BOX (awp->awp_option_menu), _("Location contains"));
1127
1128
 
1128
1129
  gtk_combo_box_set_active (GTK_COMBO_BOX (awp->awp_option_menu), 0);
1129
1130
 
1137
1138
  /* The Find button */
1138
1139
  find_button = gtk_button_new_from_stock (GTK_STOCK_FIND);
1139
1140
  gtk_box_pack_start (GTK_BOX (hbox), find_button, FALSE, FALSE, 2);
1140
 
  gtk_widget_show_all (handle);
1141
1141
 
1142
1142
  
1143
1143
  /* The statusbar */
1485
1485
          return p;
1486
1486
        }
1487
1487
 
 
1488
        g_free (test);
 
1489
 
1488
1490
      } while (gtk_tree_model_iter_next (GTK_TREE_MODEL (model), &iter));
1489
1491
    }
1490
1492
  }
1722
1724
  GtkWidget *addressbook_window = NULL;
1723
1725
  GmContact *contact = NULL;
1724
1726
 
 
1727
  GtkWidget *main_window = NULL;
 
1728
 
1725
1729
  g_return_if_fail (data != NULL);
1726
1730
 
1727
1731
 
1735
1739
  contact = gm_aw_get_selected_contact (addressbook_window);
1736
1740
 
1737
1741
  if (contact) {
 
1742
    /* present the main window */
 
1743
    main_window = GnomeMeeting::Process ()->GetMainWindow ();
 
1744
    gtk_window_present (GTK_WINDOW (main_window));
1738
1745
 
1739
1746
    /* Call the selected contact */
1740
1747
    GnomeMeeting::Process ()->Connect (contact->url);
2290
2297
      && gtk_tree_model_get_iter (model, &iter, path)) {
2291
2298
    /* find out if the addressbook is local */
2292
2299
    abook = gm_addressbook_new ();
 
2300
    if (abook->aid)
 
2301
      g_free (abook->aid);
 
2302
    if (abook->url)
 
2303
      g_free (abook->url);
2293
2304
    
2294
2305
    gtk_tree_model_get (GTK_TREE_MODEL (model), &iter, 
2295
2306
                        COLUMN_NAME, &abook->name, 
2334
2345
      && gtk_tree_model_get_iter (model, &iter, path)) {
2335
2346
    /* find out if the addressbook is local */
2336
2347
    abook = gm_addressbook_new ();
 
2348
    if (abook->aid)
 
2349
      g_free (abook->aid);
 
2350
    if (abook->url)
 
2351
      g_free (abook->url);
2337
2352
    
2338
2353
    gtk_tree_model_get (GTK_TREE_MODEL (model), &iter, 
2339
2354
                        COLUMN_NAME, &abook->name, 
2496
2511
 
2497
2512
      GTK_MENU_ENTRY("close", _("_Close"), NULL,
2498
2513
                     GTK_STOCK_CLOSE, 'w',
2499
 
                     GTK_SIGNAL_FUNC (show_window_cb),
 
2514
                     GTK_SIGNAL_FUNC (hide_window_cb),
2500
2515
                     (gpointer) window, TRUE),
2501
2516
 
2502
2517
      GTK_MENU_NEW(_("C_ontact")),
3479
3494
      }
3480
3495
      else {
3481
3496
        
3482
 
        gnomemeeting_error_dialog (GTK_WINDOW (addressbook_window), _("Missing information"), _("Please make sure to fill in all requested fields."));
 
3497
        gnomemeeting_error_dialog (GTK_WINDOW (addressbook_window), _("Missing information"), _("Please make sure you fill in all required fields."));
3483
3498
      }
3484
3499
      gm_addressbook_delete (addc);
3485
3500