aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-02-15 20:21:19 +0800
committerMilan Crha <mcrha@redhat.com>2012-02-15 20:22:07 +0800
commit0b8999bfe5e93cfbcbb6771105fd53231883f795 (patch)
treea670259812eb6dfd1b0751ea15dfaecdcd0c195b
parent9111ea71c2d29e754e659e628853843503cf7358 (diff)
downloadgsoc2013-evolution-0b8999bfe5e93cfbcbb6771105fd53231883f795.tar.gz
gsoc2013-evolution-0b8999bfe5e93cfbcbb6771105fd53231883f795.tar.zst
gsoc2013-evolution-0b8999bfe5e93cfbcbb6771105fd53231883f795.zip
Bug #670073 - Non-working help button in Preferences dialog
-rw-r--r--widgets/misc/e-preferences-window.c32
1 files changed, 30 insertions, 2 deletions
diff --git a/widgets/misc/e-preferences-window.c b/widgets/misc/e-preferences-window.c
index 5b329ebb27..c246abba13 100644
--- a/widgets/misc/e-preferences-window.c
+++ b/widgets/misc/e-preferences-window.c
@@ -127,9 +127,37 @@ preferences_window_load_pixbuf (const gchar *icon_name)
}
static void
-preferences_window_help_clicked_cb (GtkWindow *window)
+preferences_window_help_clicked_cb (EPreferencesWindow *window)
{
- e_display_help (window, "config-prefs");
+ GtkTreeModel *model;
+ GtkTreeIter iter;
+ GList *list;
+ gchar *page = NULL;
+
+ g_return_if_fail (window != NULL);
+
+ model = GTK_TREE_MODEL (window->priv->filter);
+ list = gtk_icon_view_get_selected_items (GTK_ICON_VIEW (window->priv->icon_view));
+ if (list != NULL) {
+ gtk_tree_model_get_iter (model, &iter, list->data);
+ gtk_tree_model_get (model, &iter, COLUMN_ID, &page, -1);
+ } else if (gtk_tree_model_get_iter_first (model, &iter)) {
+ gint page_index, current_index;
+
+ current_index = gtk_notebook_get_current_page (GTK_NOTEBOOK (window->priv->notebook));
+ do {
+ gtk_tree_model_get (model, &iter, COLUMN_PAGE, &page_index, -1);
+
+ if (page_index == current_index) {
+ gtk_tree_model_get (model, &iter, COLUMN_ID, &page, -1);
+ break;
+ }
+ } while (gtk_tree_model_iter_next (model, &iter));
+ }
+
+ e_display_help (GTK_WINDOW (window), page ? page : "index");
+
+ g_free (page);
}
static void
im-honoka. PR: 201922 Approved by: portmgr (antoine) Exp-run by: antoine * - Switch to USES=libtool, drop .la filesDmitry Marakasov2014-07-042-3/+4 | | | | Approved by: portmgr blanket * Update to OAuth lib 1.0.3Johan van Selst2014-04-212-3/+3 | * Update liboauth to 1.0.2Johan van Selst2014-03-272-5/+5 | * Enable stage supportJohan van Selst2013-12-302-3/+1 | * Add NO_STAGE all over the place in preparation for the staging support (cat: ↵Baptiste Daroussin2013-09-211-0/+1 | | | | net) * Convert USE_GNOME=pkgconfig to USES=pkgconfigBaptiste Daroussin2013-08-311-1/+1 | | | | | | | | | While here: - Trim headers - Convert: * USE_GNOME=gnomehack -> USES=pathfix * USE_PERL5 -> USES=perl5 * USE_GMAKE -> USES=gmake * - Update to 7.31.0Sunpoet Po-Chuan Hsieh2013-07-121-0/+1 | | | | | | | | | | | | | | | | | | | | | | | - Bump PORTREVISION for ftp/curl shlib change - Add TEST_DEPENDS - Convert to new options framework - Adjust options: - Add COOKIES - Add CYASSL, NSS, POLARSSL, THREADED_RESOLVER, TLS_SRP [1] - Add GSSAPI and SPNEGO [2] - Remove KERBEROS4 - Rename LIBIDN to IDN - Remove TRACKMEMORY [1] - Sort option handler - Add SLAVEDIRS: ftp/curl-hiphop - Cosmetic change - Cleanup Makefile header - While I'm here, fix typo (PORTREVSION) in x11-wm/ede/Makefile Changes: http://curl.haxx.se/changes.html PR: ports/172325 (-exp run), ports/177369 (based on) [1] Submitted by: Hirohisa Yamaguchi <umq@ueo.co.jp> [1], hrs (via email) [2] Exp run by: miwi * Update oauth to 1.0.1Johan van Selst2013-03-182-8/+3 | * - Upgrade liboauth to 1.0 releaseJohan van Selst2012-11-132-6/+5 | | | | | | - Update MASTER_SITE to general SF link Feature safe: yes * Update oauth to 0.9.7 (bugfix release)Johan van Selst2012-07-132-4/+3 | * The pkgconfig file from liboauth referes to the libcrypto pkgconfig file.Johan van Selst2012-01-061-1/+3 | | | | | | Remove the reference, because our openssl is installed without such a file. Submitted by: kwm * Update liboauth to 0.9.6Johan van Selst2011-12-162-3/+3 | * - Update liboauth to 0.9.5Johan van Selst2011-12-013-15/+3 | | | | | | - Remove patch that is now included in the distribution Feature safe: yes * Don't rever to libcrypto in oauth pkg-config file, since our base opensslKoop Mast2011-09-162-0/+12 | | | | | | doesn't install a .pc file. This will fix "pkg-config --cflags oauth". Approved by: maintainer * Update liboauth to 0.9.4 (bugfix release)Johan van Selst2011-01-312-3/+3 | | | | Feature safe: yes * Update liboauth to 0.9.3Johan van Selst2011-01-222-3/+3 | | | | Feature safe: yes * Update liboauth to 0.9.2Johan van Selst2011-01-142-3/+3 | | | | Feature safe: yes