[ease/plugins] Drop libsexy dependency.
- From: Stéphane Maniaci <maniacis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ease/plugins] Drop libsexy dependency.
- Date: Sat, 19 Jun 2010 02:35:34 +0000 (UTC)
commit b332f0713acc42f6da8ec2d9e8ffd5ae04d6aa6a
Author: Stéphane Maniaci <stephane maniaci gmail com>
Date: Sat Jun 19 04:15:56 2010 +0200
Drop libsexy dependency.
plugins/Makefile | 2 +-
src/ease-plugin-import-dialog.vala | 9 +++++----
2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/plugins/Makefile b/plugins/Makefile
index 5bdfb63..9d3afd1 100644
--- a/plugins/Makefile
+++ b/plugins/Makefile
@@ -1,5 +1,5 @@
CFLAGS = --pkg gtk+-2.0 --pkg gmodule-2.0 --pkg json-glib-1.0 --pkg rest-extras-0.6
-OCAFLAGS = --pkg gtk+-2.0 --pkg libsexy --pkg rest-extras-0.6 --pkg libxml-2.0 --pkg gee-1.0 -o openclipart
+OCAFLAGS = --pkg gtk+-2.0 --pkg rest-extras-0.6 --pkg libxml-2.0 --pkg gee-1.0 -o openclipart
flickr:flickr.vala
valac $(CFLAGS) flickr.vala
diff --git a/src/ease-plugin-import-dialog.vala b/src/ease-plugin-import-dialog.vala
index b1c7a24..e1b6d82 100644
--- a/src/ease-plugin-import-dialog.vala
+++ b/src/ease-plugin-import-dialog.vala
@@ -40,7 +40,7 @@ public abstract class Ease.PluginImportDialog : Gtk.Dialog
/**
* Search field.
*/
- protected Sexy.IconEntry search;
+ protected Gtk.Entry search;
/**
* Search button.
@@ -110,8 +110,9 @@ public abstract class Ease.PluginImportDialog : Gtk.Dialog
public PluginImportDialog()
{
// search field
- search = new Sexy.IconEntry();
- search.add_clear_button();
+ search = new Gtk.Entry();
+ search.set_icon_from_icon_name(Gtk.EntryIconPosition.SECONDARY, "gtk-clear");
+ search.icon_press.connect ( () => { search.text = ""; });
// search button
button = new Gtk.Button.from_stock("gtk-find");
@@ -163,7 +164,7 @@ public abstract class Ease.PluginImportDialog : Gtk.Dialog
main_vbox.pack_start(hbox, false, false, 0);
(get_content_area() as Gtk.Box).pack_start(main_vbox, true, true, 0);
}
-
+
/**
* Subclasses must override this function to parse the data returned from
* their Rest.ProxyCall.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]