brasero r793 - in trunk: . src
- From: philippr svn gnome org
- To: svn-commits-list gnome org
- Subject: brasero r793 - in trunk: . src
- Date: Sun, 4 May 2008 19:14:52 +0100 (BST)
Author: philippr
Date: Sun May 4 18:14:52 2008
New Revision: 793
URL: http://svn.gnome.org/viewvc/brasero?rev=793&view=rev
Log:
Add multi selection through mouse in dialog that pops up after clicking on add without side pane
* src/brasero-file-chooser.c (brasero_file_chooser_customize):
* src/brasero-file-chooser.h:
* src/brasero-project.c (brasero_project_add_uris_cb):
Modified:
trunk/ChangeLog
trunk/src/brasero-file-chooser.c
trunk/src/brasero-file-chooser.h
trunk/src/brasero-project.c
Modified: trunk/src/brasero-file-chooser.c
==============================================================================
--- trunk/src/brasero-file-chooser.c (original)
+++ trunk/src/brasero-file-chooser.c Sun May 4 18:14:52 2008
@@ -42,6 +42,8 @@
#include <gtk/gtkpaned.h>
#include <gtk/gtkhpaned.h>
#include <gtk/gtkfilechooserwidget.h>
+#include <gtk/gtkcellrenderertext.h>
+#include <gtk/gtktreeselection.h>
#include "eggtreemultidnd.h"
@@ -127,7 +129,7 @@
object_class->finalize = brasero_file_chooser_finalize;
}
-static void
+void
brasero_file_chooser_customize (GtkWidget *widget, gpointer null_data)
{
/* we explore everything until we reach a treeview (there are two) */
@@ -142,9 +144,9 @@
found = gtk_target_list_find (list, target, &num);
/* FIXME: should we unref them ? apparently not according to
* the warning messages we get if we do */
-// gtk_target_list_unref (list);
- if (found) {
+ if (found
+ && gtk_tree_selection_get_mode (gtk_tree_view_get_selection (GTK_TREE_VIEW (widget))) == GTK_SELECTION_MULTIPLE) {
gtk_tree_view_set_rubber_banding (GTK_TREE_VIEW (widget), TRUE);
egg_tree_multi_drag_add_drag_support (GTK_TREE_VIEW (widget));
}
Modified: trunk/src/brasero-file-chooser.h
==============================================================================
--- trunk/src/brasero-file-chooser.h (original)
+++ trunk/src/brasero-file-chooser.h Sun May 4 18:14:52 2008
@@ -54,4 +54,8 @@
GType brasero_file_chooser_get_type ();
GtkWidget *brasero_file_chooser_new ();
+void
+brasero_file_chooser_customize (GtkWidget *widget,
+ gpointer null_data);
+
#endif /* BRASERO_FILE_CHOOSER_H */
Modified: trunk/src/brasero-project.c
==============================================================================
--- trunk/src/brasero-project.c (original)
+++ trunk/src/brasero-project.c Sun May 4 18:14:52 2008
@@ -77,6 +77,7 @@
#include "brasero-uri-container.h"
#include "brasero-layout-object.h"
#include "brasero-disc-message.h"
+#include "brasero-file-chooser.h"
static void brasero_project_class_init (BraseroProjectClass *klass);
static void brasero_project_init (BraseroProject *sp);
@@ -1521,8 +1522,8 @@
NULL);
gtk_file_chooser_set_select_multiple (GTK_FILE_CHOOSER (project->priv->chooser), TRUE);
gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (project->priv->chooser), TRUE);
- gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (project->priv->chooser),
- g_get_home_dir ());
+ gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (project->priv->chooser), g_get_home_dir ());
+ brasero_file_chooser_customize (project->priv->chooser, NULL);
gtk_widget_show (project->priv->chooser);
g_signal_connect (project->priv->chooser,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]