[polari] lib: Drop clipboard helper
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] lib: Drop clipboard helper
- Date: Mon, 23 Feb 2015 01:09:54 +0000 (UTC)
commit c1f91707f7b71a33298e507be71b5d9bb2198819
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Jan 29 19:10:32 2015 +0100
lib: Drop clipboard helper
GTK+ now got its own introspectable helper function.
configure.ac | 2 +-
src/Makefile-lib.am | 2 --
src/chatView.js | 3 +--
src/lib/polari-util.c | 33 ---------------------------------
src/lib/polari-util.h | 26 --------------------------
5 files changed, 2 insertions(+), 64 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index ffadc5a..4b07286 100644
--- a/configure.ac
+++ b/configure.ac
@@ -24,7 +24,7 @@ GLIB_GSETTINGS
PKG_CHECK_MODULES(POLARI,
gio-2.0 >= 2.43.4
gobject-introspection-1.0
- gtk+-3.0 >= 3.13.4
+ gtk+-3.0 >= 3.15.6
telepathy-glib);
AC_PATH_PROG([GJS_CONSOLE],[gjs-console],[no])
diff --git a/src/Makefile-lib.am b/src/Makefile-lib.am
index ae7f99b..466b9c2 100644
--- a/src/Makefile-lib.am
+++ b/src/Makefile-lib.am
@@ -4,14 +4,12 @@ libpolari_headers = \
lib/polari-drag-helper.h \
lib/polari-fixed-size-frame.h \
lib/polari-room.h \
- lib/polari-util.h \
$(NULL)
libpolari_sources = \
lib/polari-drag-helper.c \
lib/polari-fixed-size-frame.c \
lib/polari-room.c \
- lib/polari-util.c \
$(NULL)
libpolari_1_0_la_SOURCES = $(libpolari_headers) $(libpolari_sources)
diff --git a/src/chatView.js b/src/chatView.js
index b53a648..9170e87 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -3,7 +3,6 @@ const GLib = imports.gi.GLib;
const Gio = imports.gi.Gio;
const Gtk = imports.gi.Gtk;
const Pango = imports.gi.Pango;
-const Polari = imports.gi.Polari;
const Tp = imports.gi.TelepathyGLib;
const Tpl = imports.gi.TelepathyLogger;
@@ -420,7 +419,7 @@ const ChatView = new Lang.Class({
item = new Gtk.MenuItem({ label: _("Copy Link Address") });
item.connect('activate',
function() {
- let clipboard = Polari.util_get_clipboard_for_widget(item);
+ let clipboard = Gtk.Clipboard.get_default(item.get_display());
clipboard.set_text(url, -1);
});
menu.append(item);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]