...
 
Commits (21)
[submodule "libgd"]
path = libgd
url = ../libgd.git
url = https://gitlab.gnome.org/GNOME/libgd.git
=============
gedit 3.30.2
=============
- Fix file chooser not opening in correct location after first time
(Sebastien Lafargue)
- Translation updates
=============
gedit 3.30.1
=============
......
General Information
===================
This is version 3.30.1 of gedit. gedit is a small and lightweight UTF-8 text
This is version 3.30.2 of gedit. gedit is a small and lightweight UTF-8 text
editor for the GNOME environment.
gedit is part of GNOME and uses the latest GTK+ and GNOME libraries.
......@@ -76,8 +76,8 @@ gspell >= 0.2.3 is required to enable the spell checking plugin.
Simple install procedure:
% tar Jxf gedit-3.30.1.tar.xz # unpack the sources
% cd gedit-3.30.1 # change to the toplevel directory
% tar Jxf gedit-3.30.2.tar.xz # unpack the sources
% cd gedit-3.30.2 # change to the toplevel directory
% ./configure # run the `configure' script
% make # build gedit
[ Become root if necessary ]
......
......@@ -4,7 +4,7 @@ AC_PREREQ(2.63.2)
m4_define(gedit_major_version, 3)
m4_define(gedit_minor_version, 30)
m4_define(gedit_micro_version, 1)
m4_define(gedit_micro_version, 2)
m4_define(gedit_version, gedit_major_version.gedit_minor_version.gedit_micro_version)
AC_INIT([gedit],
......
......@@ -35,7 +35,7 @@
</screenshots>
<url type="homepage">https://wiki.gnome.org/Apps/Gedit</url>
<url type="bugtracker">https://gitlab.gnome.org/GNOME/gedit/issues</url>
<url type="donation">http://www.gnome.org/friends/</url>
<url type="donation">https://www.gnome.org/friends/</url>
<url type="help">https://help.gnome.org/users/gedit/stable/</url>
<url type="translate">https://wiki.gnome.org/TranslationProject</url>
<update_contact>pborelli@gnome.org</update_contact>
......
......@@ -214,7 +214,7 @@ chooser_hide (GeditFileChooserDialog *dialog)
static void
chooser_destroy (GeditFileChooserDialog *dialog)
{
//gtk_widget_destroy (GTK_WIDGET (dialog));
g_object_unref (dialog);
}
static void
......
......@@ -146,7 +146,6 @@ gedit_notebook_button_press_event (GtkWidget *widget,
GtkNotebook *notebook = GTK_NOTEBOOK (widget);
if (event->type == GDK_BUTTON_PRESS &&
event->button == GDK_BUTTON_SECONDARY &&
(event->state & gtk_accelerator_get_default_mod_mask ()) == 0)
{
gint tab_clicked;
......@@ -157,10 +156,19 @@ gedit_notebook_button_press_event (GtkWidget *widget,
GtkWidget *tab;
tab = gtk_notebook_get_nth_page (notebook, tab_clicked);
switch (event->button)
{
case GDK_BUTTON_SECONDARY:
g_signal_emit (G_OBJECT (widget), signals[SHOW_POPUP_MENU], 0, event, tab);
return GDK_EVENT_STOP;
g_signal_emit (G_OBJECT (widget), signals[SHOW_POPUP_MENU], 0, event, tab);
case GDK_BUTTON_MIDDLE:
g_signal_emit (G_OBJECT (notebook), signals[TAB_CLOSE_REQUEST], 0, tab);
return GDK_EVENT_STOP;
return GDK_EVENT_STOP;
default:
break;
}
}
}
......
......@@ -436,6 +436,23 @@ fileitem_setup (FileItem *item)
return candidate;
}
static inline gboolean
is_filter_in_candidate (const gchar *candidate,
const gchar *filter)
{
gchar *candidate_fold;
gboolean ret;
g_assert (candidate != NULL);
g_assert (filter != NULL);
candidate_fold = g_utf8_casefold (candidate, -1);
ret = (strstr (candidate_fold, filter) != NULL);
g_free (candidate_fold);
return ret;
}
/* If filter == NULL then items are
* not checked against the filter.
*/
......@@ -445,6 +462,10 @@ fileitem_list_filter (GList *items,
{
GList *new_items = NULL;
GList *l;
gchar *filter_fold = NULL;
if (filter != NULL)
filter_fold = g_utf8_casefold (filter, -1);
for (l = items; l != NULL; l = l->next)
{
......@@ -453,16 +474,19 @@ fileitem_list_filter (GList *items,
item = l->data;
candidate = fileitem_setup (item);
if (candidate && (filter == NULL || strstr (candidate, filter)))
if (candidate != NULL)
{
new_items = g_list_prepend (new_items,
gedit_open_document_selector_copy_fileitem_item (item));
}
if (filter == NULL || is_filter_in_candidate (candidate, filter_fold))
{
new_items = g_list_prepend (new_items,
gedit_open_document_selector_copy_fileitem_item (item));
}
g_free (candidate);
g_free (candidate);
}
}
g_free (filter_fold);
new_items = g_list_reverse (new_items);
return new_items;
}
......
......@@ -1263,7 +1263,7 @@ row_deleted (GeditFileBrowserStore *model,
GtkTreePath *copy;
/* We should always be called when the row is still inserted */
g_return_if_fail (node->inserted == TRUE);
g_return_if_fail (node->inserted == TRUE || NODE_IS_DUMMY (node));
hidden = FILE_IS_HIDDEN (node->flags);
node->flags &= ~GEDIT_FILE_BROWSER_STORE_FLAG_IS_HIDDEN;
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.