eel: Drop gtk extensions

No longer used.
This commit is contained in:
António Fernandes 2021-12-17 15:59:03 +00:00
parent 8d974ecc60
commit 23cb15d8ee
13 changed files with 1 additions and 113 deletions

View file

@ -1,66 +0,0 @@
/* eel-gtk-extensions.c - implementation of new functions that operate on
* gtk classes. Perhaps some of these should be
* rolled into gtk someday.
*
* Copyright (C) 1999, 2000, 2001 Eazel, Inc.
*
* The Gnome Library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* The Gnome Library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with the Gnome Library; see the file COPYING.LIB. If not,
* see <http://www.gnu.org/licenses/>.
*
* Authors: John Sullivan <sullivan@eazel.com>
* Ramiro Estrugo <ramiro@eazel.com>
* Darin Adler <darin@eazel.com>
*/
#include <config.h>
#include "eel-gtk-extensions.h"
#include "eel-glib-extensions.h"
#include "eel-string.h"
#include <gdk/gdk.h>
#include <gtk/gtk.h>
#include <glib/gi18n-lib.h>
#include <math.h>
/* This number is fairly arbitrary. Long enough to show a pretty long
* menu title, but not so long to make a menu grotesquely wide.
*/
#define MAXIMUM_MENU_TITLE_LENGTH 48
/* Used for window position & size sanity-checking. The sizes are big enough to prevent
* at least normal-sized gnome panels from obscuring the window at the screen edges.
*/
#define MINIMUM_ON_SCREEN_WIDTH 100
#define MINIMUM_ON_SCREEN_HEIGHT 100
GtkMenuItem *
eel_gtk_menu_append_separator (GtkMenu *menu)
{
return eel_gtk_menu_insert_separator (menu, -1);
}
GtkMenuItem *
eel_gtk_menu_insert_separator (GtkMenu *menu,
int index)
{
GtkWidget *menu_item;
menu_item = gtk_separator_menu_item_new ();
gtk_widget_show (menu_item);
gtk_menu_shell_insert (GTK_MENU_SHELL (menu), menu_item, index);
return GTK_MENU_ITEM (menu_item);
}

View file

@ -1,34 +0,0 @@
/* eel-gtk-extensions.h - interface for new functions that operate on
gtk classes. Perhaps some of these should be
rolled into gtk someday.
Copyright (C) 1999, 2000, 2001 Eazel, Inc.
The Gnome Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The Gnome Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the Gnome Library; see the file COPYING.LIB. If not,
see <http://www.gnu.org/licenses/>.
Authors: John Sullivan <sullivan@eazel.com>
Ramiro Estrugo <ramiro@eazel.com>
*/
#pragma once
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gtk/gtk.h>
/* GtkMenu and GtkMenuItem */
GtkMenuItem * eel_gtk_menu_append_separator (GtkMenu *menu);
GtkMenuItem * eel_gtk_menu_insert_separator (GtkMenu *menu,
int index);

View file

@ -23,7 +23,6 @@
#include "eel-stock-dialogs.h"
#include "eel-glib-extensions.h"
#include "eel-gtk-extensions.h"
#include <glib/gi18n-lib.h>
#include <gtk/gtk.h>

View file

@ -25,8 +25,7 @@
#include <eel/eel-art-extensions.h>
#include <eel/eel-glib-extensions.h>
#include <eel/eel-graphic-effects.h>
#include <eel/eel-gtk-extensions.h>
#include <eel/eel-self-checks.h>
#include <eel/eel-stock-dialogs.h>
#include <eel/eel-string.h>
#include <eel/eel-vfs-extensions.h>
#include <eel/eel-vfs-extensions.h>

View file

@ -6,7 +6,6 @@ libeel_2_sources = [
'eel-glib-extensions.h',
'eel-graphic-effects.h',
'eel-graphic-effects.c',
'eel-gtk-extensions.h',
'eel-self-checks.h',
'eel-self-checks.c',
'eel-stock-dialogs.h',
@ -16,7 +15,6 @@ libeel_2_sources = [
'eel-vfs-extensions.h',
'eel-vfs-extensions.c',
'eel.h',
'eel-gtk-extensions.c',
'eel-lib-self-check-functions.h',
'eel-lib-self-check-functions.c',
]

View file

@ -4,7 +4,6 @@ data/nautilus-autorun-software.desktop.in
data/org.gnome.Nautilus.appdata.xml.in.in
data/org.gnome.Nautilus.desktop.in.in
data/org.gnome.nautilus.gschema.xml
eel/eel-gtk-extensions.c
eel/eel-stock-dialogs.c
eel/eel-vfs-extensions.c
extensions/audio-video-properties/bacon-video-widget-properties.c

View file

@ -26,7 +26,6 @@
#include "nautilus-application.h"
#include <eel/eel-gtk-extensions.h>
#include <eel/eel-stock-dialogs.h>
#include <fcntl.h>
#include <gdk/gdk.h>

View file

@ -29,7 +29,6 @@
#include "nautilus-program-choosing.h"
#include "nautilus-gtk4-helpers.h"
#include <eel/eel-glib-extensions.h>
#include <eel/eel-gtk-extensions.h>
#include <eel/eel-string.h>
#include <eel/eel-vfs-extensions.h>
#include <gtk/gtk.h>

View file

@ -28,7 +28,6 @@
#include <eel/eel-debug.h>
#include <eel/eel-glib-extensions.h>
#include <eel/eel-gtk-extensions.h>
#include <eel/eel-string.h>
#include <eel/eel-vfs-extensions.h>
#include <gdesktop-enums.h>

View file

@ -26,7 +26,6 @@
#include "nautilus-files-view.h"
#include <eel/eel-glib-extensions.h>
#include <eel/eel-gtk-extensions.h>
#include <eel/eel-stock-dialogs.h>
#include <eel/eel-string.h>
#include <eel/eel-vfs-extensions.h>

View file

@ -27,7 +27,6 @@
#include "nautilus-file.h"
#include "src/nautilus-files-view.h"
#include <eel/eel-glib-extensions.h>
#include <eel/eel-gtk-extensions.h>
#include <eel/eel-stock-dialogs.h>
#include <eel/eel-string.h>
#include <glib/gi18n.h>

View file

@ -22,7 +22,6 @@
#include "nautilus-properties-window.h"
#include <cairo.h>
#include <eel/eel-gtk-extensions.h>
#include <eel/eel-stock-dialogs.h>
#include <eel/eel-string.h>
#include <eel/eel-vfs-extensions.h>

View file

@ -27,7 +27,6 @@
#include "nautilus-window.h"
#include <eel/eel-debug.h>
#include <eel/eel-gtk-extensions.h>
#include <eel/eel-vfs-extensions.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gdk/gdkkeysyms.h>