diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-05-24 18:39:35 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-05-24 18:57:07 +0800 |
commit | a8587cf10bf7004c97fa2f7143c191e67b4eaf08 (patch) | |
tree | dc4212e71e96a715cc9a76c53d43056c5d9864be /src | |
parent | 7a0d00bb00ead77b5d932ac0bdbdd6d5851f293f (diff) | |
download | gsoc2013-empathy-a8587cf10bf7004c97fa2f7143c191e67b4eaf08.tar gsoc2013-empathy-a8587cf10bf7004c97fa2f7143c191e67b4eaf08.tar.gz gsoc2013-empathy-a8587cf10bf7004c97fa2f7143c191e67b4eaf08.tar.bz2 gsoc2013-empathy-a8587cf10bf7004c97fa2f7143c191e67b4eaf08.tar.lz gsoc2013-empathy-a8587cf10bf7004c97fa2f7143c191e67b4eaf08.tar.xz gsoc2013-empathy-a8587cf10bf7004c97fa2f7143c191e67b4eaf08.tar.zst gsoc2013-empathy-a8587cf10bf7004c97fa2f7143c191e67b4eaf08.zip |
remove GeditCloseButton
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/gedit-close-button.c | 61 | ||||
-rw-r--r-- | src/gedit-close-button.h | 60 |
3 files changed, 0 insertions, 123 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 01de664b0..086d13be8 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -85,7 +85,6 @@ empathy_chat_SOURCES = \ empathy-chat-window.c empathy-chat-window.h \ empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \ empathy-chat.c \ - gedit-close-button.c gedit-close-button.h \ $(NULL) empathy_call_SOURCES = \ @@ -138,7 +137,6 @@ empathy_handwritten_source = \ empathy-preferences.c empathy-preferences.h \ empathy-status-icon.c empathy-status-icon.h \ empathy-chat-manager.c empathy-chat-manager.h \ - gedit-close-button.c gedit-close-button.h \ empathy.c empathy_SOURCES = \ diff --git a/src/gedit-close-button.c b/src/gedit-close-button.c deleted file mode 100644 index 5418643d8..000000000 --- a/src/gedit-close-button.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * gedit-close-button.c - * This file is part of gedit - * - * Copyright (C) 2010 - Paolo Borelli - * Copyright (C) 2011 - Ignacio Casal Quinteiro - * - * gedit is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * gedit 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include "gedit-close-button.h" - -struct _GeditCloseButtonClassPrivate -{ - GtkCssProvider *css; -}; - -G_DEFINE_TYPE_WITH_CODE (GeditCloseButton, gedit_close_button, GTK_TYPE_BUTTON, - g_type_add_class_private (g_define_type_id, sizeof (GeditCloseButtonClassPrivate))) - -static void -gedit_close_button_class_init (GeditCloseButtonClass *klass) -{ -} - -static void -gedit_close_button_init (GeditCloseButton *button) -{ - GtkWidget *image; - - image = gtk_image_new_from_stock (GTK_STOCK_CLOSE, - GTK_ICON_SIZE_MENU); - gtk_widget_show (image); - - gtk_container_add (GTK_CONTAINER (button), image); - - gtk_widget_set_name (GTK_WIDGET (button), "empathy-tab-close-button"); -} - -GtkWidget * -gedit_close_button_new () -{ - return GTK_WIDGET (g_object_new (GEDIT_TYPE_CLOSE_BUTTON, - "relief", GTK_RELIEF_NONE, - "focus-on-click", FALSE, - NULL)); -} - -/* ex:set ts=8 noet: */ diff --git a/src/gedit-close-button.h b/src/gedit-close-button.h deleted file mode 100644 index 791a73024..000000000 --- a/src/gedit-close-button.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * gedit-close-button.h - * This file is part of gedit - * - * Copyright (C) 2010 - Paolo Borelli - * - * gedit is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * gedit 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef __GEDIT_CLOSE_BUTTON_H__ -#define __GEDIT_CLOSE_BUTTON_H__ - -#include <gtk/gtk.h> - -G_BEGIN_DECLS - -#define GEDIT_TYPE_CLOSE_BUTTON (gedit_close_button_get_type ()) -#define GEDIT_CLOSE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_CLOSE_BUTTON, GeditCloseButton)) -#define GEDIT_CLOSE_BUTTON_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_CLOSE_BUTTON, GeditCloseButton const)) -#define GEDIT_CLOSE_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEDIT_TYPE_CLOSE_BUTTON, GeditCloseButtonClass)) -#define GEDIT_IS_CLOSE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEDIT_TYPE_CLOSE_BUTTON)) -#define GEDIT_IS_CLOSE_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEDIT_TYPE_CLOSE_BUTTON)) -#define GEDIT_CLOSE_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEDIT_TYPE_CLOSE_BUTTON, GeditCloseButtonClass)) - -typedef struct _GeditCloseButton GeditCloseButton; -typedef struct _GeditCloseButtonClass GeditCloseButtonClass; -typedef struct _GeditCloseButtonClassPrivate GeditCloseButtonClassPrivate; - -struct _GeditCloseButton -{ - GtkButton parent; -}; - -struct _GeditCloseButtonClass -{ - GtkButtonClass parent_class; - - GeditCloseButtonClassPrivate *priv; -}; - -GType gedit_close_button_get_type (void) G_GNUC_CONST; - -GtkWidget *gedit_close_button_new (void); - -G_END_DECLS - -#endif /* __GEDIT_CLOSE_BUTTON_H__ */ -/* ex:set ts=8 noet: */ |