Cleanup: rename specials -> context_menu

In keeping with convention to match code & UI naming.

- No user visible changes.
- Include 'menu' in the name since context is an overloaded term.
- While a few of these are panels, from a user perspective they are
  still context menus.
This commit is contained in:
2019-03-12 10:59:57 +11:00
parent e6eb7b9cce
commit 3017d88aec
19 changed files with 108 additions and 108 deletions

View File

@@ -527,7 +527,7 @@ class TOPBAR_PT_gpencil_layers(Panel):
gpl = context.active_gpencil_layer
if gpl:
sub.menu("GPENCIL_MT_layer_specials", icon='DOWNARROW_HLT', text="")
sub.menu("GPENCIL_MT_layer_context_menu", icon='DOWNARROW_HLT', text="")
if len(gpd.layers) > 1:
col.separator()
@@ -930,7 +930,7 @@ class TOPBAR_MT_help(Menu):
layout.operator("wm.splash", icon='BLENDER')
class TOPBAR_MT_file_specials(Menu):
class TOPBAR_MT_file_context_menu(Menu):
bl_label = "File Context Menu"
def draw(self, context):
@@ -951,7 +951,7 @@ class TOPBAR_MT_file_specials(Menu):
layout.menu("TOPBAR_MT_file_export", icon='EXPORT')
class TOPBAR_MT_window_specials(Menu):
class TOPBAR_MT_window_context_menu(Menu):
bl_label = "Window Context Menu"
def draw(self, context):
@@ -1043,8 +1043,8 @@ class TOPBAR_PT_gpencil_primitive(Panel):
classes = (
TOPBAR_HT_upper_bar,
TOPBAR_HT_lower_bar,
TOPBAR_MT_file_specials,
TOPBAR_MT_window_specials,
TOPBAR_MT_file_context_menu,
TOPBAR_MT_window_context_menu,
TOPBAR_MT_workspace_menu,
TOPBAR_MT_editor_menus,
TOPBAR_MT_file,