Hello community,

here is the log from the commit of package xfce4-panel-plugin-smartbookmark for 
openSUSE:Factory
checked in at Thu Mar 17 12:06:27 CET 2011.



--------
New Changes file:

--- /dev/null   2010-08-26 16:28:41.000000000 +0200
+++ 
/mounts/work_src_done/STABLE/xfce4-panel-plugin-smartbookmark/xfce4-panel-plugin-smartbookmark.changes
      2011-03-09 22:46:48.000000000 +0100
@@ -0,0 +1,5 @@
+-------------------------------------------------------------------
+Wed Mar  9 11:00:00 UTC 2011 - [email protected]
+
+- new package (split off from xfce4-panel-plugins)
+

calling whatdependson for head-i586


New:
----
  xfce4-panel-plugin-smartbookmark-0.4.2-defaults.patch
  xfce4-panel-plugin-smartbookmark-0.4.2-fix-build-with-4.8.patch
  xfce4-panel-plugin-smartbookmark-0.4.2-fix-focusing-entry-widget.patch
  xfce4-panel-plugin-smartbookmark.changes
  xfce4-panel-plugin-smartbookmark.spec
  xfce4-smartbookmark-plugin-0.4.2.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ xfce4-panel-plugin-smartbookmark.spec ++++++
#
# spec file for package xfce4-panel-plugin-smartbookmark
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define panel_version 4.8.0
%define plugin_name xfce4-smartbookmark-plugin

Name:           xfce4-panel-plugin-smartbookmark
License:        GPLv2+
Version:        0.4.2
Release:        25
Summary:        Smart bookmark plugin for the Xfce panel
Url:            
http://goodies.xfce.org/projects/panel-plugins/xfce4-smartbookmark-plugin
Source0:        xfce4-smartbookmark-plugin-0.4.2.tar.bz2
# PATCH-FIX-UPSTREAM 
xfce4-panel-plugin-smartbookmark-0.4.2-fix-build-with-4.8.patch bxo#6939 
[email protected] -- Fixes linking with libxfcegui4 and the absolute path in 
the desktop file
Patch0:         xfce4-panel-plugin-smartbookmark-0.4.2-fix-build-with-4.8.patch
# PATCH-FIX-UPSTREAM 
xfce4-panel-plugin-smartbookmark-0.4.2-fix-focusing-entry-widget.patch bxo#7256 
[email protected] -- Fixes focusing the entry widget in the panel
Patch1:         
xfce4-panel-plugin-smartbookmark-0.4.2-fix-focusing-entry-widget.patch
# PATCH-FEATURE-OPENSUSE xfce4-panel-plugin-smartbookmark-0.4.2-defaults.patch 
[email protected] -- Replaces Debian defaults and hides the label on to of the 
entry widget by default
Patch2:         xfce4-panel-plugin-smartbookmark-0.4.2-defaults.patch
Group:          System/GUI/XFCE
BuildRequires:  intltool
BuildRequires:  fdupes
BuildRequires:  pkgconfig(libxfce4panel-1.0)
BuildRequires:  xfce4-dev-tools
Requires:       xfce4-panel >= 4.8.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The Smartbookmark plugin follows the smart bookmark concept and allows users to
send requests to websites through default browser.


%prep
%setup -q -n %{plugin_name}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
xdt-autogen
%configure --disable-static
make %{_smp_mflags} V=1

%install
%make_install
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}
%find_lang %{plugin_name} %{name}.lang
%fdupes %{buildroot}%{_datadir}

%clean
rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(-,root,root)
%{_libdir}/xfce4/panel-plugins/libsmartbookmark*
%{_datadir}/xfce4/panel-plugins/smartbookmark.desktop

%changelog
++++++ xfce4-panel-plugin-smartbookmark-0.4.2-defaults.patch ++++++
diff -urNp xfce4-smartbookmark-plugin-0.4.2.orig/src/smartbookmark.c 
xfce4-smartbookmark-plugin-0.4.2/src/smartbookmark.c
--- xfce4-smartbookmark-plugin-0.4.2.orig/src/smartbookmark.c   2011-02-08 
16:07:39.000000000 +0100
+++ xfce4-smartbookmark-plugin-0.4.2/src/smartbookmark.c        2011-02-08 
16:20:12.000000000 +0100
@@ -175,10 +175,10 @@ static t_search *search_new(XfcePanelPlu
     box = gtk_vbox_new(FALSE, 0);
 
     /* default options */
-    search->url = "http://bugs.debian.org/";;
-    search->label_text = "BTS";
+    search->url = "http://bugzilla.novell.com/";;
+    search->label_text = "bnc#";
     search->size = 5;
-    search->hide_label = FALSE;
+    search->hide_label = TRUE;
     /* read config file options */
     filename = xfce_panel_plugin_save_location(plugin, TRUE);
     search_read_config(search, filename);
@@ -247,10 +247,10 @@ static void search_read_config(t_search
     if( (rcfile = xfce_rc_simple_open(filename, TRUE) ))
     {
         xfce_rc_set_group(rcfile, NULL);
-        search->url = 
g_strdup(xfce_rc_read_entry(rcfile,"url","http://bugs.debian.org/";));
-        search->label_text = 
g_strdup(xfce_rc_read_entry(rcfile,"value","DBS"));
+        search->url = 
g_strdup(xfce_rc_read_entry(rcfile,"url","http://bugzilla.novell.com/";));
+        search->label_text = 
g_strdup(xfce_rc_read_entry(rcfile,"value","bnc#"));
         search->size = xfce_rc_read_int_entry(rcfile, "size", 5);
-        search->hide_label = xfce_rc_read_bool_entry(rcfile, "hidelabel", 
FALSE);
+        search->hide_label = xfce_rc_read_bool_entry(rcfile, "hidelabel", 
TRUE);
     }
 }
 
++++++ xfce4-panel-plugin-smartbookmark-0.4.2-fix-build-with-4.8.patch ++++++
diff -ur xfce4-smartbookmark-plugin-0.4.2.orig/configure.ac 
xfce4-smartbookmark-plugin-0.4.2/configure.ac
--- xfce4-smartbookmark-plugin-0.4.2.orig/configure.ac  2006-08-12 
19:41:44.000000000 +0200
+++ xfce4-smartbookmark-plugin-0.4.2/configure.ac       2011-02-04 
00:10:19.000000000 +0100
@@ -25,7 +25,7 @@
 dnl Check for required packages
 XDT_CHECK_LIBX11_REQUIRE()
 XDT_CHECK_PACKAGE([GDK], [gdk-2.0], [2.0])
-XDT_CHECK_PACKAGE([LIBXFCEGUI4], [libxfce4panel-1.0], [4.2])
+XDT_CHECK_PACKAGE([LIBXFCEGUI4], [libxfcegui4-1.0], [4.2])
 XDT_CHECK_PACKAGE([LIBXFCE4PANEL], [libxfce4panel-1.0], [4.3.20])
 
 XDT_FEATURE_DEBUG()
diff -ur xfce4-smartbookmark-plugin-0.4.2.orig/src/smartbookmark.desktop.in.in 
xfce4-smartbookmark-plugin-0.4.2/src/smartbookmark.desktop.in.in
--- xfce4-smartbookmark-plugin-0.4.2.orig/src/smartbookmark.desktop.in.in       
2006-08-12 19:41:44.000000000 +0200
+++ xfce4-smartbookmark-plugin-0.4.2/src/smartbookmark.desktop.in.in    
2011-02-04 00:10:19.000000000 +0100
@@ -4,5 +4,5 @@
 _Name=SmartBookmark
 _Comment=Query websites from the Xfce panel
 Icon=gtk-preferences
-X-XFCE-Module=@INTERNAL_PLUGIN_PATH@/libsmartbookmark.so
+X-XFCE-Module=smartbookmark
 X-XFCE-Unique=false
++++++ xfce4-panel-plugin-smartbookmark-0.4.2-fix-focusing-entry-widget.patch 
++++++
diff -urNp xfce4-smartbookmark-plugin-0.4.2.orig/src/Makefile.am 
xfce4-smartbookmark-plugin-0.4.2/src/Makefile.am
--- xfce4-smartbookmark-plugin-0.4.2.orig/src/Makefile.am       2006-08-12 
19:41:44.000000000 +0200
+++ xfce4-smartbookmark-plugin-0.4.2/src/Makefile.am    2011-02-08 
16:43:29.000000000 +0100
@@ -9,8 +9,7 @@ libsmartbookmark_la_LDFLAGS =                                   
                \
        -module                                         \
        @LIBXFCE4PANEL_LIBS@ \
        @LIBXFCEGUI4_LIBS@      \
-       @GDK_LIBS@      \
-       @LIBX11_LDFLAGS@
+       @GDK_LIBS@
 
 libsmartbookmark_la_SOURCES =                                                  
\
        smartbookmark.c
@@ -21,7 +20,6 @@ libsmartbookmark_la_CFLAGS =   \
        -I$(top_srcdir) \
        @LIBXFCEGUI4_CFLAGS@ \
        @LIBXFCE4PANEL_CFLAGS@ \
-       @LIBX11_CFLAGS@ \
        @GDK_CFLAGS@    \
        -DPACKAGE_LOCALE_DIR=\"$(localedir)\"
 
diff -urNp xfce4-smartbookmark-plugin-0.4.2.orig/src/smartbookmark.c 
xfce4-smartbookmark-plugin-0.4.2/src/smartbookmark.c
--- xfce4-smartbookmark-plugin-0.4.2.orig/src/smartbookmark.c   2006-08-12 
19:41:44.000000000 +0200
+++ xfce4-smartbookmark-plugin-0.4.2/src/smartbookmark.c        2011-02-08 
16:48:24.000000000 +0100
@@ -35,9 +35,6 @@
 #include <config.h>
 #endif
 
-#include <X11/Xlib.h>
-#include <X11/Xatom.h>
-
 #include <gtk/gtk.h>
 #include <gdk/gdkkeysyms.h>
 #include <gdk/gdkx.h>
@@ -133,34 +130,15 @@ static void text_entry_activate_cb(GtkWi
     update_search(search);
 }
 
-static gboolean entry_buttonpress_cb(GtkWidget *entry, GdkEventButton *event, 
gpointer data)
+static gboolean entry_buttonpress_cb(GtkWidget *entry, GdkEventButton *event, 
XfcePanelPlugin *plugin)
 {
-    static Atom atom = 0;
     GtkWidget *toplevel = gtk_widget_get_toplevel (entry);
 
     if (event->button != 3 && toplevel && toplevel->window) {
-        XClientMessageEvent xev;
-
-        if (G_UNLIKELY(!atom))
-            atom = XInternAtom (GDK_DISPLAY(), "_NET_ACTIVE_WINDOW", FALSE);
-
-        xev.type = ClientMessage;
-        xev.window = GDK_WINDOW_XID (toplevel->window);
-        xev.message_type = atom;
-        xev.format = 32;
-        xev.data.l[0] = 0;
-        xev.data.l[1] = 0;
-        xev.data.l[2] = 0;
-        xev.data.l[3] = 0;
-        xev.data.l[4] = 0;
-
-        XSendEvent (GDK_DISPLAY (), GDK_ROOT_WINDOW (), False,
-                    StructureNotifyMask, (XEvent *) & xev);
-
-                gtk_widget_grab_focus (entry);
+        xfce_panel_plugin_focus_widget (plugin, entry);
     }
 
-        return FALSE;
+    return FALSE;
 }
 
 /* callback: called when a button is pressed into the main entry */
@@ -214,7 +192,7 @@ static t_search *search_new(XfcePanelPlu
     gtk_box_pack_start(GTK_BOX(box), search->entry, FALSE, FALSE, 0);
     // g_signal_connect(command->entry, "activate", G_CALLBACK(runcl), 
command);
     g_signal_connect(search->entry, "key-press-event", 
G_CALLBACK(entry_keypress_cb), search);
-    g_signal_connect (search->entry, "button-press-event", 
G_CALLBACK(entry_buttonpress_cb), NULL);
+    g_signal_connect (search->entry, "button-press-event", 
G_CALLBACK(entry_buttonpress_cb), plugin);
 
     gtk_container_add( GTK_CONTAINER(plugin), search->ebox);
     xfce_panel_plugin_add_action_widget(plugin, search->ebox);

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to