]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkquartz.c
Ensure the insertion handle stays on fake events (eg from IM)
[~andy/gtk] / gtk / gtkquartz.c
index e98dbb4527642b3b861af984da6c7ad2f9fa9a3f..557fa8ac2c9b4d4153632603354ab0ec3bacaf80 100644 (file)
@@ -13,9 +13,7 @@
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
 #include "config.h"
@@ -103,6 +101,7 @@ _gtk_quartz_target_list_to_pasteboard_types (GtkTargetList *target_list)
     {
       GtkTargetPair *pair = list->data;
       gchar *target = gdk_atom_name (pair->target);
+      g_return_val_if_fail (pair->flags < 16, NULL);
       [set addObject:target_to_pasteboard_type (target)];
       g_free (target);
     }