- gtk_style_context_set_state (context, state | GTK_STATE_FLAG_ACTIVE);
- gtk_render_check (context, cr, width / 2 - 5, height / 2 - 5, 10, 10);
+
+ gicon = g_themed_icon_new ("object-select-symbolic");
+ /* fallback for themes that don't have object-select-symbolic */
+ g_themed_icon_append_name (G_THEMED_ICON (gicon), "gtk-apply");
+
+ icon_info = gtk_icon_theme_lookup_by_gicon (theme, gicon, 16,
+ GTK_ICON_LOOKUP_GENERIC_FALLBACK
+ | GTK_ICON_LOOKUP_USE_BUILTIN);
+ g_object_unref (gicon);
+ }
+
+ if (icon_info != NULL)
+ {
+ GdkPixbuf *pixbuf;
+
+ pixbuf = gtk_icon_info_load_symbolic_for_context (icon_info, context,
+ NULL, NULL);
+
+ if (pixbuf != NULL)
+ {
+ gtk_render_icon (context, cr, pixbuf,
+ (width - gdk_pixbuf_get_width (pixbuf)) / 2,
+ (height - gdk_pixbuf_get_height (pixbuf)) / 2);
+ g_object_unref (pixbuf);
+ }
+
+ gtk_icon_info_free (icon_info);