[gedit] Avoid unwanted drag cancel animations
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Avoid unwanted drag cancel animations
- Date: Sun, 15 Feb 2015 21:00:16 +0000 (UTC)
commit 7d75dd8e53ce1fe4fbeda7d6f259706ebd10f313
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Feb 12 17:38:02 2015 -0500
Avoid unwanted drag cancel animations
GTK+ is now being more careful about dealing with tabs
disappearing in the middle of a drag - which is exactly
what the current gedit code appears to be doing, from
the GtkNotebook viewpoint. To avoid this, use a new function
that was introduced for this purpose in GtkNotebook.
https://bugzilla.gnome.org/show_bug.cgi?id=744443
README | 2 +-
configure.ac | 2 +-
gedit/gedit-notebook.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/README b/README
index 79d9ac5..ad32999 100644
--- a/README
+++ b/README
@@ -64,7 +64,7 @@ Information about gedit mailing lists can be found at
Installation
============
-gedit requires GTK+ >= 3.14.0, GtkSourceView >= 3.14.0 and
+gedit requires GTK+ >= 3.15.7, GtkSourceView >= 3.15.3 and
libpeas >= 1.7.x libraries. It also has a run-time dependency on an
icon theme for its icons. If gedit fails to display icons, installing
GNOME's default adwaita-icon-theme is a simple way of providing them.
diff --git a/configure.ac b/configure.ac
index 49ccbba..442b005 100644
--- a/configure.ac
+++ b/configure.ac
@@ -15,7 +15,7 @@ AC_INIT([gedit],
# Dependencies
GLIB_REQUIRED=2.40.0
-GTK_REQUIRED=3.14.0
+GTK_REQUIRED=3.15.7
GTKSOURCEVIEW_REQUIRED=3.15.3
LIBPEAS_REQUIRED=1.7.0
LIBXML_REQUIRED=2.5.0
diff --git a/gedit/gedit-notebook.c b/gedit/gedit-notebook.c
index 404f52d..6e0a71d 100644
--- a/gedit/gedit-notebook.c
+++ b/gedit/gedit-notebook.c
@@ -568,7 +568,7 @@ gedit_notebook_move_tab (GeditNotebook *src,
/* make sure the tab isn't destroyed while we move it */
g_object_ref (tab);
- gtk_container_remove (GTK_CONTAINER (src), GTK_WIDGET (tab));
+ gtk_notebook_detach_tab (GTK_NOTEBOOK (src), GTK_WIDGET (tab));
gedit_notebook_add_tab (dest, tab, dest_position, TRUE);
g_object_unref (tab);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]