X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtkseparatormenuitem.c;h=da721297067eac0f0572bc7c821fdedf2e9c58d2;hb=HEAD;hp=d096b5f33c2b398c0a20685baf15b358efa38389;hpb=f121a502f9d7ff1a4449415c33a3257c81a27080;p=~andy%2Fgtk diff --git a/gtk/gtkseparatormenuitem.c b/gtk/gtkseparatormenuitem.c index d096b5f33..da7212970 100644 --- a/gtk/gtkseparatormenuitem.c +++ b/gtk/gtkseparatormenuitem.c @@ -12,9 +12,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 . */ /* @@ -25,9 +23,10 @@ */ #include "config.h" + #include "gtkseparatormenuitem.h" -#include "gtkalias.h" +#include "gtkstylecontext.h" /** * SECTION:gtkseparatormenuitem @@ -39,18 +38,23 @@ * make it appear sunken into the interface. */ - G_DEFINE_TYPE (GtkSeparatorMenuItem, gtk_separator_menu_item, GTK_TYPE_MENU_ITEM) static void gtk_separator_menu_item_class_init (GtkSeparatorMenuItemClass *class) { GTK_CONTAINER_CLASS (class)->child_type = NULL; + + gtk_widget_class_set_accessible_role (GTK_WIDGET_CLASS (class), ATK_ROLE_SEPARATOR); } static void gtk_separator_menu_item_init (GtkSeparatorMenuItem *item) { + GtkStyleContext *context; + + context = gtk_widget_get_style_context (GTK_WIDGET (item)); + gtk_style_context_add_class (context, GTK_STYLE_CLASS_SEPARATOR); } /** @@ -65,6 +69,3 @@ gtk_separator_menu_item_new (void) { return g_object_new (GTK_TYPE_SEPARATOR_MENU_ITEM, NULL); } - -#define __GTK_SEPARATOR_MENU_ITEM_C__ -#include "gtkaliasdef.c"