gnome-control-center r8814 - trunk/capplets/sound
- From: jensg svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-control-center r8814 - trunk/capplets/sound
- Date: Mon, 28 Jul 2008 19:45:25 +0000 (UTC)
Author: jensg
Date: Mon Jul 28 19:45:24 2008
New Revision: 8814
URL: http://svn.gnome.org/viewvc/gnome-control-center?rev=8814&view=rev
Log:
2008-07-28 Jens Granseuer <jensgr gmx net>
* sound-theme.c: (custom_treeview_button_press_event_cb): don't
preview sounds for insensitive rows
Modified:
trunk/capplets/sound/ChangeLog
trunk/capplets/sound/sound-theme.c
Modified: trunk/capplets/sound/sound-theme.c
==============================================================================
--- trunk/capplets/sound/sound-theme.c (original)
+++ trunk/capplets/sound/sound-theme.c Mon Jul 28 19:45:24 2008
@@ -936,7 +936,7 @@
name = g_strdup_printf ("%s.disabled", sound_name);
filename = custom_theme_dir_path (name);
g_free (name);
-
+
if (g_file_test (filename, G_FILE_TEST_IS_REGULAR) != FALSE) {
g_free (filename);
return SOUND_OFF;
@@ -1007,6 +1007,7 @@
GtkTreeModel *model;
GtkTreeIter iter;
char **sound_names;
+ gboolean sensitive;
ca_context *ctx;
model = gtk_tree_view_get_model (GTK_TREE_VIEW (tree_view));
@@ -1016,8 +1017,10 @@
}
gtk_tree_path_free (path);
- gtk_tree_model_get (model, &iter, SOUND_NAMES_COL, &sound_names, -1);
- if (sound_names == NULL)
+ gtk_tree_model_get (model, &iter,
+ SOUND_NAMES_COL, &sound_names,
+ SENSITIVE_COL, &sensitive, -1);
+ if (!sensitive || sound_names == NULL)
return FALSE;
ctx = ca_gtk_context_get ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]