Patch from JRB for 88443
2002-08-07 Jody Goldberg <jody@gnome.org> Patch from JRB for 88443 * theme-switcher.c (read_themes) : store the current cursor 2002-08-07 Jody Goldberg <jody@gnome.org> * mime-edit-dialog.c (mime_edit_dialog_get_app) : Be extra anal, just in case the db is corrupt.
This commit is contained in:
parent
97c9f86f49
commit
fe247b1685
4 changed files with 25 additions and 26 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2002-08-07 Jody Goldberg <jody@gnome.org>
|
||||||
|
|
||||||
|
* mime-edit-dialog.c (mime_edit_dialog_get_app) : Be extra anal, just
|
||||||
|
in case the db is corrupt.
|
||||||
|
|
||||||
2002-08-05 Jody Goldberg <jody@gnome.org>
|
2002-08-05 Jody Goldberg <jody@gnome.org>
|
||||||
|
|
||||||
* mime-edit-dialog.c (mime_edit_dialog_get_app) : work around
|
* mime-edit-dialog.c (mime_edit_dialog_get_app) : work around
|
||||||
|
|
|
@ -702,7 +702,7 @@ mime_edit_dialog_get_app (GladeXML *glade, char const *mime_type,
|
||||||
|
|
||||||
/* Look for a matching application (with or without path) */
|
/* Look for a matching application (with or without path) */
|
||||||
if (app_cmd != NULL &&
|
if (app_cmd != NULL &&
|
||||||
(!strcmp (cmd, app_cmd) || !strcmp (base_cmd, app_cmd))) {
|
(!strcmp (cmd, app_cmd) || (*base_cmd && !strcmp (base_cmd, app_cmd)))) {
|
||||||
gboolean ok, app_req = gnome_vfs_application_registry_get_bool_value (ptr->data,
|
gboolean ok, app_req = gnome_vfs_application_registry_get_bool_value (ptr->data,
|
||||||
GNOME_VFS_APPLICATION_REGISTRY_REQUIRES_TERMINAL, &ok);
|
GNOME_VFS_APPLICATION_REGISTRY_REQUIRES_TERMINAL, &ok);
|
||||||
if (ok && app_req == requires_terminal)
|
if (ok && app_req == requires_terminal)
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
2002-08-07 Jody Goldberg <jody@gnome.org>
|
||||||
|
Patch from JRB for 88443
|
||||||
|
|
||||||
|
* theme-switcher.c (read_themes) : store the current cursor
|
||||||
|
|
||||||
2002-07-31 Federico Mena Quintero <federico@ximian.com>
|
2002-07-31 Federico Mena Quintero <federico@ximian.com>
|
||||||
|
|
||||||
* theme-install.glade: Make the file entry modal. Fixes #89410.
|
* theme-install.glade: Make the file entry modal. Fixes #89410.
|
||||||
|
|
|
@ -141,18 +141,9 @@ read_themes (GladeXML *dialog)
|
||||||
|
|
||||||
if (strcmp (current_theme, info->name) == 0)
|
if (strcmp (current_theme, info->name) == 0)
|
||||||
{
|
{
|
||||||
GtkTreeSelection *selection;
|
GtkTreePath *path = gtk_tree_model_get_path (model, &iter);
|
||||||
|
|
||||||
selection = gtk_tree_view_get_selection (tree_view);
|
|
||||||
gtk_tree_selection_select_iter (selection, &iter);
|
|
||||||
if (initial_scroll)
|
|
||||||
{
|
|
||||||
GtkTreePath *path;
|
|
||||||
|
|
||||||
path = gtk_tree_model_get_path (model, &iter);
|
|
||||||
row_ref = gtk_tree_row_reference_new (model, path);
|
row_ref = gtk_tree_row_reference_new (model, path);
|
||||||
gtk_tree_path_free (path);
|
gtk_tree_path_free (path);
|
||||||
}
|
|
||||||
current_theme_found = TRUE;
|
current_theme_found = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -169,36 +160,34 @@ read_themes (GladeXML *dialog)
|
||||||
|
|
||||||
if (! current_theme_found)
|
if (! current_theme_found)
|
||||||
{
|
{
|
||||||
GtkTreeSelection *selection = gtk_tree_view_get_selection (tree_view);
|
|
||||||
GtkTreeIter iter;
|
GtkTreeIter iter;
|
||||||
|
GtkTreePath *path;
|
||||||
|
|
||||||
gtk_list_store_prepend (GTK_LIST_STORE (model), &iter);
|
gtk_list_store_prepend (GTK_LIST_STORE (model), &iter);
|
||||||
gtk_list_store_set (GTK_LIST_STORE (model), &iter,
|
gtk_list_store_set (GTK_LIST_STORE (model), &iter,
|
||||||
THEME_NAME_COLUMN, current_theme,
|
THEME_NAME_COLUMN, current_theme,
|
||||||
-1);
|
-1);
|
||||||
gtk_tree_selection_select_iter (selection, &iter);
|
|
||||||
if (initial_scroll)
|
|
||||||
{
|
|
||||||
GtkTreePath *path;
|
|
||||||
|
|
||||||
path = gtk_tree_model_get_path (model, &iter);
|
path = gtk_tree_model_get_path (model, &iter);
|
||||||
row_ref = gtk_tree_row_reference_new (model, path);
|
row_ref = gtk_tree_row_reference_new (model, path);
|
||||||
gtk_tree_path_free (path);
|
gtk_tree_path_free (path);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
if (row_ref)
|
||||||
if (row_ref && initial_scroll)
|
|
||||||
{
|
{
|
||||||
GtkTreePath *path;
|
GtkTreePath *path;
|
||||||
|
|
||||||
path = gtk_tree_row_reference_get_path (row_ref);
|
path = gtk_tree_row_reference_get_path (row_ref);
|
||||||
|
gtk_tree_view_set_cursor (tree_view,path, NULL, FALSE);
|
||||||
|
|
||||||
|
if (initial_scroll)
|
||||||
|
{
|
||||||
gtk_tree_view_scroll_to_cell (tree_view, path, NULL, TRUE, 0.5, 0.0);
|
gtk_tree_view_scroll_to_cell (tree_view, path, NULL, TRUE, 0.5, 0.0);
|
||||||
|
initial_scroll = FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
gtk_tree_path_free (path);
|
gtk_tree_path_free (path);
|
||||||
gtk_tree_row_reference_free (row_ref);
|
gtk_tree_row_reference_free (row_ref);
|
||||||
initial_scroll = FALSE;
|
|
||||||
}
|
}
|
||||||
setting_model = FALSE;
|
setting_model = FALSE;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue