Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gtk
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1,143
Issues
1,143
List
Boards
Labels
Milestones
Merge Requests
96
Merge Requests
96
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
gtk
Commits
ed901afe
Commit
ed901afe
authored
Feb 17, 2011
by
Matthias Clasen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use _gtk_accessible_set_factory_type in GtkSeparatorMenuItem
parent
221415f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
20 deletions
+4
-20
gtk/gtkseparatormenuitem.c
gtk/gtkseparatormenuitem.c
+4
-20
No files found.
gtk/gtkseparatormenuitem.c
View file @
ed901afe
...
...
@@ -25,7 +25,7 @@
*/
#include "config.h"
#include "gtkaccessible.h"
#include "gtkaccessible
private
.h"
#include "gtkseparatormenuitem.h"
/**
...
...
@@ -133,27 +133,11 @@ gtk_separator_menu_item_accessible_factory_init (AtkObjectFactory *factory)
static
AtkObject
*
gtk_separator_menu_item_get_accessible
(
GtkWidget
*
widget
)
{
static
gboolean
initialized
=
FALSE
;
static
gboolean
initialized
=
FALSE
if
(
G_UNLIKELY
(
!
initialized
))
{
AtkObjectFactory
*
factory
;
AtkRegistry
*
registry
;
GType
derived_type
;
GType
derived_atk_type
;
/* Figure out whether accessibility is enabled by looking at the
* type of the accessible object which would be created for our
* parent type
*/
derived_type
=
g_type_parent
(
GTK_TYPE_SEPARATOR_MENU_ITEM
);
registry
=
atk_get_default_registry
();
factory
=
atk_registry_get_factory
(
registry
,
derived_type
);
derived_atk_type
=
atk_object_factory_get_accessible_type
(
factory
);
if
(
g_type_is_a
(
derived_atk_type
,
GTK_TYPE_ACCESSIBLE
))
atk_registry_set_factory_type
(
registry
,
GTK_TYPE_SEPARATOR_MENU_ITEM
,
_gtk_accessible_set_factory_type
(
GTK_TYPE_SEPARATOR_MENU_ITEM
,
gtk_separator_menu_item_accessible_factory_get_type
());
initialized
=
TRUE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment