[gtk+] trivial refactoring
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] trivial refactoring
- Date: Sun, 18 Jan 2015 22:46:39 +0000 (UTC)
commit 6a7b549608ad0c6e294368996de165a1ccc2d979
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jan 18 16:57:21 2015 -0500
trivial refactoring
gtk/gtkfilechooserwidget.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 4978041..9ed0e5d 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -2479,16 +2479,20 @@ operation_mode_set_search (GtkFileChooserWidget *impl)
static void
operation_mode_set_recent (GtkFileChooserWidget *impl)
{
- location_bar_update (impl);
+ GtkFileChooserWidgetPrivate *priv = impl->priv;
+ GFile *file;
+ location_bar_update (impl);
recent_start_loading (impl);
+ file = g_file_new_for_uri ("recent:///");
+ gtk_places_sidebar_set_location (GTK_PLACES_SIDEBAR (priv->places_sidebar), file);
+ g_object_unref (file);
}
static void
operation_mode_set (GtkFileChooserWidget *impl, OperationMode mode)
{
GtkFileChooserWidgetPrivate *priv = impl->priv;
- GFile *file;
operation_mode_stop (impl, priv->operation_mode);
@@ -2510,9 +2514,6 @@ operation_mode_set (GtkFileChooserWidget *impl, OperationMode mode)
case OPERATION_MODE_RECENT:
operation_mode_set_recent (impl);
- file = g_file_new_for_uri ("recent:///");
- gtk_places_sidebar_set_location (GTK_PLACES_SIDEBAR (priv->places_sidebar), file);
- g_object_unref (file);
break;
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]