[Xfce4-commits] thunar:nick/gseal+clean Use GtkLabel for actions, drop SexyUrlLabel.
Updating branch refs/heads/nick/gseal+clean to 57ff06dc5b27dc8e1d40561a747c785ef68cf526 (commit) from b1c6a23ab5993c29bd05c38bdad7677e5cb3440b (commit) commit 57ff06dc5b27dc8e1d40561a747c785ef68cf526 Author: Nick Schermer n...@xfce.org Date: Wed May 16 18:05:26 2012 +0200 Use GtkLabel for actions, drop SexyUrlLabel. thunar/Makefile.am |2 - thunar/sexy-url-label.c| 842 thunar/sexy-url-label.h| 74 thunar/thunar-preferences-dialog.c | 10 +- 4 files changed, 4 insertions(+), 924 deletions(-) diff --git a/thunar/Makefile.am b/thunar/Makefile.am index 45175ca..0f9c198 100644 --- a/thunar/Makefile.am +++ b/thunar/Makefile.am @@ -37,8 +37,6 @@ thunar_SOURCES = \ $(thunar_dbus_sources) \ $(thunar_notify_sources)\ main.c \ - sexy-url-label.c\ - sexy-url-label.h\ thunar-abstract-dialog.c\ thunar-abstract-dialog.h\ thunar-abstract-icon-view-ui.h \ diff --git a/thunar/sexy-url-label.c b/thunar/sexy-url-label.c deleted file mode 100644 index 0be9e1d..000 --- a/thunar/sexy-url-label.c +++ /dev/null @@ -1,842 +0,0 @@ -/* - * @file libsexy/sexy-url-label.c URL Label - * - * @Copyright (C) 2007 Benedikt Meurer be...@xfce.org - * @Copyright (C) 2005-2006 Christian Hammond - * - * This library 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. - * - * This 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 - * 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., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - */ - -#ifdef HAVE_CONFIG_H -#include config.h -#endif - -#ifdef HAVE_MEMORY_H -#include memory.h -#endif -#include stdio.h -#ifdef HAVE_STRING_H -#include string.h -#endif - -#include sexy-url-label.h - -#define SEXY_URL_LABEL_GET_PRIVATE(obj) \ - (G_TYPE_INSTANCE_GET_PRIVATE((obj), SEXY_TYPE_URL_LABEL, \ - SexyUrlLabelPrivate)) - -typedef struct -{ - int start; - int end; - const gchar *url; - -} SexyUrlLabelLink; - -typedef struct -{ - GList *links; - GList *urls; - SexyUrlLabelLink *active_link; - GtkWidget *popup_menu; - GdkWindow *event_window; - - int layout_x; - int layout_y; - - size_t wrap_width; - - GString *temp_markup_result; - -} SexyUrlLabelPrivate; - -/* - * NOTE: This *MUST* match the LabelWrapWidth struct in gtklabel.c. - */ -typedef struct -{ - gint width; - PangoFontDescription *font_desc; - -} LabelWrapWidth; - -enum -{ - URL_ACTIVATED, - LAST_SIGNAL -}; - -static void sexy_url_label_finalize(GObject *obj); -static void sexy_url_label_realize(GtkWidget *widget); -static void sexy_url_label_unrealize(GtkWidget *widget); -static void sexy_url_label_map(GtkWidget *widget); -static void sexy_url_label_unmap(GtkWidget *widget); -static void sexy_url_label_size_allocate(GtkWidget *widget, - GtkAllocation *allocation); -static gboolean sexy_url_label_motion_notify_event(GtkWidget *widget, - GdkEventMotion *event); -static gboolean sexy_url_label_leave_notify_event(GtkWidget *widget, - GdkEventCrossing *event); -static gboolean sexy_url_label_button_press_event(GtkWidget *widget, - GdkEventButton *event); - -static void open_link_activate_cb(GtkMenuItem *menu_item, - SexyUrlLabel *url_label); -static void copy_link_activate_cb(GtkMenuItem *menu_item, - SexyUrlLabel *url_label); - -static void sexy_url_label_clear_links(SexyUrlLabel *url_label); -static void
[Xfce4-commits] thunar:nick/gseal+clean Use GtkLabel for actions, drop SexyUrlLabel.
Updating branch refs/heads/nick/gseal+clean to f9e93fe89a1e6ba531b97991cfd664976ddf42b2 (commit) from 014dc8f3bddc4602ca2f813652209f36cebada53 (commit) commit f9e93fe89a1e6ba531b97991cfd664976ddf42b2 Author: Nick Schermer n...@xfce.org Date: Wed May 16 18:05:26 2012 +0200 Use GtkLabel for actions, drop SexyUrlLabel. thunar/Makefile.am |2 - thunar/sexy-url-label.c| 842 thunar/sexy-url-label.h| 74 thunar/thunar-preferences-dialog.c | 10 +- 4 files changed, 4 insertions(+), 924 deletions(-) diff --git a/thunar/Makefile.am b/thunar/Makefile.am index 45175ca..0f9c198 100644 --- a/thunar/Makefile.am +++ b/thunar/Makefile.am @@ -37,8 +37,6 @@ thunar_SOURCES = \ $(thunar_dbus_sources) \ $(thunar_notify_sources)\ main.c \ - sexy-url-label.c\ - sexy-url-label.h\ thunar-abstract-dialog.c\ thunar-abstract-dialog.h\ thunar-abstract-icon-view-ui.h \ diff --git a/thunar/sexy-url-label.c b/thunar/sexy-url-label.c deleted file mode 100644 index 0be9e1d..000 --- a/thunar/sexy-url-label.c +++ /dev/null @@ -1,842 +0,0 @@ -/* - * @file libsexy/sexy-url-label.c URL Label - * - * @Copyright (C) 2007 Benedikt Meurer be...@xfce.org - * @Copyright (C) 2005-2006 Christian Hammond - * - * This library 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. - * - * This 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 - * 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., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - */ - -#ifdef HAVE_CONFIG_H -#include config.h -#endif - -#ifdef HAVE_MEMORY_H -#include memory.h -#endif -#include stdio.h -#ifdef HAVE_STRING_H -#include string.h -#endif - -#include sexy-url-label.h - -#define SEXY_URL_LABEL_GET_PRIVATE(obj) \ - (G_TYPE_INSTANCE_GET_PRIVATE((obj), SEXY_TYPE_URL_LABEL, \ - SexyUrlLabelPrivate)) - -typedef struct -{ - int start; - int end; - const gchar *url; - -} SexyUrlLabelLink; - -typedef struct -{ - GList *links; - GList *urls; - SexyUrlLabelLink *active_link; - GtkWidget *popup_menu; - GdkWindow *event_window; - - int layout_x; - int layout_y; - - size_t wrap_width; - - GString *temp_markup_result; - -} SexyUrlLabelPrivate; - -/* - * NOTE: This *MUST* match the LabelWrapWidth struct in gtklabel.c. - */ -typedef struct -{ - gint width; - PangoFontDescription *font_desc; - -} LabelWrapWidth; - -enum -{ - URL_ACTIVATED, - LAST_SIGNAL -}; - -static void sexy_url_label_finalize(GObject *obj); -static void sexy_url_label_realize(GtkWidget *widget); -static void sexy_url_label_unrealize(GtkWidget *widget); -static void sexy_url_label_map(GtkWidget *widget); -static void sexy_url_label_unmap(GtkWidget *widget); -static void sexy_url_label_size_allocate(GtkWidget *widget, - GtkAllocation *allocation); -static gboolean sexy_url_label_motion_notify_event(GtkWidget *widget, - GdkEventMotion *event); -static gboolean sexy_url_label_leave_notify_event(GtkWidget *widget, - GdkEventCrossing *event); -static gboolean sexy_url_label_button_press_event(GtkWidget *widget, - GdkEventButton *event); - -static void open_link_activate_cb(GtkMenuItem *menu_item, - SexyUrlLabel *url_label); -static void copy_link_activate_cb(GtkMenuItem *menu_item, - SexyUrlLabel *url_label); - -static void sexy_url_label_clear_links(SexyUrlLabel *url_label); -static void