~ubuntu-branches/ubuntu/saucy/evolution-data-server/saucy

« back to all changes in this revision

Viewing changes to libedataserverui/e-source-selector.c

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2012-10-08 12:58:16 UTC
  • mfrom: (181.1.7 quantal)
  • Revision ID: package-import@ubuntu.com-20121008125816-i3n76e8c0m64e7xp
Tags: 3.6.0-0ubuntu2
* Fix LP: #1038047 part 1 - Don't abort in e_source_registry_new* when a
  problem occurs connecting to the Dbus service
  - add debian/patches/dont-abort-in-e_source_registry_new.patch
  - update debian/patches/series
* Fix LP: #1038047 part 2 - libedataserver depends on
  evolution-data-server-common to ensure that the GSettings schemas are
  present
  - update debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
1760
1760
 
1761
1761
        while (g_hash_table_iter_next (&iter, &key, NULL)) {
1762
1762
                gboolean selected = e_source_equal (key, source);
1763
 
                class->set_source_selected (selector, source, selected);
 
1763
                class->set_source_selected (selector, key, selected);
1764
1764
        }
1765
1765
 
1766
1766
        g_signal_emit (selector, signals[SELECTION_CHANGED], 0);
1926
1926
 * @selector: an #ESourceSelector widget
1927
1927
 * @source: an #ESource to select
1928
1928
 *
1929
 
 * Set the primary selected source.
 
1929
 * Highlights @source in @selector.  The highlighted #ESource is called
 
1930
 * the primary selection.
 
1931
 *
 
1932
 * Do not confuse this function with e_source_selector_select_source(),
 
1933
 * which activates the check box next to an #ESource's display name in
 
1934
 * @selector.  This function does not alter the check box.
1930
1935
 **/
1931
1936
void
1932
1937
e_source_selector_set_primary_selection (ESourceSelector *selector,
1979
1984
        if (gtk_tree_view_row_expanded (tree_view, parent_path)) {
1980
1985
                gtk_tree_selection_select_path (selection, child_path);
1981
1986
        } else {
1982
 
                ESourceSelectorClass *class;
1983
 
 
1984
 
                class = E_SOURCE_SELECTOR_GET_CLASS (selector);
1985
 
                g_return_if_fail (class->set_source_selected != NULL);
1986
 
 
1987
1987
                selector->priv->saved_primary_selection =
1988
1988
                        gtk_tree_row_reference_copy (reference);
1989
 
 
1990
 
                class->set_source_selected (selector, source, TRUE);
1991
 
 
1992
 
                g_signal_emit (selector, signals[SELECTION_CHANGED], 0);
1993
1989
                g_signal_emit (selector, signals[PRIMARY_SELECTION_CHANGED], 0);
1994
1990
                g_object_notify (G_OBJECT (selector), "primary-selection");
1995
1991
        }