~ubuntu-branches/ubuntu/precise/gnome-keyring/precise

« back to all changes in this revision

Viewing changes to ui/gku-prompt-tool.c

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson, Chris Coulson, Mathieu Trudel-Lapierre
  • Date: 2011-08-10 12:29:33 UTC
  • mfrom: (1.1.70 upstream)
  • Revision ID: james.westby@ubuntu.com-20110810122933-0ezu9rqbnw956vwn
Tags: 3.1.4-0ubuntu1
[ Chris Coulson ]
* New upstream release
* Drop the multi-flavor (gtk2/gtk3) build - the new version supports
  only gtk3
  - update debian/rules
  - bump debian/compat to 7, else we need to add debian/tmp back to all
    the install files so that dh_install can find them (or continue to
    specify DEB_DH_INSTALL_SOURCEDIR in debian/rules)
  - Drop libgcr1 and libgcr-dev from debian/control.in
  - Remove debian/libgcr1.install and debian/libgcr-dev.install
  - Drop the libgtk2.0-dev build-depend
* Update for the libgck -> libgck-1 soname change
  - update debian/control
  - rename debian/libgck0.install => debian/libgck-1-0.install
  - update debian/libgck-1-0.install
  - rename debian/libgck0.symbols => debian/libgck-1-0.symbols
  - update debian/libgck-1-0.symbols
  - rename debian/libgck-dev.install => debian/libgck-1-dev.install
  - update debian/libgck-1-dev.install
* Update symbols for libgcr-3. Note that upstream removed some symbols
  without bumping the soname (in addition to adding symbols). However,
  these aren't actually used anywhere, and they have only ever existed
  in the current unstable series so we just ignore this for now :/
  - update debian/libgcr-3-1.symbols
* Drop debian/patches/05_onlyshowin_unity.patch - fixed upstream
* Add build-depend on libp11-kit-dev
* Install the contents of /usr/share/icons and /etc/pkcs11
  - update debian/gnome-keyring.install
* Revert an unintentional change of the libgcr soname to an older version
  - add debian/patches/05_revert_gcr_soname_bump.patch
  - update debian/patches/series

[ Mathieu Trudel-Lapierre ]
* debian/patches/99git_fs_caps_11a5d41.patch,
  debian/patches/99git_ipc_lock_caps_ad67edd.patch: dropped, included in
  release upstream tarball.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
static GKeyFile *input_data = NULL;
53
53
static GKeyFile *output_data = NULL;
54
54
 
55
 
#if GTK_CHECK_VERSION (3,0,0)
56
55
static GdkDevice *grabbed_device = NULL;
57
56
static gulong grab_broken_id = 0;
58
 
#else
59
 
static gboolean keyboard_grabbed = FALSE;
60
 
#endif
61
57
 
62
58
/* An encryption key for returning passwords */
63
59
static gpointer the_key = NULL;
109
105
        }
110
106
}
111
107
 
112
 
#if GTK_CHECK_VERSION (3,0,0)
113
108
static gboolean
114
109
on_grab_broken (GtkWidget * widget, GdkEventGrabBroken * event)
115
110
{
118
113
 
119
114
        return TRUE;
120
115
}
121
 
#endif
122
116
 
123
117
static gboolean
124
118
grab_keyboard (GtkWidget *win, GdkEvent *event, gpointer unused)
126
120
        GdkGrabStatus status;
127
121
        guint32 at;
128
122
 
129
 
#if GTK_CHECK_VERSION (3,0,0)
130
123
        GdkDevice *device = NULL;
131
124
        GdkDeviceManager *manager;
132
125
        GdkDisplay *display;
162
155
        } else {
163
156
                g_message ("could not grab keyboard: %s", grab_status_message (status));
164
157
        }
165
 
#else
166
 
        if (!keyboard_grabbed && GRAB_KEYBOARD) {
167
 
                at = event ? gdk_event_get_time (event) : GDK_CURRENT_TIME;
168
 
                status = gdk_keyboard_grab (gtk_widget_get_window (win), FALSE, at);
169
 
                if (status == GDK_GRAB_SUCCESS) {
170
 
                        keyboard_grabbed = TRUE;
171
 
                } else {
172
 
                        g_message ("could not grab keyboard: %s", grab_status_message (status));
173
 
                }
174
 
        }
175
 
#endif
176
158
 
177
159
        /* Always return false, so event is handled elsewhere */
178
160
        return FALSE;
183
165
{
184
166
        guint32 at = event ? gdk_event_get_time (event) : GDK_CURRENT_TIME;
185
167
 
186
 
#if GTK_CHECK_VERSION (3,0,0)
187
168
        if (grabbed_device) {
188
169
                g_signal_handler_disconnect (win, grab_broken_id);
189
170
                gdk_device_ungrab (grabbed_device, at);
191
172
                grabbed_device = NULL;
192
173
                grab_broken_id = 0;
193
174
        }
194
 
#else
195
 
        if (keyboard_grabbed)
196
 
                gdk_keyboard_ungrab (at);
197
 
        keyboard_grabbed = FALSE;
198
 
#endif
199
175
 
200
176
        /* Always return false, so event is handled elsewhere */
201
177
        return FALSE;