1
0
mirror of https://github.com/GNOME/gedit synced 2024-07-02 15:58:48 +00:00

Window: remove the ::tabs-reordered signal (unused)

This commit is contained in:
Sébastien Wilmet 2024-03-24 02:55:57 +01:00
parent 31b6bfc9b1
commit a4d30a3a2a
3 changed files with 12 additions and 18 deletions

View File

@ -32,6 +32,14 @@
not an essential API).
</para>
</listitem>
<listitem>
<para>
The <code>GeditWindow::tabs-reordered</code> signal has been removed.
It was unused. Also, functions like
<link linkend="gedit-window-get-documents">gedit_window_get_documents()</link>
don't specify the order in which the objects are listed.
</para>
</listitem>
<listitem>
<para>
The <code>gedit_utils_location_get_dirname_for_display()</code>

View File

@ -133,7 +133,6 @@ enum
{
SIGNAL_TAB_ADDED,
SIGNAL_TAB_REMOVED,
SIGNAL_TABS_REORDERED,
SIGNAL_ACTIVE_TAB_CHANGED,
N_SIGNALS
};
@ -461,15 +460,6 @@ gedit_window_class_init (GeditWindowClass *klass)
1,
GEDIT_TYPE_TAB);
signals[SIGNAL_TABS_REORDERED] =
g_signal_new ("tabs-reordered",
G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GeditWindowClass, tabs_reordered),
NULL, NULL, NULL,
G_TYPE_NONE,
0);
/**
* GeditWindow::active-tab-changed:
* @window: the #GeditWindow emitting the signal.
@ -1821,8 +1811,6 @@ on_page_reordered (GeditMultiNotebook *multi,
GeditWindow *window)
{
update_actions_sensitivity (window);
g_signal_emit (G_OBJECT (window), signals[SIGNAL_TABS_REORDERED], 0);
}
static GtkNotebook *

View File

@ -73,13 +73,11 @@ struct _GeditWindowClass
GtkApplicationWindowClass parent_class;
/* Signals */
void (* tab_added) (GeditWindow *window,
GeditTab *tab);
void (* tab_added) (GeditWindow *window,
GeditTab *tab);
void (* tab_removed) (GeditWindow *window,
GeditTab *tab);
void (* tabs_reordered) (GeditWindow *window);
void (* tab_removed) (GeditWindow *window,
GeditTab *tab);
};
/* Public methods */