Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=b73d2b0c6520716e5b8a536c0c661704fea10a36
commit b73d2b0c6520716e5b8a536c0c661704fea10a36 Author: DeX77 <[email protected]> Date: Thu Oct 1 11:06:30 2015 +0200 cinnamon-2.6.9-1-x86_64 - remove cinnamon diff --git a/source/gnome-extra/cinnamon/FrugalBuild b/source/gnome-extra/cinnamon/FrugalBuild deleted file mode 100644 index e59aeaa..0000000 --- a/source/gnome-extra/cinnamon/FrugalBuild +++ /dev/null @@ -1,49 +0,0 @@ -# Compiling time: 0.54 SBU -# Maintainer: Marius Cirsta , <[email protected]> -# Contributor: Roelof Wobben <[email protected]> - -USE_FRUGALTHEME=${USE_FRUGALTHEME:-"y"} - -options+=('asneeded') - -pkgname=cinnamon -pkgver=2.0.14 -pkgrel=4 -pkgdesc="Linux desktop which provides advanced innovative features and a traditional user experience" -url="http://cinnamon.linuxmint.com/" -depends=('dbus-glib' 'gtk+3' 'muffin>=2.0.5-3' 'cjs' 'gnome-menus' 'gconf' 'gdk-pixbuf2' 'libsoup>=2.44.2-2' 'clutter' \ - 'startup-notification>=0.12' 'libcanberra' 'polkit' 'networkmanager' 'libgnome-keyring>=3.10.1-2' 'pulseaudio>=5.0') -makedepends=('intltool' 'gnome-doc-utils' 'gobject-introspection>=1.36.0' 'gnome-common') -if Fuse $USE_FRUGALTHEME; then - rodepends=("${rodepends[@]}" "cinnamon-frugalware-theme") -else - replaces=("${replaces[@]}" "cinnamon-frugalware-theme") - provides=("${provides[@]}" "cinnamon-frugalware-theme") - removes=("${removes[@]}" "/usr/share/cinnamon/theme") -fi -groups=('gnome-extra' 'cinnamon') -archs=('i686' 'x86_64') -_F_gnome_glib=y -_F_gnome_iconcache=y -Finclude cinnamon gnome-scriptlet -source=(${source[@]} keyboard_applet.patch input-keybindings.patch cinnamon-gstreamer1.patch gtk3-lock-dialog.patch) -Fconfopts+="--disable-schemas-compile --enable-compile-warnings=yes --with-session-tracking=systemd" -sha1sums=('c2a14f13139cbb81942647b59f74d0f280ce9328' \ - '40648505d422d2278e926a8b374a68c2ccd40c17' \ - '743d88b665ac5f8f4775e7556e04b4cbc0a16b65' \ - 'de482b5c9f71bc1c56339754be71dd6a8b1467e3' \ - '34595588335d2d9a4c83f05abd3ec0f5220145e5') - -build() -{ - Fcd Cinnamon-2.0.14 - Fbuild - if Fuse $USE_FRUGALTHEME; then - #we use our cinnamon theme - Fmv usr/share/cinnamon/theme usr/share/cinnamon/cinnamon-theme - Fln /usr/share/cinnamon/frugalware-theme /usr/share/cinnamon/theme - fi - Fbuild_gnome_scriptlet -} - -# optimization OK diff --git a/source/gnome-extra/cinnamon/cinnamon-gstreamer1.patch b/source/gnome-extra/cinnamon/cinnamon-gstreamer1.patch deleted file mode 100644 index d617619..0000000 --- a/source/gnome-extra/cinnamon/cinnamon-gstreamer1.patch +++ /dev/null @@ -1,283 +0,0 @@ -diff -ruN a/configure.ac b/configure.ac ---- a/configure.ac 2013-10-16 15:10:22.237511846 +0000 -+++ b/configure.ac 2013-10-16 15:00:45.501321091 +0000 -@@ -44,15 +44,15 @@ - - # We need at least this, since gst_plugin_register_static() was added - # in 0.10.16, but nothing older than 0.10.21 has been tested. --GSTREAMER_MIN_VERSION=0.10.16 -+GSTREAMER_MIN_VERSION=0.11.92 - - recorder_modules= - build_recorder=false - AC_MSG_CHECKING([for GStreamer (needed for recording functionality)]) --if $PKG_CONFIG --exists gstreamer-0.10 '>=' $GSTREAMER_MIN_VERSION ; then -+if $PKG_CONFIG --exists gstreamer-1.0 '>=' $GSTREAMER_MIN_VERSION ; then - AC_MSG_RESULT(yes) - build_recorder=true -- recorder_modules="gstreamer-0.10 gstreamer-base-0.10 x11" -+ recorder_modules="gstreamer-1.0 gstreamer-base-1.0 x11" - PKG_CHECK_MODULES(TEST_CINNAMON_RECORDER, $recorder_modules clutter-1.0 xfixes) - else - AC_MSG_RESULT(no) -diff -ruN a/src/cinnamon-recorder.c b/src/cinnamon-recorder.c ---- a/src/cinnamon-recorder.c 2013-10-16 15:10:22.344177808 +0000 -+++ b/src/cinnamon-recorder.c 2013-10-16 15:26:42.801040167 +0000 -@@ -8,6 +8,7 @@ - #include <string.h> - #include <unistd.h> - -+#define GST_USE_UNSTABLE_API - #include <gst/gst.h> - - #include "cinnamon-recorder-src.h" -@@ -147,7 +148,7 @@ - * (Theora does have some support for frames at non-uniform times, but - * things seem to break down if there are large gaps.) - */ --#define DEFAULT_PIPELINE "videorate ! vp8enc quality=10 speed=2 threads=%T ! queue ! webmmux" -+#define DEFAULT_PIPELINE "vp8enc min_quantizer=13 max_quantizer=13 cpu-used=5 deadline=1000000 threads=%T ! queue ! webmmux" - - /* The default filename pattern. Example cinnamon-20090311b-2.webm - */ -@@ -446,6 +447,7 @@ - recorder_draw_cursor (CinnamonRecorder *recorder, - GstBuffer *buffer) - { -+ GstMapInfo info; - cairo_surface_t *surface; - cairo_t *cr; - -@@ -464,7 +466,8 @@ - if (!recorder->cursor_image) - return; - -- surface = cairo_image_surface_create_for_data (GST_BUFFER_DATA(buffer), -+ gst_buffer_map (buffer, &info, GST_MAP_WRITE); -+ surface = cairo_image_surface_create_for_data (info.data, - CAIRO_FORMAT_ARGB32, - recorder->stage_width, - recorder->stage_height, -@@ -479,6 +482,7 @@ - - cairo_destroy (cr); - cairo_surface_destroy (surface); -+ gst_buffer_unmap (buffer, &info); - } - - /* Draw an overlay indicating how much of the target memory is used -@@ -541,10 +545,11 @@ - data = g_malloc (size); - - buffer = gst_buffer_new(); -- GST_BUFFER_SIZE(buffer) = size; -- GST_BUFFER_MALLOCDATA(buffer) = GST_BUFFER_DATA(buffer) = data; -+ gst_buffer_insert_memory (buffer, -1, -+ gst_memory_new_wrapped (0, data, size, 0, -+ size, data, g_free)); - -- GST_BUFFER_TIMESTAMP(buffer) = get_wall_time() - recorder->start_time; -+ GST_BUFFER_PTS(buffer) = get_wall_time() - recorder->start_time; - - cogl_read_pixels (0, 0, - recorder->stage_width, recorder->stage_height, -@@ -1042,23 +1047,18 @@ - { - GstCaps *caps; - -- /* The data is always native-endian xRGB; ffmpegcolorspace -+ /* The data is always native-endian xRGB; videoconvert - * doesn't support little-endian xRGB, but does support - * big-endian BGRx. - */ -- caps = gst_caps_new_simple ("video/x-raw-rgb", -- "bpp", G_TYPE_INT, 32, -- "depth", G_TYPE_INT, 24, -+ caps = gst_caps_new_simple ("video/x-raw", - #if G_BYTE_ORDER == G_LITTLE_ENDIAN -- "red_mask", G_TYPE_INT, 0x0000ff00, -- "green_mask", G_TYPE_INT, 0x00ff0000, -- "blue_mask", G_TYPE_INT, 0xff000000, -+ "format", G_TYPE_STRING, "BGRx", - #else -- "red_mask", G_TYPE_INT, 0xff0000, -- "green_mask", G_TYPE_INT, 0x00ff00, -- "blue_mask", G_TYPE_INT, 0x0000ff, -+ "format", G_TYPE_STRING, "xRGB", - #endif -- "endianness", G_TYPE_INT, G_BIG_ENDIAN, -+ "bpp", G_TYPE_INT, 32, -+ "depth", G_TYPE_INT, 24, - "framerate", GST_TYPE_FRACTION, pipeline->recorder->framerate, 1, - "width", G_TYPE_INT, pipeline->recorder->stage_width, - "height", G_TYPE_INT, pipeline->recorder->stage_height, -@@ -1076,7 +1076,7 @@ - { - GstPad *sink_pad = NULL, *src_pad = NULL; - gboolean result = FALSE; -- GstElement *ffmpegcolorspace; -+ GstElement *videoconvert; - - sink_pad = gst_bin_find_unlinked_pad (GST_BIN (pipeline->pipeline), GST_PAD_SINK); - if (sink_pad == NULL) -@@ -1095,19 +1095,19 @@ - - recorder_pipeline_set_caps (pipeline); - -- /* The ffmpegcolorspace element is a generic converter; it will convert -+ /* The videoconvert element is a generic converter; it will convert - * our supplied fixed format data into whatever the encoder wants - */ -- ffmpegcolorspace = gst_element_factory_make ("ffmpegcolorspace", NULL); -- if (!ffmpegcolorspace) -+ videoconvert = gst_element_factory_make ("videoconvert", NULL); -+ if (!videoconvert) - { -- g_warning("Can't create ffmpegcolorspace element"); -+ g_warning("Can't create videoconvert element"); - goto out; - } -- gst_bin_add (GST_BIN (pipeline->pipeline), ffmpegcolorspace); -+ gst_bin_add (GST_BIN (pipeline->pipeline), videoconvert); - -- gst_element_link_many (pipeline->src, ffmpegcolorspace, NULL); -- src_pad = gst_element_get_static_pad (ffmpegcolorspace, "src"); -+ gst_element_link_many (pipeline->src, videoconvert, NULL); -+ src_pad = gst_element_get_static_pad (videoconvert, "src"); - - if (!src_pad) - { -@@ -1637,7 +1637,7 @@ - * might be used to send the output to an icecast server - * via shout2send or similar. - * -- * The default value is 'videorate ! theoraenc ! oggmux' -+ * The default value is 'vp8enc min_quantizer=13 max_quantizer=13 cpu-used=5 deadline=1000000 threads=%T ! queue ! webmmux' - */ - void - cinnamon_recorder_set_pipeline (CinnamonRecorder *recorder, -diff -ruN a/src/cinnamon-recorder-src.c b/src/cinnamon-recorder-src.c ---- a/src/cinnamon-recorder-src.c 2013-10-16 15:10:22.347511119 +0000 -+++ b/src/cinnamon-recorder-src.c 2013-10-16 15:33:41.581609206 +0000 -@@ -2,6 +2,7 @@ - - #include "config.h" - -+#define GST_USE_UNSTABLE_API - #include <gst/base/gstpushsrc.h> - - #include "cinnamon-recorder-src.h" -@@ -12,6 +13,9 @@ - - GMutex *mutex; - -+ GstClock *clock; -+ GstClockTime last_frame_time; -+ - GstCaps *caps; - GAsyncQueue *queue; - gboolean closed; -@@ -33,21 +37,21 @@ - /* Special marker value once the source is closed */ - #define RECORDER_QUEUE_END ((GstBuffer *)1) - --GST_BOILERPLATE(CinnamonRecorderSrc, cinnamon_recorder_src, GstPushSrc, GST_TYPE_PUSH_SRC); -+G_DEFINE_TYPE(CinnamonRecorderSrc, cinnamon_recorder_src, GST_TYPE_PUSH_SRC); - - static void --cinnamon_recorder_src_init (CinnamonRecorderSrc *src, -- CinnamonRecorderSrcClass *klass) -+cinnamon_recorder_src_init (CinnamonRecorderSrc *src) - { -+ gst_base_src_set_format (GST_BASE_SRC (src), GST_FORMAT_TIME); -+ gst_base_src_set_live (GST_BASE_SRC (src), TRUE); -+ -+ src->clock = gst_system_clock_obtain (); -+ src->last_frame_time = 0; -+ - src->queue = g_async_queue_new (); - src->mutex = g_mutex_new (); - } - --static void --cinnamon_recorder_src_base_init (gpointer klass) --{ --} -- - static gboolean - cinnamon_recorder_src_memory_used_update_idle (gpointer data) - { -@@ -87,21 +91,28 @@ - GstBuffer *buffer; - - if (src->closed) -- return GST_FLOW_UNEXPECTED; -+ return GST_FLOW_EOS; - - buffer = g_async_queue_pop (src->queue); -+ if (src->last_frame_time == 0) -+ src->last_frame_time = gst_clock_get_time (GST_CLOCK (src->clock)); -+ - if (buffer == RECORDER_QUEUE_END) - { - /* Returning UNEXPECTED here will cause a EOS message to be sent */ - src->closed = TRUE; -- return GST_FLOW_UNEXPECTED; -+ return GST_FLOW_EOS; - } - - cinnamon_recorder_src_update_memory_used (src, -- - (int)(GST_BUFFER_SIZE(buffer) / 1024)); -+ - (int)(gst_buffer_get_size(buffer) / 1024)); - - *buffer_out = buffer; - -+ GST_BUFFER_DURATION(*buffer_out) = GST_CLOCK_DIFF (src->last_frame_time, gst_clock_get_time (GST_CLOCK (src->clock))); -+ -+ src->last_frame_time = gst_clock_get_time (GST_CLOCK (src->clock)); -+ - return GST_FLOW_OK; - } - -@@ -142,7 +153,9 @@ - - g_mutex_free (src->mutex); - -- G_OBJECT_CLASS (parent_class)->finalize (object); -+ gst_object_unref (src->clock); -+ -+ G_OBJECT_CLASS (cinnamon_recorder_src_parent_class)->finalize (object); - } - - static void -@@ -246,9 +259,9 @@ - g_return_if_fail (CINNAMON_IS_RECORDER_SRC (src)); - g_return_if_fail (src->caps != NULL); - -- gst_buffer_set_caps (buffer, src->caps); -+ gst_base_src_set_caps (GST_BASE_SRC (src), src->caps); - cinnamon_recorder_src_update_memory_used (src, -- (int) (GST_BUFFER_SIZE(buffer) / 1024)); -+ (int)(gst_buffer_get_size(buffer) / 1024)); - - g_async_queue_push (src->queue, gst_buffer_ref (buffer)); - } -diff -ruN a/src/test-recorder.c b/src/test-recorder.c ---- a/src/test-recorder.c 2013-10-16 15:10:22.240845159 +0000 -+++ b/src/test-recorder.c 2013-10-16 15:48:03.685915756 +0000 -@@ -1,5 +1,6 @@ - /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ - -+#define GST_USE_UNSTABLE_API - #include "cinnamon-recorder.h" - #include <clutter/clutter.h> - #include <gst/gst.h> -@@ -29,7 +30,6 @@ - ClutterAnimation *animation; - ClutterColor red, green, blue; - -- g_thread_init (NULL); - gst_init (&argc, &argv); - if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS) - return 1; - diff --git a/source/gnome-extra/cinnamon/gtk3-lock-dialog.patch b/source/gnome-extra/cinnamon/gtk3-lock-dialog.patch deleted file mode 100644 index 3a0bae8..0000000 --- a/source/gnome-extra/cinnamon/gtk3-lock-dialog.patch +++ /dev/null @@ -1,419 +0,0 @@ -commit 7bb5af86b404d3e89f92019dba224e6fe258f7ea -Author: Balló György <[email protected]> -Date: Sun Jan 5 16:54:41 2014 +0100 - - Port Lock screen dialog to GTK+ 3 - -diff --git a/files/usr/lib/cinnamon-screensaver-lock-dialog/cinnamon-screensaver-lock-dialog.glade b/files/usr/lib/cinnamon-screensaver-lock-dialog/cinnamon-screensaver-lock-dialog.glade -deleted file mode 100644 -index a4200f9..0000000 ---- a/files/usr/lib/cinnamon-screensaver-lock-dialog/cinnamon-screensaver-lock-dialog.glade -+++ /dev/null -@@ -1,165 +0,0 @@ --<?xml version="1.0" encoding="UTF-8"?> --<glade-interface> -- <!-- interface-requires gtk+ 2.24 --> -- <!-- interface-naming-policy project-wide --> -- <widget class="GtkDialog" id="main_dialog"> -- <property name="can_focus">False</property> -- <property name="border_width">6</property> -- <property name="type_hint">dialog</property> -- <child internal-child="vbox"> -- <widget class="GtkVBox" id="dialog-vbox1"> -- <property name="visible">True</property> -- <property name="can_focus">False</property> -- <property name="spacing">6</property> -- <child internal-child="action_area"> -- <widget class="GtkHButtonBox" id="dialog-action_area1"> -- <property name="visible">True</property> -- <property name="can_focus">False</property> -- <property name="layout_style">end</property> -- <child> -- <widget class="GtkButton" id="button_cancel"> -- <property name="label">gtk-cancel</property> -- <property name="visible">True</property> -- <property name="can_focus">True</property> -- <property name="receives_default">True</property> -- <property name="use_action_appearance">False</property> -- <property name="use_stock">True</property> -- </widget> -- <packing> -- <property name="expand">False</property> -- <property name="fill">False</property> -- <property name="position">0</property> -- </packing> -- </child> -- <child> -- <widget class="GtkButton" id="button_ok"> -- <property name="label">gtk-ok</property> -- <property name="visible">True</property> -- <property name="can_focus">True</property> -- <property name="receives_default">True</property> -- <property name="use_action_appearance">False</property> -- <property name="use_stock">True</property> -- </widget> -- <packing> -- <property name="expand">False</property> -- <property name="fill">False</property> -- <property name="position">1</property> -- </packing> -- </child> -- </widget> -- <packing> -- <property name="expand">False</property> -- <property name="fill">True</property> -- <property name="padding">3</property> -- <property name="pack_type">end</property> -- <property name="position">0</property> -- </packing> -- </child> -- <child> -- <widget class="GtkImage" id="image_face"> -- <property name="visible">True</property> -- <property name="can_focus">False</property> -- <property name="stock">gtk-missing-image</property> -- </widget> -- <packing> -- <property name="expand">False</property> -- <property name="fill">True</property> -- <property name="padding">3</property> -- <property name="position">1</property> -- </packing> -- </child> -- <child> -- <widget class="GtkLabel" id="label_description"> -- <property name="visible">True</property> -- <property name="can_focus">False</property> -- <property name="label" translatable="yes">label</property> -- </widget> -- <packing> -- <property name="expand">False</property> -- <property name="fill">True</property> -- <property name="padding">3</property> -- <property name="position">2</property> -- </packing> -- </child> -- <child> -- <widget class="GtkHBox" id="hbox1"> -- <property name="visible">True</property> -- <property name="can_focus">False</property> -- <child> -- <widget class="GtkLabel" id="label_away_message"> -- <property name="visible">True</property> -- <property name="can_focus">False</property> -- <property name="label" translatable="yes">label</property> -- </widget> -- <packing> -- <property name="expand">False</property> -- <property name="fill">True</property> -- <property name="position">0</property> -- </packing> -- </child> -- <child> -- <widget class="GtkHBox" id="hbox3"> -- <property name="visible">True</property> -- <property name="can_focus">False</property> -- <child> -- <widget class="GtkLabel" id="label1"> -- <property name="visible">True</property> -- <property name="can_focus">False</property> -- <property name="label" translatable="yes"><b>"</b></property> -- <property name="use_markup">True</property> -- </widget> -- <packing> -- <property name="expand">False</property> -- <property name="fill">True</property> -- <property name="position">0</property> -- </packing> -- </child> -- <child> -- <widget class="GtkEntry" id="entry_away_message"> -- <property name="visible">True</property> -- <property name="can_focus">True</property> -- <property name="invisible_char">â</property> -- <property name="invisible_char_set">True</property> -- <property name="primary_icon_activatable">False</property> -- <property name="secondary_icon_activatable">False</property> -- <property name="primary_icon_sensitive">True</property> -- <property name="secondary_icon_sensitive">True</property> -- </widget> -- <packing> -- <property name="expand">True</property> -- <property name="fill">True</property> -- <property name="position">1</property> -- </packing> -- </child> -- <child> -- <widget class="GtkLabel" id="label2"> -- <property name="visible">True</property> -- <property name="can_focus">False</property> -- <property name="label" translatable="yes"><b>"</b></property> -- <property name="use_markup">True</property> -- </widget> -- <packing> -- <property name="expand">False</property> -- <property name="fill">True</property> -- <property name="position">2</property> -- </packing> -- </child> -- </widget> -- <packing> -- <property name="expand">True</property> -- <property name="fill">True</property> -- <property name="position">1</property> -- </packing> -- </child> -- </widget> -- <packing> -- <property name="expand">True</property> -- <property name="fill">True</property> -- <property name="padding">3</property> -- <property name="position">3</property> -- </packing> -- </child> -- </widget> -- </child> -- </widget> --</glade-interface> -diff --git a/files/usr/lib/cinnamon-screensaver-lock-dialog/cinnamon-screensaver-lock-dialog.py b/files/usr/lib/cinnamon-screensaver-lock-dialog/cinnamon-screensaver-lock-dialog.py -index f6f3ad1..72cdf4f 100755 ---- a/files/usr/lib/cinnamon-screensaver-lock-dialog/cinnamon-screensaver-lock-dialog.py -+++ b/files/usr/lib/cinnamon-screensaver-lock-dialog/cinnamon-screensaver-lock-dialog.py -@@ -3,8 +3,7 @@ - import sys - import os - import gettext --import gtk --import gtk.glade -+from gi.repository import Gtk - import pwd - import socket - -@@ -25,32 +24,32 @@ class MainWindow: - if real_name == "": - real_name = username - -- gladefile = "/usr/lib/cinnamon-screensaver-lock-dialog/cinnamon-screensaver-lock-dialog.glade" -- self.wTree = gtk.glade.XML(gladefile, "main_dialog") -+ self.builder = Gtk.Builder() -+ self.builder.add_from_file("/usr/lib/cinnamon-screensaver-lock-dialog/cinnamon-screensaver-lock-dialog.ui") - -- self.window = self.wTree.get_widget("main_dialog") -- self.button_cancel = self.wTree.get_widget("button_cancel") -- self.button_ok = self.wTree.get_widget("button_ok") -- self.entry = self.wTree.get_widget("entry_away_message") -- self.image = self.wTree.get_widget("image_face") -+ self.window = self.builder.get_object("main_dialog") -+ self.button_cancel = self.builder.get_object("button_cancel") -+ self.button_ok = self.builder.get_object("button_ok") -+ self.entry = self.builder.get_object("entry_away_message") -+ self.image = self.builder.get_object("image_face") - - self.window.set_title(_("Lock screen")) - self.window.set_icon_from_file("/usr/lib/cinnamon-settings/data/icons/screensaver.svg") - -- self.wTree.get_widget("label_description").set_markup("<i>%s</i>" % _("Please type an away message for the lock screen")) -- self.wTree.get_widget("label_away_message").set_markup("<b>%s: </b>" % real_name) -+ self.builder.get_object("label_description").set_markup("<i>%s</i>" % _("Please type an away message for the lock screen")) -+ self.builder.get_object("label_away_message").set_markup("<b>%s: </b>" % real_name) - - if os.path.exists("%s/.face" % home_dir): - self.image.set_from_file("%s/.face" % home_dir) - else: - self.image.set_from_file("/usr/share/pixmaps/nobody.png") - -- self.window.connect("destroy", gtk.main_quit) -- self.button_cancel.connect("clicked", gtk.main_quit) -+ self.window.connect("destroy", Gtk.main_quit) -+ self.button_cancel.connect("clicked", Gtk.main_quit) - self.button_ok.connect('clicked', self.lock_screen) - self.entry.connect('activate', self.lock_screen) - -- self.wTree.get_widget("dialog-action_area1").set_focus_chain((self.button_ok, self.button_cancel)) -+ self.builder.get_object("dialog-action_area1").set_focus_chain((self.button_ok, self.button_cancel)) - - self.window.show() - -@@ -60,8 +59,8 @@ class MainWindow: - os.system("cinnamon-screensaver-command --lock --away-message \"%s\" &" % self.entry.get_text()) - else: - os.system("cinnamon-screensaver-command --lock &") -- gtk.main_quit() -+ Gtk.main_quit() - - if __name__ == "__main__": - MainWindow() -- gtk.main() -+ Gtk.main() -diff --git a/files/usr/lib/cinnamon-screensaver-lock-dialog/cinnamon-screensaver-lock-dialog.ui b/files/usr/lib/cinnamon-screensaver-lock-dialog/cinnamon-screensaver-lock-dialog.ui -new file mode 100644 -index 0000000..30700b9 ---- /dev/null -+++ b/files/usr/lib/cinnamon-screensaver-lock-dialog/cinnamon-screensaver-lock-dialog.ui -@@ -0,0 +1,165 @@ -+<?xml version="1.0"?> -+<interface> -+ <!-- interface-requires gtk+ 2.24 --> -+ <!-- interface-naming-policy project-wide --> -+ <object class="GtkDialog" id="main_dialog"> -+ <property name="can_focus">False</property> -+ <property name="border_width">6</property> -+ <property name="type_hint">dialog</property> -+ <child internal-child="vbox"> -+ <object class="GtkVBox" id="dialog-vbox1"> -+ <property name="visible">True</property> -+ <property name="can_focus">False</property> -+ <property name="spacing">6</property> -+ <child internal-child="action_area"> -+ <object class="GtkHButtonBox" id="dialog-action_area1"> -+ <property name="visible">True</property> -+ <property name="can_focus">False</property> -+ <property name="layout_style">end</property> -+ <child> -+ <object class="GtkButton" id="button_cancel"> -+ <property name="label">gtk-cancel</property> -+ <property name="visible">True</property> -+ <property name="can_focus">True</property> -+ <property name="receives_default">True</property> -+ <property name="use_action_appearance">False</property> -+ <property name="use_stock">True</property> -+ </object> -+ <packing> -+ <property name="expand">False</property> -+ <property name="fill">False</property> -+ <property name="position">0</property> -+ </packing> -+ </child> -+ <child> -+ <object class="GtkButton" id="button_ok"> -+ <property name="label">gtk-ok</property> -+ <property name="visible">True</property> -+ <property name="can_focus">True</property> -+ <property name="receives_default">True</property> -+ <property name="use_action_appearance">False</property> -+ <property name="use_stock">True</property> -+ </object> -+ <packing> -+ <property name="expand">False</property> -+ <property name="fill">False</property> -+ <property name="position">1</property> -+ </packing> -+ </child> -+ </object> -+ <packing> -+ <property name="expand">False</property> -+ <property name="fill">True</property> -+ <property name="padding">3</property> -+ <property name="pack_type">end</property> -+ <property name="position">0</property> -+ </packing> -+ </child> -+ <child> -+ <object class="GtkImage" id="image_face"> -+ <property name="visible">True</property> -+ <property name="can_focus">False</property> -+ <property name="stock">gtk-missing-image</property> -+ </object> -+ <packing> -+ <property name="expand">False</property> -+ <property name="fill">True</property> -+ <property name="padding">3</property> -+ <property name="position">1</property> -+ </packing> -+ </child> -+ <child> -+ <object class="GtkLabel" id="label_description"> -+ <property name="visible">True</property> -+ <property name="can_focus">False</property> -+ <property name="label" translatable="yes">label</property> -+ </object> -+ <packing> -+ <property name="expand">False</property> -+ <property name="fill">True</property> -+ <property name="padding">3</property> -+ <property name="position">2</property> -+ </packing> -+ </child> -+ <child> -+ <object class="GtkHBox" id="hbox1"> -+ <property name="visible">True</property> -+ <property name="can_focus">False</property> -+ <child> -+ <object class="GtkLabel" id="label_away_message"> -+ <property name="visible">True</property> -+ <property name="can_focus">False</property> -+ <property name="label" translatable="yes">label</property> -+ </object> -+ <packing> -+ <property name="expand">False</property> -+ <property name="fill">True</property> -+ <property name="position">0</property> -+ </packing> -+ </child> -+ <child> -+ <object class="GtkHBox" id="hbox3"> -+ <property name="visible">True</property> -+ <property name="can_focus">False</property> -+ <child> -+ <object class="GtkLabel" id="label1"> -+ <property name="visible">True</property> -+ <property name="can_focus">False</property> -+ <property name="label" translatable="yes"><b>"</b></property> -+ <property name="use_markup">True</property> -+ </object> -+ <packing> -+ <property name="expand">False</property> -+ <property name="fill">True</property> -+ <property name="position">0</property> -+ </packing> -+ </child> -+ <child> -+ <object class="GtkEntry" id="entry_away_message"> -+ <property name="visible">True</property> -+ <property name="can_focus">True</property> -+ <property name="invisible_char">●</property> -+ <property name="invisible_char_set">True</property> -+ <property name="primary_icon_activatable">False</property> -+ <property name="secondary_icon_activatable">False</property> -+ <property name="primary_icon_sensitive">True</property> -+ <property name="secondary_icon_sensitive">True</property> -+ </object> -+ <packing> -+ <property name="expand">True</property> -+ <property name="fill">True</property> -+ <property name="position">1</property> -+ </packing> -+ </child> -+ <child> -+ <object class="GtkLabel" id="label2"> -+ <property name="visible">True</property> -+ <property name="can_focus">False</property> -+ <property name="label" translatable="yes"><b>"</b></property> -+ <property name="use_markup">True</property> -+ </object> -+ <packing> -+ <property name="expand">False</property> -+ <property name="fill">True</property> -+ <property name="position">2</property> -+ </packing> -+ </child> -+ </object> -+ <packing> -+ <property name="expand">True</property> -+ <property name="fill">True</property> -+ <property name="position">1</property> -+ </packing> -+ </child> -+ </object> -+ <packing> -+ <property name="expand">True</property> -+ <property name="fill">True</property> -+ <property name="padding">3</property> -+ <property name="position">3</property> -+ </packing> -+ </child> -+ </object> -+ </child> -+ </object> -+</interface> - diff --git a/source/gnome-extra/cinnamon/input-keybindings.patch b/source/gnome-extra/cinnamon/input-keybindings.patch deleted file mode 100644 index 2e7a4cd..0000000 --- a/source/gnome-extra/cinnamon/input-keybindings.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/files/usr/lib/cinnamon-settings/modules/cs_keyboard.py -+++ b/files/usr/lib/cinnamon-settings/modules/cs_keyboard.py -@@ -119,6 +119,8 @@ KEYBINDINGS = [ - [_("Log out"), MEDIA_KEYS_SCHEMA, "logout", False, "system"], - [_("Lock screen"), MEDIA_KEYS_SCHEMA, "screensaver", False, "system"], - [_("Toggle recording desktop (must restart Cinnamon)"), MUFFIN_KEYBINDINGS_SCHEMA, "toggle-recording", True, "system"], -+ [_("Switch to next source"), MEDIA_KEYS_SCHEMA, "switch-input-source", False, "system"], -+ [_("Switch to previous source"), MEDIA_KEYS_SCHEMA, "switch-input-source-backward", False, "system"], - - # Launchers - [_("Launch help browser"), MEDIA_KEYS_SCHEMA, "help", False, "launchers"], diff --git a/source/gnome-extra/cinnamon/keyboard_applet.patch b/source/gnome-extra/cinnamon/keyboard_applet.patch deleted file mode 100644 index 059ec40..0000000 --- a/source/gnome-extra/cinnamon/keyboard_applet.patch +++ /dev/null @@ -1,134 +0,0 @@ ---- a/files/usr/share/cinnamon/applets/[email protected]/applet.js -+++ b/files/usr/share/cinnamon/applets/[email protected]/applet.js -@@ -1,9 +1,10 @@ - const Applet = imports.ui.applet; --const Gkbd = imports.gi.Gkbd; - const Lang = imports.lang; --const Cinnamon = imports.gi.Cinnamon; -+const Gio = imports.gi.Gio; -+const GLib = imports.gi.GLib; - const St = imports.gi.St; - const Gtk = imports.gi.Gtk; -+const CinnamonDesktop = imports.gi.CinnamonDesktop; - const Main = imports.ui.main; - const PopupMenu = imports.ui.popupMenu; - const Util = imports.misc.util; -@@ -16,11 +17,12 @@ function LayoutMenuItem() { - LayoutMenuItem.prototype = { - __proto__: PopupMenu.PopupBaseMenuItem.prototype, - -- _init: function(config, id, indicator, long_name) { -+ _init: function(ipsettings, id, index, indicator, long_name) { - PopupMenu.PopupBaseMenuItem.prototype._init.call(this); - -- this._config = config; -+ this._ipsettings = ipsettings; - this._id = id; -+ this._index = index; - this.label = new St.Label({ text: long_name }); - this.indicator = indicator; - this.addActor(this.label); -@@ -29,7 +31,7 @@ LayoutMenuItem.prototype = { - - activate: function(event) { - PopupMenu.PopupBaseMenuItem.prototype.activate.call(this); -- this._config.lock_group(this._id); -+ this._ipsettings.set_value('current', GLib.Variant.new_uint32(this._index)); - } - }; - -@@ -62,18 +64,18 @@ MyApplet.prototype = { - this._syncConfig, - null); - -- this._config = Gkbd.Configuration.get(); -- this._config.connect('changed', Lang.bind(this, this._syncConfig)); -- this._config.connect('group-changed', Lang.bind(this, this._syncGroup)); -+ this._xkbInfo = new CinnamonDesktop.XkbInfo(); -+ this._ipsettings = new Gio.Settings({ schema: 'org.cinnamon.desktop.input-sources' }); -+ this._ipsettings.connect('changed::sources', Lang.bind(this, this._syncConfig)); -+ this._ipsettings.connect('changed::current', Lang.bind(this, this._syncGroup)); - -- this._config.start_listen(); - - this._syncConfig(); - - this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem()); - this.menu.addAction(_("Show Keyboard Layout"), Lang.bind(this, function() { - Main.overview.hide(); -- Util.spawn(['gkbd-keyboard-display', '-g', String(this._config.get_current_group() + 1)]); -+ Util.spawn(['gkbd-keyboard-display', '-l', this._selectedLayout._id]); - })); - this.menu.addAction(_("Show Character Table"), Lang.bind(this, function() { - Main.overview.hide(); -@@ -113,8 +115,8 @@ MyApplet.prototype = { - }, - - _syncConfig: function() { -- let groups = this._config.get_group_names(); -- if (groups.length > 1) { -+ let sources = this._ipsettings.get_value('sources'); -+ if (sources.n_children() > 1) { - this.actor.show(); - } else { - this.menu.close(); -@@ -127,25 +129,30 @@ MyApplet.prototype = { - for (let i = 0; i < this._labelActors.length; i++) - this._labelActors[i].destroy(); - -- let short_names = this._adjustGroupNames(this._config.get_short_group_names()); - - this._selectedLayout = null; - this._layoutItems = [ ]; - this._labelActors = [ ]; -- for (let i = 0; i < groups.length; i++) { -- let icon_name = this._config.get_group_name(i); -+ for (let i = 0; i < sources.n_children(); i++) { -+ let [type, id] = sources.get_child_value(i).deep_unpack(); -+ let displayName = id; -+ let shortName = id; -+ let xkbLayout = id; -+ if (type == 'xkb') { -+ [_exists, displayName, shortName, xkbLayout, _xkbVariant] = this._xkbInfo.get_layout_info(id); -+ } // TODO: errorhandling, handle 'ibus' -+ let icon_name = xkbLayout; // FIXME: Really? - let actor; - if (this._showFlags) - actor = new St.Icon({ icon_name: icon_name, icon_type: St.IconType.FULLCOLOR, style_class: 'popup-menu-icon' }); - else -- actor = new St.Label({ text: short_names[i] }); -- let item = new LayoutMenuItem(this._config, i, actor, groups[i]); -- item._short_group_name = short_names[i]; -+ actor = new St.Label({ text: shortName }); -+ let item = new LayoutMenuItem(this._ipsettings, id, i, actor, displayName); - item._icon_name = icon_name; - this._layoutItems.push(item); - this.menu.addMenuItem(item, i); - -- let shortLabel = new St.Label({ text: short_names[i] }); -+ let shortLabel = new St.Label({ text: shortName }); - this._labelActors.push(shortLabel); - } - -@@ -153,17 +160,17 @@ MyApplet.prototype = { - }, - - _syncGroup: function() { -- let selected = this._config.get_current_group(); -+ let current = this._ipsettings.get_uint('current'); - - if (this._selectedLayout) { - this._selectedLayout.setShowDot(false); - this._selectedLayout = null; - } - -- let item = this._layoutItems[selected]; -+ let item = this._layoutItems[current]; - item.setShowDot(true); - -- let selectedLabel = this._labelActors[selected]; -+ let selectedLabel = this._labelActors[current]; - - if (this._showFlags) { - this.set_applet_icon_name(item._icon_name); -
_______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
